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

Unified Diff: ios/showcase/common/coordinator.h

Issue 2592593003: Upstream ios/showcase source code. (Closed)
Patch Set: Created 4 years 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 | « ios/showcase/common/BUILD.gn ('k') | ios/showcase/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/common/coordinator.h
diff --git a/ios/showcase/common/coordinator.h b/ios/showcase/common/coordinator.h
new file mode 100644
index 0000000000000000000000000000000000000000..d044a0342a61015232073225b2cf1973f126b760
--- /dev/null
+++ b/ios/showcase/common/coordinator.h
@@ -0,0 +1,24 @@
+// Copyright 2016 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 IOS_SHOWCASE_COMMON_COORDINATOR_H_
+#define IOS_SHOWCASE_COMMON_COORDINATOR_H_
+
+#import <Foundation/Foundation.h>
+
+// This protocol is the common interface to the simple non-production
+// coordinators that will initialize, set up and present production view
+// controllers, usually with completely mocked data.
+@protocol Coordinator<NSObject>
+
+// The base view controller used to present the view controller that this
+// coordinator drives.
+@property(nonatomic, weak) UIViewController* baseViewController;
+
+// Typically, this initializes a view controller, sets it up and presents it.
+- (void)start;
+
+@end
+
+#endif // IOS_SHOWCASE_COMMON_COORDINATOR_H_
« no previous file with comments | « ios/showcase/common/BUILD.gn ('k') | ios/showcase/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698