OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ |
| 6 #define REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 @protocol AppController<NSObject> |
| 11 |
| 12 // 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 |
| 14 // procedure. This is to prevent build break in internal buildbot. |
| 15 |
| 16 - (void)showMenuAnimated:(BOOL)animated; |
| 17 - (void)hideMenuAnimated:(BOOL)animated; |
| 18 - (void)presentSignInFlow; |
| 19 |
| 20 @end |
| 21 |
| 22 // 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. |
| 24 // Implementation can add drawer or modal for things like the side menu or help |
| 25 // and feedback. |
| 26 @interface AppViewController : UIViewController<AppController> |
| 27 |
| 28 - (instancetype)initWithMainViewController: |
| 29 (UIViewController*)mainViewController; |
| 30 |
| 31 @end |
| 32 |
| 33 #endif // REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_ |
OLD | NEW |