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

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 10117016: Implementation for switching between recently used tabs using ctrl tilde or quoteleft. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Uploading patch for review after rebase. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index f2d7be66c2f743a0000fe8fcb34a4d9e7dabd32e..d61745ccc1514db02ba4afec85fbd366a48cfc30 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -561,7 +561,9 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
case IDC_TOGGLE_SPEECH_INPUT:
ToggleSpeechInput(browser_);
break;
-
+ case IDC_SELECT_PREVIOUS_MRU_TAB:
+ SelectPreviousMRUTab(browser_);
+ break;
default:
LOG(WARNING) << "Received Unimplemented Command: " << id;
break;
@@ -809,6 +811,9 @@ void BrowserCommandController::InitCommandState() {
// Toggle speech input
command_updater_.UpdateCommandEnabled(IDC_TOGGLE_SPEECH_INPUT, true);
+ // MRU Tab Controller
+ command_updater_.UpdateCommandEnabled(IDC_SELECT_PREVIOUS_MRU_TAB, true);
+
// Initialize other commands whose state changes based on fullscreen mode.
UpdateCommandsForFullscreenMode(FULLSCREEN_DISABLED);
@@ -817,6 +822,7 @@ void BrowserCommandController::InitCommandState() {
UpdateCommandsForBookmarkEditing();
UpdateCommandsForIncognitoAvailability();
+
}
void BrowserCommandController::UpdateCommandsForIncognitoAvailability() {

Powered by Google App Engine
This is Rietveld 408576698