From 40f3877c236d4724aff7047e065f142dbd4a5690 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Tue, 6 Dec 2016 14:43:53 -0800 Subject: [PATCH] rename sky -> flutter in shell (flutter/engine#3293) --- .../platform/android/AndroidManifest.xml | 6 +- .../flutter/shell/platform/android/BUILD.gn | 3 + .../io/flutter/app/FlutterActivity.java | 145 ++++++++++++++++++ .../io/flutter/app/FlutterApplication.java | 21 +++ .../org/domokit/sky/shell/SkyActivity.java | 140 +---------------- .../org/domokit/sky/shell/SkyApplication.java | 16 +- .../shell/platform/darwin/desktop/BUILD.gn | 14 +- .../shell/platform/darwin/desktop/Info.plist | 4 +- .../darwin/desktop/flutter_app_delegate.h | 14 ++ ..._app_delegate.m => flutter_app_delegate.m} | 6 +- ...ky_application.h => flutter_application.h} | 8 +- ..._application.mm => flutter_application.mm} | 10 +- .../desktop/{sky_mac.xib => flutter_mac.xib} | 4 +- .../platform/darwin/desktop/flutter_window.h | 14 ++ .../{sky_window.mm => flutter_window.mm} | 8 +- .../shell/platform/darwin/desktop/main_mac.mm | 4 +- .../darwin/desktop/sky_app_delegate.h | 9 -- .../platform/darwin/desktop/sky_window.h | 9 -- 18 files changed, 238 insertions(+), 197 deletions(-) create mode 100644 engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivity.java create mode 100644 engine/src/flutter/shell/platform/android/io/flutter/app/FlutterApplication.java create mode 100644 engine/src/flutter/shell/platform/darwin/desktop/flutter_app_delegate.h rename engine/src/flutter/shell/platform/darwin/desktop/{sky_app_delegate.m => flutter_app_delegate.m} (69%) rename engine/src/flutter/shell/platform/darwin/desktop/{sky_application.h => flutter_application.h} (59%) rename engine/src/flutter/shell/platform/darwin/desktop/{sky_application.mm => flutter_application.mm} (76%) rename engine/src/flutter/shell/platform/darwin/desktop/{sky_mac.xib => flutter_mac.xib} (99%) create mode 100644 engine/src/flutter/shell/platform/darwin/desktop/flutter_window.h rename engine/src/flutter/shell/platform/darwin/desktop/{sky_window.mm => flutter_window.mm} (96%) delete mode 100644 engine/src/flutter/shell/platform/darwin/desktop/sky_app_delegate.h delete mode 100644 engine/src/flutter/shell/platform/darwin/desktop/sky_window.h diff --git a/engine/src/flutter/shell/platform/android/AndroidManifest.xml b/engine/src/flutter/shell/platform/android/AndroidManifest.xml index 3381f7272f..3b4cb6894f 100644 --- a/engine/src/flutter/shell/platform/android/AndroidManifest.xml +++ b/engine/src/flutter/shell/platform/android/AndroidManifest.xml @@ -3,18 +3,18 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> - + - + diff --git a/engine/src/flutter/shell/platform/android/BUILD.gn b/engine/src/flutter/shell/platform/android/BUILD.gn index c12be2a0cc..8fd44a72a9 100644 --- a/engine/src/flutter/shell/platform/android/BUILD.gn +++ b/engine/src/flutter/shell/platform/android/BUILD.gn @@ -64,6 +64,8 @@ android_library("java") { visibility = [ ":*" ] java_files = [ + "io/flutter/app/FlutterActivity.java", + "io/flutter/app/FlutterApplication.java", "io/flutter/plugin/common/ActivityLifecycleListener.java", "io/flutter/plugin/common/JSONMessageListener.java", "io/flutter/plugin/editing/InputConnectionAdaptor.java", @@ -76,6 +78,7 @@ android_library("java") { "io/flutter/view/ResourceExtractor.java", "io/flutter/view/ResourcePaths.java", "io/flutter/view/VsyncWaiter.java", + # Deprecated classes provided for backwards compatibility "org/domokit/sky/shell/SkyActivity.java", "org/domokit/sky/shell/SkyApplication.java", ] diff --git a/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivity.java b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivity.java new file mode 100644 index 0000000000..dc8e653505 --- /dev/null +++ b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivity.java @@ -0,0 +1,145 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.app; + +import android.app.Activity; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.view.Window; +import android.view.WindowManager; +import io.flutter.plugin.platform.PlatformPlugin; +import io.flutter.view.FlutterMain; +import io.flutter.view.FlutterView; +import java.util.ArrayList; +import org.chromium.base.TraceEvent; + + +/** + * Base class for activities that use Flutter. + */ +public class FlutterActivity extends Activity { + private FlutterView mView; + + private String[] getArgsFromIntent(Intent intent) { + // Before adding more entries to this list, consider that arbitrary + // Android applications can generate intents with extra data and that + // there are many security-sensitive args in the binary. + ArrayList args = new ArrayList(); + if (intent.getBooleanExtra("trace-startup", false)) { + args.add("--trace-startup"); + } + if (intent.getBooleanExtra("start-paused", false)) { + args.add("--start-paused"); + } + if (intent.getBooleanExtra("enable-dart-profiling", false)) { + args.add("--enable-dart-profiling"); + } + if (!args.isEmpty()) { + String[] argsArray = new String[args.size()]; + return args.toArray(argsArray); + } + return null; + } + + /** + * @see android.app.Activity#onCreate(android.os.Bundle) + */ + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { + Window window = getWindow(); + window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); + window.setStatusBarColor(0x40000000); + window.getDecorView().setSystemUiVisibility(PlatformPlugin.DEFAULT_SYSTEM_UI); + } + + String[] args = getArgsFromIntent(getIntent()); + FlutterMain.ensureInitializationComplete(getApplicationContext(), args); + mView = new FlutterView(this); + setContentView(mView); + + onFlutterReady(); + } + + /** + * @see android.app.Activity#onDestroy() + */ + @Override + protected void onDestroy() { + if (mView != null) { + mView.destroy(); + } + super.onDestroy(); + } + + @Override + public void onBackPressed() { + if (mView != null) { + mView.popRoute(); + return; + } + super.onBackPressed(); + } + + @Override + protected void onPause() { + super.onPause(); + if (mView != null) { + mView.onPause(); + } + } + + @Override + protected void onPostResume() { + super.onPostResume(); + if (mView != null) { + mView.onPostResume(); + } + } + + /** + * Override this function to customize startup behavior. + */ + protected void onFlutterReady() { + TraceEvent.instant("FlutterActivity.onFlutterReady"); + + if (loadIntent(getIntent())) { + return; + } + String appBundlePath = FlutterMain.findAppBundlePath(getApplicationContext()); + if (appBundlePath != null) { + mView.runFromBundle(appBundlePath, null); + return; + } + } + + protected void onNewIntent(Intent intent) { + loadIntent(intent); + } + + public boolean loadIntent(Intent intent) { + String action = intent.getAction(); + if (Intent.ACTION_RUN.equals(action)) { + String route = intent.getStringExtra("route"); + String appBundlePath = intent.getDataString(); + if (appBundlePath == null) { + // Fall back to the installation path if no bundle path + // was specified. + appBundlePath = + FlutterMain.findAppBundlePath(getApplicationContext()); + } + mView.runFromBundle(appBundlePath, + intent.getStringExtra("snapshot")); + if (route != null) + mView.pushRoute(route); + return true; + } + + return false; + } +} diff --git a/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterApplication.java b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterApplication.java new file mode 100644 index 0000000000..39510bf27d --- /dev/null +++ b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterApplication.java @@ -0,0 +1,21 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.app; + +import android.app.Application; + +import io.flutter.view.FlutterMain; + +/** + * Flutter implementation of {@link android.app.Application}, managing + * application-level global initializations. + */ +public class FlutterApplication extends Application { + @Override + public void onCreate() { + super.onCreate(); + FlutterMain.startInitialization(this); + } +} diff --git a/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyActivity.java b/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyActivity.java index cb280b0484..40a75413e5 100644 --- a/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyActivity.java +++ b/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyActivity.java @@ -4,143 +4,11 @@ package org.domokit.sky.shell; -import android.app.Activity; -import android.content.Intent; -import android.os.Build; -import android.os.Bundle; -import android.view.Window; -import android.view.WindowManager; -import io.flutter.plugin.platform.PlatformPlugin; -import io.flutter.view.FlutterMain; -import io.flutter.view.FlutterView; -import java.util.ArrayList; -import org.chromium.base.TraceEvent; - +import io.flutter.app.FlutterActivity; /** - * Base class for activities that use Sky. + * Use io.flutter.app.FlutterActivity instead + * This class should be removed after Feb 2017 */ -public class SkyActivity extends Activity { - private FlutterView mView; - - private String[] getArgsFromIntent(Intent intent) { - // Before adding more entries to this list, consider that arbitrary - // Android applications can generate intents with extra data and that - // there are many security-sensitive args in the binary. - ArrayList args = new ArrayList(); - if (intent.getBooleanExtra("trace-startup", false)) { - args.add("--trace-startup"); - } - if (intent.getBooleanExtra("start-paused", false)) { - args.add("--start-paused"); - } - if (intent.getBooleanExtra("enable-dart-profiling", false)) { - args.add("--enable-dart-profiling"); - } - if (!args.isEmpty()) { - String[] argsArray = new String[args.size()]; - return args.toArray(argsArray); - } - return null; - } - - /** - * @see android.app.Activity#onCreate(android.os.Bundle) - */ - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - Window window = getWindow(); - window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); - window.setStatusBarColor(0x40000000); - window.getDecorView().setSystemUiVisibility(PlatformPlugin.DEFAULT_SYSTEM_UI); - } - - String[] args = getArgsFromIntent(getIntent()); - FlutterMain.ensureInitializationComplete(getApplicationContext(), args); - mView = new FlutterView(this); - setContentView(mView); - - onSkyReady(); - } - - /** - * @see android.app.Activity#onDestroy() - */ - @Override - protected void onDestroy() { - if (mView != null) { - mView.destroy(); - } - // Do we need to shut down Sky too? - super.onDestroy(); - } - - @Override - public void onBackPressed() { - if (mView != null) { - mView.popRoute(); - return; - } - super.onBackPressed(); - } - - @Override - protected void onPause() { - super.onPause(); - if (mView != null) { - mView.onPause(); - } - } - - @Override - protected void onPostResume() { - super.onPostResume(); - if (mView != null) { - mView.onPostResume(); - } - } - - /** - * Override this function to customize startup behavior. - */ - protected void onSkyReady() { - TraceEvent.instant("SkyActivity.onSkyReady"); - - if (loadIntent(getIntent())) { - return; - } - String appBundlePath = FlutterMain.findAppBundlePath(getApplicationContext()); - if (appBundlePath != null) { - mView.runFromBundle(appBundlePath, null); - return; - } - } - - protected void onNewIntent(Intent intent) { - loadIntent(intent); - } - - public boolean loadIntent(Intent intent) { - String action = intent.getAction(); - if (Intent.ACTION_RUN.equals(action)) { - String route = intent.getStringExtra("route"); - String appBundlePath = intent.getDataString(); - if (appBundlePath == null) { - // Fall back to the installation path if no bundle path - // was specified. - appBundlePath = - FlutterMain.findAppBundlePath(getApplicationContext()); - } - mView.runFromBundle(appBundlePath, - intent.getStringExtra("snapshot")); - if (route != null) - mView.pushRoute(route); - return true; - } - - return false; - } +public class SkyActivity extends FlutterActivity { } diff --git a/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyApplication.java b/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyApplication.java index 3078c82a61..ed5b99dfca 100644 --- a/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyApplication.java +++ b/engine/src/flutter/shell/platform/android/org/domokit/sky/shell/SkyApplication.java @@ -4,18 +4,12 @@ package org.domokit.sky.shell; -import android.app.Application; - -import io.flutter.view.FlutterMain; +import io.flutter.app.FlutterApplication; /** - * Sky implementation of {@link android.app.Application}, managing application-level global - * initializations. + * Use io.flutter.app.FlutterActivity instead + * This class should be removed after Feb 2017 */ -public class SkyApplication extends Application { - @Override - public void onCreate() { - super.onCreate(); - FlutterMain.startInitialization(this); - } +@Deprecated +public class SkyApplication extends FlutterApplication { } diff --git a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn index 3e28ada684..b4704f0309 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn @@ -13,12 +13,12 @@ source_set("mac_desktop_platform") { "main_mac.mm", "platform_view_mac.h", "platform_view_mac.mm", - "sky_app_delegate.h", - "sky_app_delegate.m", - "sky_application.h", - "sky_application.mm", - "sky_window.h", - "sky_window.mm", + "flutter_app_delegate.h", + "flutter_app_delegate.m", + "flutter_application.h", + "flutter_application.mm", + "flutter_window.h", + "flutter_window.mm", "vsync_waiter_mac.cc", "vsync_waiter_mac.h", ] @@ -57,7 +57,7 @@ resource_copy_mac("mac_desktop_resources") { mac_app("shell_application_bundle") { app_name = "SkyShell" info_plist = "Info.plist" - xibs = [ "sky_mac.xib" ] + xibs = [ "flutter_mac.xib" ] deps = [ ":mac_desktop_platform", diff --git a/engine/src/flutter/shell/platform/darwin/desktop/Info.plist b/engine/src/flutter/shell/platform/darwin/desktop/Info.plist index 76ee583303..80bf91a132 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/Info.plist +++ b/engine/src/flutter/shell/platform/darwin/desktop/Info.plist @@ -9,7 +9,7 @@ CFBundleIconFile CFBundleIdentifier - org.domokit.sky + io.flutter CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -29,6 +29,6 @@ NSMainNibFile sky_mac NSPrincipalClass - SkyApplication + FlutterApplication diff --git a/engine/src/flutter/shell/platform/darwin/desktop/flutter_app_delegate.h b/engine/src/flutter/shell/platform/darwin/desktop/flutter_app_delegate.h new file mode 100644 index 0000000000..d6addcb17d --- /dev/null +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_app_delegate.h @@ -0,0 +1,14 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef __SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_APP_DELEGATE__ +#define __SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_APP_DELEGATE__ + +#import + +@interface FlutterAppDelegate : NSObject + +@end + +#endif /* defined(__SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_APP_DELEGATE__) */ diff --git a/engine/src/flutter/shell/platform/darwin/desktop/sky_app_delegate.m b/engine/src/flutter/shell/platform/darwin/desktop/flutter_app_delegate.m similarity index 69% rename from engine/src/flutter/shell/platform/darwin/desktop/sky_app_delegate.m rename to engine/src/flutter/shell/platform/darwin/desktop/flutter_app_delegate.m index c6ba6c5696..7e2dfd6838 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/sky_app_delegate.m +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_app_delegate.m @@ -2,14 +2,14 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "sky_app_delegate.h" +#import "flutter_app_delegate.h" -@interface SkyAppDelegate () +@interface FlutterAppDelegate () @property(assign) IBOutlet NSWindow* window; @end -@implementation SkyAppDelegate +@implementation FlutterAppDelegate @end diff --git a/engine/src/flutter/shell/platform/darwin/desktop/sky_application.h b/engine/src/flutter/shell/platform/darwin/desktop/flutter_application.h similarity index 59% rename from engine/src/flutter/shell/platform/darwin/desktop/sky_application.h rename to engine/src/flutter/shell/platform/darwin/desktop/flutter_application.h index 77d4ead943..4eb6f9c3b6 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/sky_application.h +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_application.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef __SHELL_MAC_SKY_APPLICATION__ -#define __SHELL_MAC_SKY_APPLICATION__ +#ifndef __SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_APPLICATION__ +#define __SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_APPLICATION__ #import @@ -12,7 +12,7 @@ // A specific subclass of NSApplication is necessary on Mac in order to // interact correctly with the main runloop. -@interface SkyApplication : NSApplication +@interface FlutterApplication : NSApplication @end -#endif /* defined(__SHELL_MAC_SKY_APPLICATION__) */ +#endif /* defined(__SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_APPLICATION__) */ diff --git a/engine/src/flutter/shell/platform/darwin/desktop/sky_application.mm b/engine/src/flutter/shell/platform/darwin/desktop/flutter_application.mm similarity index 76% rename from engine/src/flutter/shell/platform/darwin/desktop/sky_application.mm rename to engine/src/flutter/shell/platform/darwin/desktop/flutter_application.mm index e295517503..0dc7c413ea 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/sky_application.mm +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_application.mm @@ -2,24 +2,24 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "flutter/shell/platform/darwin/desktop/sky_application.h" +#include "flutter/shell/platform/darwin/desktop/flutter_application.h" #include "base/auto_reset.h" #include "base/logging.h" -@implementation SkyApplication { +@implementation FlutterApplication { BOOL handlingSendEvent_; } + (void)initialize { - if (self == [SkyApplication class]) { - NSApplication* app = [SkyApplication sharedApplication]; + if (self == [FlutterApplication class]) { + NSApplication* app = [FlutterApplication sharedApplication]; DCHECK([app conformsToProtocol:@protocol(CrAppControlProtocol)]) << "Existing NSApp (class " << [[app className] UTF8String] << ") does not conform to required protocol."; DCHECK(base::MessagePumpMac::UsingCrApp()) << "MessagePumpMac::Create() was called before " - << "+[SkyApplication initialize]"; + << "+[FlutterApplication initialize]"; } } diff --git a/engine/src/flutter/shell/platform/darwin/desktop/sky_mac.xib b/engine/src/flutter/shell/platform/darwin/desktop/flutter_mac.xib similarity index 99% rename from engine/src/flutter/shell/platform/darwin/desktop/sky_mac.xib rename to engine/src/flutter/shell/platform/darwin/desktop/flutter_mac.xib index 3cb000d65e..abac56e811 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/sky_mac.xib +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_mac.xib @@ -4,14 +4,14 @@ - + - + diff --git a/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.h b/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.h new file mode 100644 index 0000000000..851535ba38 --- /dev/null +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.h @@ -0,0 +1,14 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef __SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_WINDOW__ +#define __SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_WINDOW__ + +#import + +@interface FlutterWindow : NSWindow + +@end + +#endif /* defined(__SHELL_PLATFORM_DARWIN_DESKTOP_FLUTTER_WINDOW__) */ diff --git a/engine/src/flutter/shell/platform/darwin/desktop/sky_window.mm b/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.mm similarity index 96% rename from engine/src/flutter/shell/platform/darwin/desktop/sky_window.mm rename to engine/src/flutter/shell/platform/darwin/desktop/flutter_window.mm index 465b2f5212..4cabdddda8 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/sky_window.mm +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.mm @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "sky_window.h" +#import "flutter_window.h" #include "flutter/common/threads.h" #include "flutter/shell/gpu/gpu_surface_gl.h" #include "flutter/shell/platform/darwin/desktop/platform_view_mac.h" -@interface SkyWindow () +@interface FlutterWindow () @property(assign) IBOutlet NSOpenGLView* renderSurface; @property(getter=isSurfaceSetup) BOOL surfaceSetup; @@ -37,7 +37,7 @@ static inline blink::PointerData::Change PointerChangeFromNSEventPhase( return blink::PointerData::Change::kCancel; } -@implementation SkyWindow { +@implementation FlutterWindow { std::unique_ptr _platformView; bool _mouseIsDown; } @@ -63,7 +63,7 @@ static inline blink::PointerData::Change PointerChangeFromNSEventPhase( std::make_unique(_platformView.get())); } -// TODO(eseidel): This does not belong in sky_window! +// TODO(eseidel): This does not belong in flutter_window! // Probably belongs in NSApplicationDelegate didFinishLaunching. - (void)setupAndLoadDart { _platformView->SetupAndLoadDart(); diff --git a/engine/src/flutter/shell/platform/darwin/desktop/main_mac.mm b/engine/src/flutter/shell/platform/darwin/desktop/main_mac.mm index cd49eb229f..d229c59299 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/main_mac.mm +++ b/engine/src/flutter/shell/platform/darwin/desktop/main_mac.mm @@ -11,7 +11,7 @@ #include "base/message_loop/message_loop.h" #include "flutter/shell/common/switches.h" #include "flutter/shell/platform/darwin/common/platform_mac.h" -#include "flutter/shell/platform/darwin/desktop/sky_application.h" +#include "flutter/shell/platform/darwin/desktop/flutter_application.h" #include "flutter/shell/testing/testing.h" namespace shell { @@ -30,7 +30,7 @@ void AttachMessageLoopToMainRunLoop(void) { } // namespace shell int main(int argc, const char* argv[]) { - [SkyApplication sharedApplication]; + [FlutterApplication sharedApplication]; shell::PlatformMacMain(argc, argv, "", ""); diff --git a/engine/src/flutter/shell/platform/darwin/desktop/sky_app_delegate.h b/engine/src/flutter/shell/platform/darwin/desktop/sky_app_delegate.h deleted file mode 100644 index dbe422b293..0000000000 --- a/engine/src/flutter/shell/platform/darwin/desktop/sky_app_delegate.h +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#import - -@interface SkyAppDelegate : NSObject - -@end diff --git a/engine/src/flutter/shell/platform/darwin/desktop/sky_window.h b/engine/src/flutter/shell/platform/darwin/desktop/sky_window.h deleted file mode 100644 index 07540aba16..0000000000 --- a/engine/src/flutter/shell/platform/darwin/desktop/sky_window.h +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2015 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#import - -@interface SkyWindow : NSWindow - -@end