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

Unified Diff: ash/common/accelerators/debug_commands.cc

Issue 2323863002: Separate debugging and developer accelerators (Closed)
Patch Set: Nits Created 4 years, 3 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: ash/common/accelerators/debug_commands.cc
diff --git a/ash/common/accelerators/debug_commands.cc b/ash/common/accelerators/debug_commands.cc
index c7746650f398ab9c913be9051bb96afc2d47fa9d..9de9b24daa571ce44acfcbc0b7067bb30edaf879 100644
--- a/ash/common/accelerators/debug_commands.cc
+++ b/ash/common/accelerators/debug_commands.cc
@@ -131,7 +131,7 @@ void HandleToggleTouchscreen() {
ash::WmShell::Get()->delegate()->ToggleTouchscreen();
}
-void HandleToggleToggleTouchView() {
+void HandleToggleTouchView() {
MaximizeModeController* controller =
WmShell::Get()->maximize_mode_controller();
controller->EnableMaximizeModeWindowManager(
@@ -156,6 +156,11 @@ bool DebugAcceleratorsEnabled() {
switches::kAshDebugShortcuts);
}
+bool DeveloperAcceleratorsEnabled() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kAshDeveloperShortcuts);
+}
+
void PerformDebugActionIfEnabled(AcceleratorAction action) {
if (!DebugAcceleratorsEnabled())
return;
@@ -174,7 +179,7 @@ void PerformDebugActionIfEnabled(AcceleratorAction action) {
HandleToggleTouchscreen();
break;
case DEBUG_TOGGLE_TOUCH_VIEW:
- HandleToggleToggleTouchView();
+ HandleToggleTouchView();
break;
#endif
case DEBUG_TOGGLE_WALLPAPER_MODE:

Powered by Google App Engine
This is Rietveld 408576698