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

Side by Side Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm

Issue 2969103002: [ios] Remove IDC_SHOW_TOOLS_MENU
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.h" 5 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.h"
6 6
7 #include "base/ios/block_types.h" 7 #include "base/ios/block_types.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/metrics/user_metrics_action.h" 9 #include "base/metrics/user_metrics_action.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 - (void)setDelegate:(id<TabSwitcherDelegate>)delegate { 367 - (void)setDelegate:(id<TabSwitcherDelegate>)delegate {
368 _delegate = delegate; 368 _delegate = delegate;
369 if (delegate == nullptr) 369 if (delegate == nullptr)
370 [_tabSwitcherModel setMainTabModel:nil otrTabModel:nil]; 370 [_tabSwitcherModel setMainTabModel:nil otrTabModel:nil];
371 } 371 }
372 372
373 - (id<TabSwitcherDelegate>)delegate { 373 - (id<TabSwitcherDelegate>)delegate {
374 return _delegate; 374 return _delegate;
375 } 375 }
376 376
377 - (id<BrowserCommands>)browserCommandsDispatcher {
378 // TODO(crbug.com/738881) add a dispatcher instance to this class and
379 // return it here when needed.
380 return nil;
381 }
382
377 - (IBAction)chromeExecuteCommand:(id)sender { 383 - (IBAction)chromeExecuteCommand:(id)sender {
378 int command = [sender tag]; 384 int command = [sender tag];
379 385
380 switch (command) { 386 switch (command) {
381 case IDC_NEW_INCOGNITO_TAB: // fallthrough 387 case IDC_NEW_INCOGNITO_TAB: // fallthrough
382 case IDC_NEW_TAB: { 388 case IDC_NEW_TAB: {
383 // Ensure that the right mode is showing. 389 // Ensure that the right mode is showing.
384 NSInteger panelIndex = (command == IDC_NEW_TAB) 390 NSInteger panelIndex = (command == IDC_NEW_TAB)
385 ? kLocalTabsOnTheRecordPanelIndex 391 ? kLocalTabsOnTheRecordPanelIndex
386 : kLocalTabsOffTheRecordPanelIndex; 392 : kLocalTabsOffTheRecordPanelIndex;
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 base::UserMetricsAction("MobileTabSwitcherCloseNonIncognitoTab")); 1218 base::UserMetricsAction("MobileTabSwitcherCloseNonIncognitoTab"));
1213 } 1219 }
1214 } 1220 }
1215 1221
1216 - (void)tabSwitcherPanelControllerDidUpdateOverlayViewVisibility: 1222 - (void)tabSwitcherPanelControllerDidUpdateOverlayViewVisibility:
1217 (TabSwitcherPanelController*)tabSwitcherPanelController { 1223 (TabSwitcherPanelController*)tabSwitcherPanelController {
1218 [_tabSwitcherView updateOverlayButtonState]; 1224 [_tabSwitcherView updateOverlayButtonState];
1219 } 1225 }
1220 1226
1221 @end 1227 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/tab_switcher.h ('k') | ios/chrome/browser/ui/toolbar/toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698