Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: remoting/ios/app/app_view_controller.h

Issue 2937733003: [CRD iOS] Branching internal and external implementations (Closed)
Patch Set: Fix presenting check Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/ios/app/app_delegate.mm ('k') | remoting/ios/app/app_view_controller_chromium.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/app/app_view_controller.h
diff --git a/remoting/ios/app/app_view_controller.h b/remoting/ios/app/app_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..efc5edc440a79db130b3e2588a088e6d366e8fde
--- /dev/null
+++ b/remoting/ios/app/app_view_controller.h
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_
+#define REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_
+
+#import <UIKit/UIKit.h>
+
+@protocol AppController<NSObject>
+
+// For adding new methods, please mark them as optional until they are
+// implemented in both Chromium and ios_internal. For deletion, just reverse the
+// procedure. This is to prevent build break in internal buildbot.
+
+- (void)showMenuAnimated:(BOOL)animated;
+- (void)hideMenuAnimated:(BOOL)animated;
+- (void)presentSignInFlow;
+
+@end
+
+// The root view controller of the app. It acts as a container controller for
+// |mainViewController|, which will be shown as the primary content of the view.
+// Implementation can add drawer or modal for things like the side menu or help
+// and feedback.
+@interface AppViewController : UIViewController<AppController>
+
+- (instancetype)initWithMainViewController:
+ (UIViewController*)mainViewController;
+
+@end
+
+#endif // REMOTING_IOS_APP_APP_VIEW_CONTROLLER_H_
« no previous file with comments | « remoting/ios/app/app_delegate.mm ('k') | remoting/ios/app/app_view_controller_chromium.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698