"Fossies" - the Fresh Open Source Software Archive

Member "flutter-1.22.4/dev/benchmarks/macrobenchmarks/macos/Runner/MainFlutterWindow.swift" (13 Nov 2020, 558 Bytes) of package /linux/misc/flutter-1.22.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Swift source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // Copyright 2014 The Flutter Authors. All rights reserved.
    2 // Use of this source code is governed by a BSD-style license that can be
    3 // found in the LICENSE file.
    4 
    5 import Cocoa
    6 import FlutterMacOS
    7 
    8 class MainFlutterWindow: NSWindow {
    9   override func awakeFromNib() {
   10     let flutterViewController = FlutterViewController.init()
   11     let windowFrame = self.frame
   12     self.contentViewController = flutterViewController
   13     self.setFrame(windowFrame, display: true)
   14 
   15     RegisterGeneratedPlugins(registry: flutterViewController)
   16 
   17     super.awakeFromNib()
   18   }
   19 }