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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 1412623006: Developer Feature: Add Debug Accelerators to Toggle Touchscreen/Touchpad On or Off (CrOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sadrul's comment Created 5 years, 1 month 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') | ui/events/base_event_utils.cc » ('J')
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 b18d0a01a1af496ea7a3b0be59fe3279badddfaa..f7e1e9e46c4d25a9565a190be80202be6520fb16 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -986,6 +986,8 @@ bool AcceleratorController::CanPerformAction(
return CanHandlePositionCenter();
#if defined(OS_CHROMEOS)
case DEBUG_ADD_REMOVE_DISPLAY:
+ case DEBUG_TOGGLE_TOUCH_PAD:
+ case DEBUG_TOGGLE_TOUCH_SCREEN:
case DEBUG_TOGGLE_UNIFIED_DESKTOP:
return debug::DebugAcceleratorsEnabled();
case DISABLE_CAPS_LOCK:
@@ -1242,8 +1244,8 @@ void AcceleratorController::PerformAction(AcceleratorAction action,
HandleBrightnessUp(brightness_control_delegate_.get(), accelerator);
break;
case DEBUG_ADD_REMOVE_DISPLAY:
- debug::PerformDebugActionIfEnabled(action);
- break;
+ case DEBUG_TOGGLE_TOUCH_PAD:
+ case DEBUG_TOGGLE_TOUCH_SCREEN:
case DEBUG_TOGGLE_UNIFIED_DESKTOP:
debug::PerformDebugActionIfEnabled(action);
break;
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.h » ('j') | ui/events/base_event_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698