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

Unified Diff: ios/showcase/toolbar/sc_toolbar_coordinator.mm

Issue 2785213003: [ios] Use dispatcher for ToolsMenu commands. (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_coordinator.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/toolbar/sc_toolbar_coordinator.mm
diff --git a/ios/showcase/toolbar/sc_toolbar_coordinator.mm b/ios/showcase/toolbar/sc_toolbar_coordinator.mm
index 27d664083efadd3d76b69b33e0a1e7cab7d68734..312aeab45f72d127907dc8b0aa8ebf3be8c666a2 100644
--- a/ios/showcase/toolbar/sc_toolbar_coordinator.mm
+++ b/ios/showcase/toolbar/sc_toolbar_coordinator.mm
@@ -5,7 +5,7 @@
#import "ios/showcase/toolbar/sc_toolbar_coordinator.h"
#import "ios/clean/chrome/browser/ui/commands/navigation_commands.h"
-#import "ios/clean/chrome/browser/ui/commands/toolbar_commands.h"
+#import "ios/clean/chrome/browser/ui/commands/tools_menu_commands.h"
#import "ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.h"
#import "ios/showcase/common/protocol_alerter.h"
@@ -28,7 +28,7 @@ CGFloat kToolbarHeight = 50.0f;
- (void)start {
self.alerter = [[ProtocolAlerter alloc] initWithProtocols:@[
- @protocol(ToolbarCommands), @protocol(NavigationCommands)
+ @protocol(ToolsMenuCommands), @protocol(NavigationCommands)
]];
self.alerter.baseViewController = self.baseViewController;
@@ -44,7 +44,7 @@ CGFloat kToolbarHeight = 50.0f;
ToolbarViewController* toolbarViewController =
[[ToolbarViewController alloc] init];
toolbarViewController.dispatcher =
- static_cast<id<ToolbarCommands, NavigationCommands>>(self.alerter);
+ static_cast<id<ToolsMenuCommands, NavigationCommands>>(self.alerter);
[containerViewController addChildViewController:toolbarViewController];
toolbarViewController.view.frame = containerView.frame;
[containerView addSubview:toolbarViewController.view];
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_coordinator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698