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

Unified Diff: ios/clean/chrome/browser/ui/tab/tab_coordinator.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/tab/tab_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm b/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm
index bf46bc87150d3da92af6ec7ce5c98c8f25145f6c..54f9c3009b1c0f050cee75b54ab60ff987bcedf0 100644
--- a/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/tab/tab_coordinator.mm
@@ -11,6 +11,7 @@
#include "ios/chrome/browser/chrome_url_constants.h"
#import "ios/clean/chrome/browser/ui/animators/zoom_transition_animator.h"
#import "ios/clean/chrome/browser/ui/commands/tab_commands.h"
+#import "ios/clean/chrome/browser/ui/commands/tab_strip_commands.h"
#import "ios/clean/chrome/browser/ui/find_in_page/find_in_page_coordinator.h"
#import "ios/clean/chrome/browser/ui/ntp/ntp_coordinator.h"
#import "ios/clean/chrome/browser/ui/tab/tab_container_view_controller.h"
@@ -61,8 +62,10 @@
selector:@selector(broadcastTabStripVisible:)];
CommandDispatcher* dispatcher = self.browser->dispatcher();
- // TabCommands
+ // Register Commands
[dispatcher startDispatchingToTarget:self forSelector:@selector(loadURL:)];
+ [dispatcher startDispatchingToTarget:self
+ forSelector:@selector(showTabStrip)];
WebCoordinator* webCoordinator = [[WebCoordinator alloc] init];
webCoordinator.webState = self.webState;
@@ -207,4 +210,10 @@ animationControllerForDismissedController:(UIViewController*)dismissed {
self.webState->GetNavigationManager()->LoadURLWithParams(params);
}
+#pragma mark - TabStripCommands
+
+- (void)showTabStrip {
+ self.viewController.tabStripVisible = YES;
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698