OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef REMOTING_IOS_APP_APP_DELEGATE_H_ | 5 #ifndef REMOTING_IOS_APP_APP_DELEGATE_H_ |
6 #define REMOTING_IOS_APP_APP_DELEGATE_H_ | 6 #define REMOTING_IOS_APP_APP_DELEGATE_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "remoting/ios/app/panel_view_controller.h" | |
11 | |
10 // Default created delegate class for the entire application. | 12 // Default created delegate class for the entire application. |
11 @interface AppDelegate : UIResponder<UIApplicationDelegate> | 13 @interface AppDelegate : UIResponder<UIApplicationDelegate> |
12 | 14 |
13 @property(strong, nonatomic) UIWindow* window; | 15 @property(strong, nonatomic) UIWindow* window; |
16 @property(strong, nonatomic, readonly) | |
17 UIViewController<PanelViewController>* rootViewController; | |
18 @property(class, strong, nonatomic, readonly) AppDelegate* currentDelegate; | |
nicholss
2017/06/15 15:15:16
I see this pattern naming would called "instance"
Yuwei
2017/06/15 21:22:17
Renamed to `instance`.
I added this to simplify c
| |
14 | 19 |
15 @end | 20 @end |
16 | 21 |
17 #endif // REMOTING_IOS_APP_APP_DELEGATE_H_ | 22 #endif // REMOTING_IOS_APP_APP_DELEGATE_H_ |
18 | 23 |
OLD | NEW |