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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 2093573003: Debug shortcut to toggle touch view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments. revert unnecesary change Created 4 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
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index b61863112d88deaeee520264433a89e5f4be96b7..bf425f1b0938553d13fc2a56ac92834aad3f8e8e 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -701,19 +701,6 @@ void HandleToggleSpokenFeedback() {
A11Y_NOTIFICATION_SHOW);
}
-bool CanHandleToggleTouchViewTesting() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshEnableTouchViewTesting);
-}
-
-void HandleToggleTouchViewTesting() {
- // TODO(skuhne): This is only temporary! Remove this!
- MaximizeModeController* controller = Shell::GetInstance()->
- maximize_mode_controller();
- controller->EnableMaximizeModeWindowManager(
- !controller->IsMaximizeModeWindowManagerEnabled());
-}
-
bool CanHandleTouchHud() {
return RootWindowController::ForTargetRootWindow()->touch_hud_debug();
}
@@ -1049,6 +1036,7 @@ bool AcceleratorController::CanPerformAction(
case DEBUG_ADD_REMOVE_DISPLAY:
case DEBUG_TOGGLE_TOUCH_PAD:
case DEBUG_TOGGLE_TOUCH_SCREEN:
+ case DEBUG_TOGGLE_TOUCH_VIEW:
case DEBUG_TOGGLE_UNIFIED_DESKTOP:
return debug::DebugAcceleratorsEnabled();
case DISABLE_CAPS_LOCK:
@@ -1060,8 +1048,6 @@ bool AcceleratorController::CanPerformAction(
return CanHandleCycleUser();
case TOGGLE_CAPS_LOCK:
return CanHandleToggleCapsLock(accelerator, previous_accelerator);
- case TOGGLE_TOUCH_VIEW_TESTING:
- return CanHandleToggleTouchViewTesting();
case TOUCH_HUD_CLEAR:
case TOUCH_HUD_MODE_CHANGE:
return CanHandleTouchHud();
@@ -1313,6 +1299,7 @@ void AcceleratorController::PerformAction(AcceleratorAction action,
case DEBUG_ADD_REMOVE_DISPLAY:
case DEBUG_TOGGLE_TOUCH_PAD:
case DEBUG_TOGGLE_TOUCH_SCREEN:
+ case DEBUG_TOGGLE_TOUCH_VIEW:
case DEBUG_TOGGLE_UNIFIED_DESKTOP:
debug::PerformDebugActionIfEnabled(action);
break;
@@ -1381,9 +1368,6 @@ void AcceleratorController::PerformAction(AcceleratorAction action,
case TOGGLE_SPOKEN_FEEDBACK:
HandleToggleSpokenFeedback();
break;
- case TOGGLE_TOUCH_VIEW_TESTING:
- HandleToggleTouchViewTesting();
- break;
case TOGGLE_WIFI:
Shell::GetInstance()->system_tray_notifier()->NotifyRequestToggleWifi();
break;
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698