| OLD | NEW |
| 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_ |
| OLD | NEW |