Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
| 6 #error "This file requires ARC support." | |
|
Lambros
2016/03/16 00:22:11
Do we need this notice here?
Even if we need ARC
| |
| 7 #endif | |
| 8 | |
| 9 #import "remoting/client/ios/app_delegate.h" | |
| 10 | |
| 11 #include "base/logging.h" | |
| 12 | |
| 13 #include "ui/base/l10n/l10n_util.h" | |
| 14 #include "ui/base/resource/resource_bundle.h" | |
| 15 #import "remoting/client/ios/example_view_controller.h" | |
| 16 | |
| 17 | |
| 18 @implementation AppDelegate | |
| 19 | |
| 20 @synthesize window = _window; | |
| 21 | |
| 22 - (BOOL)application:(UIApplication*)application | |
| 23 willFinishLaunchingWithOptions:(NSDictionary*)launchOptions { | |
| 24 self.window = | |
| 25 [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| 26 self.window.backgroundColor = [UIColor whiteColor]; | |
| 27 return YES; | |
| 28 } | |
| 29 | |
| 30 - (BOOL)application:(UIApplication*)application | |
| 31 didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { | |
| 32 | |
| 33 ExampleViewController *vc = [[ExampleViewController alloc] init]; | |
| 34 | |
| 35 self.window.rootViewController = vc; | |
| 36 | |
| 37 [self.window makeKeyAndVisible]; | |
| 38 return YES; | |
| 39 } | |
| 40 | |
| 41 @end | |
| OLD | NEW |