Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b0ad7c45
Unverified
Commit
b0ad7c45
authored
Mar 28, 2023
by
Chris Bracken
Committed by
GitHub
Mar 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[macOS] Eliminate explicit main window init() (#123571)
[macOS] Eliminate explicit main window init()
parent
8f62e342
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
14 additions
and
14 deletions
+14
-14
MainFlutterWindow.swift
...marks/complex_layout/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
...arks/macrobenchmarks/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
...ation_tests/channels/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
...ration_tests/flavors/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
...ests/flutter_gallery/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
...integration_tests/ui/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
dev/manual_tests/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
examples/api/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
examples/hello_world/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
examples/image_list/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
examples/layers/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
...les/platform_channel/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
examples/platform_view/macos/Runner/MainFlutterWindow.swift
+1
-1
MainFlutterWindow.swift
...ates/app_shared/macos.tmpl/Runner/MainFlutterWindow.swift
+1
-1
No files found.
dev/benchmarks/complex_layout/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
dev/benchmarks/macrobenchmarks/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -60,7 +60,7 @@ class ExtendedReaderWriter: FlutterStandardReaderWriter {
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
dev/integration_tests/flavors/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
dev/integration_tests/flutter_gallery/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -13,7 +13,7 @@ extension NSWindow {
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
dev/manual_tests/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
examples/api/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
examples/hello_world/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
examples/image_list/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
examples/layers/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -7,7 +7,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
examples/platform_channel/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -11,7 +11,7 @@ class MainFlutterWindow: NSWindow, FlutterStreamHandler, PowerSourceStateChangeD
private
var
eventSink
:
FlutterEventSink
?
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
examples/platform_view/macos/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -13,7 +13,7 @@ import FlutterMacOS
*/
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
packages/flutter_tools/templates/app_shared/macos.tmpl/Runner/MainFlutterWindow.swift
View file @
b0ad7c45
...
...
@@ -3,7 +3,7 @@ import FlutterMacOS
class
MainFlutterWindow
:
NSWindow
{
override
func
awakeFromNib
()
{
let
flutterViewController
=
FlutterViewController
.
init
()
let
flutterViewController
=
FlutterViewController
()
let
windowFrame
=
self
.
frame
self
.
contentViewController
=
flutterViewController
self
.
setFrame
(
windowFrame
,
display
:
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment