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

Unified Diff: ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm

Issue 2940853003: [ios clean] Use dispatcher for showing TabStrip (Closed)
Patch Set: Created 3 years, 6 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/toolbar/toolbar_view_controller.mm
diff --git a/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm b/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm
index 6ab9c7cdcbefda99f17b04bb8f4b5a141418b196..7afb4b5784e2a5eb329a67ec3a147060a99ee848 100644
--- a/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm
+++ b/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm
@@ -6,9 +6,9 @@
#import "base/mac/foundation_util.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
-#import "ios/clean/chrome/browser/ui/actions/tab_strip_actions.h"
#import "ios/clean/chrome/browser/ui/commands/navigation_commands.h"
#import "ios/clean/chrome/browser/ui/commands/tab_grid_commands.h"
+#import "ios/clean/chrome/browser/ui/commands/tab_strip_commands.h"
#import "ios/clean/chrome/browser/ui/commands/tools_menu_commands.h"
#import "ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.h"
#import "ios/clean/chrome/browser/ui/toolbar/toolbar_component_options.h"
@@ -159,7 +159,7 @@
[buttonConstraints
addObject:[self.tabSwitchStripButton.widthAnchor
constraintEqualToConstant:kToolbarButtonWidth]];
- [self.tabSwitchStripButton addTarget:nil
+ [self.tabSwitchStripButton addTarget:self
action:@selector(showTabStrip:)
forControlEvents:UIControlEventTouchUpInside];
[self.tabSwitchStripButton
@@ -375,7 +375,7 @@
fromView:self.toolsMenuButton];
}
-#pragma mark - Private Methods
+#pragma mark - Commands
- (void)showToolsMenu:(id)sender {
[self.dispatcher showToolsMenu];
@@ -405,6 +405,10 @@
[self.dispatcher reloadPage];
}
+- (void)showTabStrip:(id)sender {
marq (ping after 24h) 2017/06/15 07:35:35 No change, but this block of boilerplate makes me
sczs 2017/06/15 19:56:17 I agree, might was well change it on this CL. Sinc
+ [self.dispatcher showTabStrip];
+}
+
- (void)showTabGrid:(id)sender {
[self.dispatcher showTabGrid];
}

Powered by Google App Engine
This is Rietveld 408576698