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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 22778002: Revert 216874 - Use overview mode for alt-tab cycling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | ash/wm/window_selector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
===================================================================
--- ash/accelerators/accelerator_controller.cc (revision 216889)
+++ ash/accelerators/accelerator_controller.cc (working copy)
@@ -94,12 +94,6 @@
return true;
}
-bool HandleCycleWindowOverviewMRU(WindowSelector::Direction direction) {
- Shell::GetInstance()->
- window_selector_controller()->HandleCycleWindow(direction);
- return true;
-}
-
void HandleCycleWindowLinear(CycleDirection direction) {
Shell::GetInstance()->
window_cycle_controller()->HandleLinearCycleWindow();
@@ -524,19 +518,11 @@
case CYCLE_BACKWARD_MRU:
if (key_code == ui::VKEY_TAB)
shell->delegate()->RecordUserMetricsAction(UMA_ACCEL_PREVWINDOW_TAB);
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshEnableOverviewMode)) {
- return HandleCycleWindowOverviewMRU(WindowSelector::BACKWARD);
- }
return HandleCycleWindowMRU(WindowCycleController::BACKWARD,
accelerator.IsAltDown());
case CYCLE_FORWARD_MRU:
if (key_code == ui::VKEY_TAB)
shell->delegate()->RecordUserMetricsAction(UMA_ACCEL_NEXTWINDOW_TAB);
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshEnableOverviewMode)) {
- return HandleCycleWindowOverviewMRU(WindowSelector::FORWARD);
- }
return HandleCycleWindowMRU(WindowCycleController::FORWARD,
accelerator.IsAltDown());
case CYCLE_BACKWARD_LINEAR:
« no previous file with comments | « no previous file | ash/wm/window_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698