Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: sky/shell/ios/sky_view_controller.mm

Issue 1187503003: Refactor SkyShell to allow multiple SkyViews (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/shell/ios/sky_view_controller.mm
diff --git a/sky/shell/ios/sky_view_controller.mm b/sky/shell/ios/sky_view_controller.mm
index ee2e38ad762b1c9ac9ed8e7e7c3620ef789f4671..082e79b511994dc991f88474a308b2e82267d31c 100644
--- a/sky/shell/ios/sky_view_controller.mm
+++ b/sky/shell/ios/sky_view_controller.mm
@@ -11,7 +11,9 @@
@implementation SkyViewController
- (void)loadView {
- SkySurface* surface = [[SkySurface alloc] init];
+
+ Instance* instance = new sky::shell::Instance(sky::shell::Shell::Shared());
+ SkySurface* surface = [[SkySurface alloc] initWithSkyInstance: instance];
surface.autoresizingMask =
UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

Powered by Google App Engine
This is Rietveld 408576698