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

Unified Diff: ash/common/ash_switches.cc

Issue 2617733002: Hide docked windows behind a flag (Closed)
Patch Set: Fix tests failed because of DCHECK Created 3 years, 11 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/ash_switches.cc
diff --git a/ash/common/ash_switches.cc b/ash/common/ash_switches.cc
index e9eb255ddae2d24c172b000b2d2b7c5c91c202c9..d912f1494084bf67939be4b7b0db627931e08be3 100644
--- a/ash/common/ash_switches.cc
+++ b/ash/common/ash_switches.cc
@@ -58,6 +58,10 @@ const char kAshEnablePalette[] = "ash-enable-palette";
const char kAshEnablePaletteOnAllDisplays[] =
"ash-enable-palette-on-all-displays";
+// Enables docking windows to the right or left (not to be confused with snapped
+// windows).
+const char kAshEnableDockedWindows[] = "ash-enable-docked-windows";
+
// Enables the observation of accelerometer events to enter touch-view mode.
const char kAshEnableTouchView[] = "enable-touchview";
@@ -99,5 +103,10 @@ bool ConstrainPointerToRoot() {
kAshConstrainPointerToRoot);
}
+bool DockedWindowsEnabled() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ ash::switches::kAshEnableDockedWindows);
+}
+
} // namespace switches
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698