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

Unified Diff: ios/clean/chrome/browser/ui/tools/tools_coordinator.mm

Issue 2769963007: [ios clean] Creates ToolsMenu Mediator and Consumer (Closed)
Patch Set: CL Feedback, ARC Guards and Comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
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..d6196e4599d911ba23d8b358b23cc68911b6e61f 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,13 @@
@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;
#pragma mark - BrowserCoordinator
@@ -27,6 +30,7 @@
self.menuViewController = [[MenuViewController alloc] init];
self.menuViewController.modalPresentationStyle = UIModalPresentationCustom;
self.menuViewController.transitioningDelegate = self;
+ _mediator = [[ToolsMediator alloc] initWithConsumer:self.menuViewController];
[self.context.baseViewController presentViewController:self.menuViewController
animated:self.context.animated
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_consumer.h ('k') | ios/clean/chrome/browser/ui/tools/tools_mediator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698