app_view_controller.h 1.2 KB

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