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

Side by Side Diff: ios/showcase/common/coordinator.h

Issue 2800313002: [ios] RootCoordinator and view controller. (Closed)
Patch Set: Unittests, showcase, and clean up. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 IOS_SHOWCASE_COMMON_COORDINATOR_H_ 5 #ifndef IOS_SHOWCASE_COMMON_COORDINATOR_H_
6 #define IOS_SHOWCASE_COMMON_COORDINATOR_H_ 6 #define IOS_SHOWCASE_COMMON_COORDINATOR_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <UIKit/UIKit.h>
9 9
10 // This protocol is the common interface to the simple non-production 10 // This protocol is the common interface to the simple non-production
11 // coordinators that will initialize, set up and present production view 11 // coordinators that will initialize, set up and present production view
12 // controllers, usually with completely mocked data. 12 // controllers, usually with completely mocked data.
13 @protocol Coordinator<NSObject> 13 @protocol Coordinator<NSObject>
14 14
15 // The base view controller used to present the view controller that this 15 // The base view controller used to present the view controller that this
16 // coordinator drives. 16 // coordinator drives.
17 @property(nonatomic, weak) UIViewController* baseViewController; 17 @property(nonatomic, weak) UIViewController* baseViewController;
18 18
19 // Typically, this initializes a view controller, sets it up and presents it. 19 // Typically, this initializes a view controller, sets it up and presents it.
20 - (void)start; 20 - (void)start;
21 21
22 @end 22 @end
23 23
24 #endif // IOS_SHOWCASE_COMMON_COORDINATOR_H_ 24 #endif // IOS_SHOWCASE_COMMON_COORDINATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698