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

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: s/instance/sky_shell/ 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
« no previous file with comments | « sky/shell/ios/sky_surface.mm ('k') | sky/shell/platform_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..24bfef1c065e208c7f8d9b3f31472b4f60034075 100644
--- a/sky/shell/ios/sky_view_controller.mm
+++ b/sky/shell/ios/sky_view_controller.mm
@@ -8,10 +8,14 @@
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
+#include "sky/shell/shell_view.h"
+
@implementation SkyViewController
- (void)loadView {
- SkySurface* surface = [[SkySurface alloc] init];
+
+ ShellView* shell_view = new sky::shell::ShellView(sky::shell::Shell::Shared());
+ SkySurface* surface = [[SkySurface alloc] initWithShellView: shell_view];
surface.autoresizingMask =
UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
« no previous file with comments | « sky/shell/ios/sky_surface.mm ('k') | sky/shell/platform_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698