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

Unified Diff: remoting/client/ios/chromiumoting/app_delegate.mm

Issue 2555803002: Adding the iOS app and integration example with GlRenderer. (Closed)
Patch Set: Adjusting how gl_renderer draws layers and added a demo app for CRD iOS. Created 4 years 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: remoting/client/ios/chromiumoting/app_delegate.mm
diff --git a/remoting/client/ios/chromiumoting/app_delegate.mm b/remoting/client/ios/chromiumoting/app_delegate.mm
new file mode 100644
index 0000000000000000000000000000000000000000..20bfde13ae89566e7a64b8a8834171a3c0f7c4c3
--- /dev/null
+++ b/remoting/client/ios/chromiumoting/app_delegate.mm
@@ -0,0 +1,38 @@
+// Copyright 2016 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.
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+#import "remoting/client/ios/chromiumoting/app_delegate.h"
+
+#include "base/logging.h"
+
+#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/resource/resource_bundle.h"
+#import "remoting/client/ios/chromiumoting/example_view_controller.h"
+
+@implementation AppDelegate
+
+@synthesize window = _window;
+
+- (BOOL)application:(UIApplication*)application
+ willFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ self.window.backgroundColor = [UIColor whiteColor];
+ return YES;
+}
+
+- (BOOL)application:(UIApplication*)application
+ didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
+ ExampleViewController* vc = [[ExampleViewController alloc] init];
+
+ self.window.rootViewController = vc;
+
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698