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

Unified Diff: ash/accelerators/debug_commands.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 | « ash/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/debug_commands.cc
diff --git a/ash/accelerators/debug_commands.cc b/ash/accelerators/debug_commands.cc
index 7e238992d4efddbad08e973df26fb0a65bea998c..6b10a06436161ebccdf8827e55dbdcf073ba5037 100644
--- a/ash/accelerators/debug_commands.cc
+++ b/ash/accelerators/debug_commands.cc
@@ -14,6 +14,7 @@
#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
+#include "ash/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/wm/window_util.h"
#include "base/command_line.h"
#include "base/metrics/user_metrics.h"
@@ -140,6 +141,13 @@ void HandleToggleTouchscreen() {
ash::Shell::GetInstance()->delegate()->ToggleTouchscreen();
}
+void HandleToggleToggleTouchView() {
+ MaximizeModeController* controller =
+ Shell::GetInstance()->maximize_mode_controller();
+ controller->EnableMaximizeModeWindowManager(
+ !controller->IsMaximizeModeWindowManagerEnabled());
+}
+
#endif // defined(OS_CHROMEOS)
} // namespace
@@ -173,6 +181,9 @@ void PerformDebugActionIfEnabled(AcceleratorAction action) {
case DEBUG_TOGGLE_TOUCH_SCREEN:
HandleToggleTouchscreen();
break;
+ case DEBUG_TOGGLE_TOUCH_VIEW:
+ HandleToggleToggleTouchView();
+ break;
case DEBUG_TOGGLE_UNIFIED_DESKTOP:
Shell::GetInstance()->display_manager()->SetUnifiedDesktopEnabled(
!Shell::GetInstance()->display_manager()->unified_desktop_enabled());
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698