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