Chromium Code Reviews| Index: ios/clean/chrome/browser/ui/tools/tools_coordinator.mm |
| diff --git a/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm b/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm |
| index 567b2cb450699dfca92e49977b167348fb491811..1dae9a659040b055e74ccb6114dd628e2f5e133b 100644 |
| --- a/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm |
| +++ b/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm |
| @@ -7,6 +7,7 @@ |
| #import "ios/clean/chrome/browser/ui/animators/zoom_transition_animator.h" |
| #import "ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h" |
| #import "ios/clean/chrome/browser/ui/tools/menu_view_controller.h" |
| +#import "ios/clean/chrome/browser/ui/tools/tools_mediator.h" |
| #import "ios/shared/chrome/browser/coordinator_context/coordinator_context.h" |
| #if !defined(__has_feature) || !__has_feature(objc_arc) |
| @@ -15,11 +16,20 @@ |
| @interface ToolsCoordinator ()<UIViewControllerTransitioningDelegate> |
| @property(nonatomic, strong) MenuViewController* menuViewController; |
| +@property(nonatomic, strong) ToolsMediator* mediator; |
| @end |
| @implementation ToolsCoordinator |
| @synthesize toolbarCommandHandler = _toolbarCommandHandler; |
| @synthesize menuViewController = _menuViewController; |
| +@synthesize mediator = _mediator; |
| + |
| +- (instancetype)init { |
| + if ((self = [super init])) { |
| + _mediator = [[ToolsMediator alloc] init]; |
| + } |
| + return self; |
| +} |
| #pragma mark - BrowserCoordinator |
| @@ -27,6 +37,7 @@ |
| self.menuViewController = [[MenuViewController alloc] init]; |
| self.menuViewController.modalPresentationStyle = UIModalPresentationCustom; |
| self.menuViewController.transitioningDelegate = self; |
| + self.mediator.consumer = self.menuViewController; |
|
marq (ping after 24h)
2017/03/28 15:17:52
We haven't sorted out how we're going to handle di
sczs
2017/03/29 14:52:49
Sounds like a good idea. Done.
|
| [self.context.baseViewController presentViewController:self.menuViewController |
| animated:self.context.animated |