summaryrefslogtreecommitdiffstats
path: root/ash/ash_switches.cc
diff options
context:
space:
mode:
authorvarkha@chromium.org <varkha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-06 22:01:58 +0000
committervarkha@chromium.org <varkha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-06 22:01:58 +0000
commit736282c7fa647f483e2f34181c6e74c7f802ee70 (patch)
tree157e6863d2e5a8d5d8bf3cb7a102ae4199a1c401 /ash/ash_switches.cc
parent3b66a3cddaa01576269a60803b0d9313d21a78f4 (diff)
downloadchromium_src-736282c7fa647f483e2f34181c6e74c7f802ee70.zip
chromium_src-736282c7fa647f483e2f34181c6e74c7f802ee70.tar.gz
chromium_src-736282c7fa647f483e2f34181c6e74c7f802ee70.tar.bz2
Re-enables docked windows by default in M34 (reverts issue 109663002)
BUG=None TEST=Visual 1. in chrome://flags verify that ash-disable-docked-windows is present. 2. in chrome://flags verify that ash-enable-docked-windows is absent. 3. When running chrome without ash-enable-docked-windows it should be possible to dock a window at a screen edge. TEST=ash_unittests --gtest_filter=*Dock* Review URL: https://codereview.chromium.org/123743003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243178 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/ash_switches.cc')
-rw-r--r--ash/ash_switches.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/ash/ash_switches.cc b/ash/ash_switches.cc
index 1234a2c..6f369b6 100644
--- a/ash/ash_switches.cc
+++ b/ash/ash_switches.cc
@@ -66,6 +66,19 @@ const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing";
const char kAshDisableDisplayChangeLimiter[] =
"ash-disable-display-change-limiter";
+// Disable ability to dock windows at the desktop edge.
+const char kAshDisableDockedWindows[] = "ash-disable-docked-windows";
+
+// Disallow items to be dragged from the app launcher list into the launcher.
+const char kAshDisableDragAndDropAppListToLauncher[] =
+ "ash-disable-drag-and-drop-applist-to-launcher";
+
+// Disable dragging items off the shelf to unpin them.
+const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf";
+
+// Disables overview mode for window switching.
+const char kAshDisableOverviewMode[] = "ash-disable-overview-mode";
+
#if defined(OS_CHROMEOS)
// Disable the notification when a low-power USB charger is connected.
const char kAshDisableUsbChargerNotification[] =
@@ -91,12 +104,6 @@ const char kAshEnableAlternateFrameCaptionButtonStyle[] =
// main monitor as internal.
const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control";
-// Enable ability to dock windows at the desktop edge.
-const char kAshEnableDockedWindows[] = "ash-enable-docked-windows";
-
-// Disable dragging items off the shelf to unpin them.
-const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf";
-
// Enables putting all windows into immersive fullscreen via <F4>.
const char kAshEnableImmersiveFullscreenForAllWindows[] =
"ash-enable-immersive-all-windows";
@@ -120,9 +127,6 @@ const char kAshEnableMultiUserTray[] = "ash-enable-multi-user-tray";
// Enables the Oak tree viewer.
const char kAshEnableOak[] = "ash-enable-oak";
-// Disables overview mode for window switching.
-const char kAshDisableOverviewMode[] = "ash-disable-overview-mode";
-
// Enables software based mirroring.
const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring";
@@ -177,10 +181,6 @@ const char kAshTouchHud[] = "ash-touch-hud";
// crbug's [244983, 244990, 244994, 245005, 245012]
const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf";
-// Flags explicitly show or hide the shelf alignment menu.
-const char kShowShelfAlignmentMenu[] = "show-launcher-alignment-menu";
-const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu";
-
// Uses the 1st display in --ash-host-window-bounds as internal display.
// This is for debugging on linux desktop.
const char kAshUseFirstDisplayAsInternal[] =
@@ -199,9 +199,9 @@ const char kForceAshToDesktop[] = "ash-force-desktop";
#endif
-// Disallow items to be dragged from the app launcher list into the launcher.
-const char kAshDisableDragAndDropAppListToLauncher[] =
- "ash-disable-drag-and-drop-applist-to-launcher";
+// Flags explicitly show or hide the shelf alignment menu.
+const char kShowShelfAlignmentMenu[] = "show-launcher-alignment-menu";
+const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu";
bool UseAlternateFrameCaptionButtonStyle() {
// For the sake of simplicity, the alternate caption button style is only
@@ -251,7 +251,7 @@ bool UseOverviewMode() {
}
bool UseDockedWindows() {
- return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableDockedWindows);
+ return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows);
}
#if defined(OS_CHROMEOS)