OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_SHOWCASE_COMMON_COORDINATOR_H_ |
| 6 #define IOS_SHOWCASE_COMMON_COORDINATOR_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 // This protocol is the common interface to the simple non-production |
| 11 // coordinators that will initialize, set up and present production view |
| 12 // controllers, usually with completely mocked data. |
| 13 @protocol Coordinator<NSObject> |
| 14 |
| 15 // The base view controller used to present the view controller that this |
| 16 // coordinator drives. |
| 17 @property(nonatomic, weak) UIViewController* baseViewController; |
| 18 |
| 19 // Typically, this initializes a view controller, sets it up and presents it. |
| 20 - (void)start; |
| 21 |
| 22 @end |
| 23 |
| 24 #endif // IOS_SHOWCASE_COMMON_COORDINATOR_H_ |
OLD | NEW |