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

Unified Diff: ios/showcase/tab_grid/sc_tab_grid_coordinator.mm

Issue 2786893002: [ios] Dispatcher for tab_strip and tab_grid. (Closed)
Patch Set: Update showcase. 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/showcase/tab_grid/sc_tab_grid_coordinator.mm
diff --git a/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm b/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm
index 27f6554609fc56a91cb65af45d134cc82ac8eab9..a51252885b6b8e100085cafb480bcf0a7e373b81 100644
--- a/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm
+++ b/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm
@@ -5,7 +5,7 @@
#import "ios/showcase/tab_grid/sc_tab_grid_coordinator.h"
#import "base/format_macros.h"
-#import "ios/clean/chrome/browser/ui/commands/tab_commands.h"
+#import "ios/clean/chrome/browser/ui/commands/tab_grid_commands.h"
#import "ios/clean/chrome/browser/ui/tab_collection/tab_collection_data_source.h"
#import "ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h"
#import "ios/showcase/common/protocol_alerter.h"
@@ -25,15 +25,16 @@
@synthesize alerter = _alerter;
- (void)start {
- self.alerter =
- [[ProtocolAlerter alloc] initWithProtocols:@[ @protocol(TabCommands) ]];
+ self.alerter = [[ProtocolAlerter alloc] initWithProtocols:@[
+ @protocol(SettingsCommands), @protocol(TabGridCommands)
+ ]];
self.alerter.baseViewController = self.baseViewController;
self.viewController = [[TabGridViewController alloc] init];
self.viewController.title = @"Tab Grid";
self.viewController.dataSource = self;
- self.viewController.tabCommandHandler =
- static_cast<id<TabCommands>>(self.alerter);
+ self.viewController.dispatcher =
+ static_cast<id<SettingsCommands, TabGridCommands>>(self.alerter);
[self.baseViewController setHidesBarsOnSwipe:YES];
[self.baseViewController pushViewController:self.viewController animated:YES];
« no previous file with comments | « ios/clean/chrome/browser/ui/tab_strip/tab_strip_view_controller.mm ('k') | ios/showcase/tab_grid/sc_tab_grid_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698