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

Unified Diff: ash/accelerators/debug_commands.cc

Issue 1261693004: Allow dynamic enabling/disabling of unified desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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') | ash/ash_switches.h » ('j') | 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 5ce0c7c40d9f8f1fc20421ffe74bec59ddab4fc3..fe4589d89d9e5ba03d97e7a82ca0c21ffb27ce38 100644
--- a/ash/accelerators/debug_commands.cc
+++ b/ash/accelerators/debug_commands.cc
@@ -148,6 +148,10 @@ void PerformDebugActionIfEnabled(AcceleratorAction action) {
case DEBUG_ADD_REMOVE_DISPLAY:
Shell::GetInstance()->display_manager()->AddRemoveDisplay();
break;
+ case DEBUG_TOGGLE_UNIFIED_DESKTOP:
+ Shell::GetInstance()->display_manager()->SetUnifiedDesktopEnabled(
+ !Shell::GetInstance()->display_manager()->unified_desktop_enabled());
+ break;
#endif
case DEBUG_PRINT_LAYER_HIERARCHY:
HandlePrintLayerHierarchy();
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | ash/ash_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698