Desks: Put the touchpad gestures behind a flag
There're still improvements we want for Virtual Desks gestures.
This CL puts the touchpad gestures behind a flag until we can
land the full experience.
This means users who want to enable and use touchpad gestures
to switch virtual desks, will have to enable the flag
"--enable-virtual-desks-gestures" from chrome://flags. The flag
will be disabled by default.
* Flag Disabled:
- 3-finger horizontal swipes -> Tab scrubbing and overview highlighter.
- Touchpad gestures to switch desks will be disabled.
* Flag Enabled:
- 3-finger horizontal swipes -> Switch desks.
- 4-finger horizontal swipes -> Tab scrubbing & overview highlighter.
BUG=1005340
TEST=Manually, and modified tests.
Change-Id: If867b444a62d0c5853fba4b21b8d74125dfe972b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1811802
Commit-Queue: Ahmed Fakhry <[email protected]>
Reviewed-by: James Cook <[email protected]>
Cr-Commit-Position: refs/heads/master@{#698116}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 6d7c1cf..b2641712 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -3362,6 +3362,10 @@
const char kEnableVirtualDesksDescription[] =
"A preview of the upcoming Virtual Desks features on Chrome OS devices.";
+const char kEnableVirtualDesksGesturesName[] = "Enable Virtual Desks gestures";
+const char kEnableVirtualDesksGesturesDescription[] =
+ "Enables touchpad gestures for Virtual Desks.";
+
const char kTrimOnFreezeName[] = "Trim Working Set on freeze";
const char kTrimOnFreezeDescription[] = "Trim Working Set on all frames frozen";