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_VIEW_CONTROLLER_H_ | 5 #ifndef REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ |
6 #define REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ | 6 #define REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
| 10 @protocol RemotingAuthentication; |
| 11 |
10 @protocol AppController<NSObject> | 12 @protocol AppController<NSObject> |
11 | 13 |
12 // For adding new methods, please mark them as optional until they are | 14 // For adding new methods, please mark them as optional until they are |
13 // implemented in both Chromium and ios_internal. For deletion, just reverse the | 15 // implemented in both Chromium and ios_internal. For deletion, just reverse the |
14 // procedure. This is to prevent build break in internal buildbot. | 16 // procedure. This is to prevent build break in internal buildbot. |
15 | 17 |
16 - (void)showMenuAnimated:(BOOL)animated; | 18 - (void)showMenuAnimated:(BOOL)animated; |
17 - (void)hideMenuAnimated:(BOOL)animated; | 19 - (void)hideMenuAnimated:(BOOL)animated; |
18 - (void)presentSignInFlow; | 20 - (void)presentSignInFlow; |
19 | 21 |
| 22 @property(nonatomic, readonly) id<RemotingAuthentication> authentication; |
| 23 @property(nonatomic) UIViewController* mainViewController; |
| 24 |
20 @end | 25 @end |
21 | 26 |
22 // The root view controller of the app. It acts as a container controller for | 27 // The root view controller of the app. It acts as a container controller for |
23 // |mainViewController|, which will be shown as the primary content of the view. | 28 // |mainViewController|, which will be shown as the primary content of the view. |
24 // Implementation can add drawer or modal for things like the side menu or help | 29 // Implementation can add drawer or modal for things like the side menu or help |
25 // and feedback. | 30 // and feedback. |
26 @interface AppViewController : UIViewController<AppController> | 31 @interface AppViewController : UIViewController<AppController> |
27 | 32 |
28 - (instancetype)initWithMainViewController: | |
29 (UIViewController*)mainViewController; | |
30 | |
31 @end | 33 @end |
32 | 34 |
33 #endif // REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ | 35 #endif // REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ |
OLD | NEW |