diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-23 16:28:20 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-23 16:28:20 +0000 |
commit | f8c5884f0a8f98d335fcdc3cd0c60db397f15a15 (patch) | |
tree | b5e69931d28c25a0f0691a6c3e1286c4c8404f1b /ash/ash_switches.cc | |
parent | e01ad5a72f5c68ecd28764ba6c0011d2a243dbf2 (diff) | |
download | chromium_src-f8c5884f0a8f98d335fcdc3cd0c60db397f15a15.zip chromium_src-f8c5884f0a8f98d335fcdc3cd0c60db397f15a15.tar.gz chromium_src-f8c5884f0a8f98d335fcdc3cd0c60db397f15a15.tar.bz2 |
Add ash-enable-sticky-edges for 'sticky' instead of 'snap' behavior.
I renamed everything related to edges to 'sticky' to differentiate
it from SnapSizer in the code. I put the new behavior (which is
a pretty trivial change) behind a flag.
I moved ShouldStickToEdge to window_util.cc in case we want to use
the smae logic in snapping panels to / from the launcher. However,
my initial experimentation with that was not great so I left that
change out for now.
BUG=228955
Review URL: https://codereview.chromium.org/14273008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/ash_switches.cc')
-rw-r--r-- | ash/ash_switches.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/ash_switches.cc b/ash/ash_switches.cc index 696e8c3..bbbc3db 100644 --- a/ash/ash_switches.cc +++ b/ash/ash_switches.cc @@ -89,6 +89,9 @@ const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor"; // Enables the Oak tree viewer. const char kAshEnableOak[] = "ash-enable-oak"; +// Enables "sticky" edges instead of "snap-to-edge" +const char kAshEnableStickyEdges[] = "ash-enable-sticky-edges"; + // Enables showing the tray bubble by dragging on the shelf. const char kAshEnableTrayDragging[] = "ash-enable-tray-dragging"; |