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