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

Unified Diff: ui/events/event_switches.cc

Issue 290733013: Use multi-value switch to enable/disable the unified gesture detector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix flag assignment in GestureRecognizerTest. Created 6 years, 7 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 | « ui/events/event_switches.h ('k') | ui/events/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_switches.cc
diff --git a/ui/events/event_switches.cc b/ui/events/event_switches.cc
index 93e938ffe7a4ea911e067b944c28eea67da9c9f7..d5109700a9d5714f402ed22bfc06947fe8b0c829 100644
--- a/ui/events/event_switches.cc
+++ b/ui/events/event_switches.cc
@@ -19,8 +19,18 @@ const char kTouchEventsAuto[] = "auto";
const char kTouchEventsEnabled[] = "enabled";
// disabled: touch events are disabled.
const char kTouchEventsDisabled[] = "disabled";
-// Use the unified gesture detector, instead of the aura gesture detector.
-const char kUseUnifiedGestureDetector[] = "use-unified-gesture-detector";
+
+// Enable the unified gesture detector, instead of the aura gesture detector.
+const char kUnifiedGestureDetector[] = "unified-gesture-detector";
+
+// The values the kUnifiedGestureDetector switch may have, as in
+// --unified-gesture-detector=disabled.
+// auto: Same as disabled.
+const char kUnifiedGestureDetectorAuto[] = "auto";
+// enabled: Use the unified gesture detector.
+const char kUnifiedGestureDetectorEnabled[] = "enabled";
+// disabled: Use the aura gesture detector.
+const char kUnifiedGestureDetectorDisabled[] = "disabled";
#if defined(OS_LINUX)
// Tells chrome to interpret events from these devices as touch events. Only
« no previous file with comments | « ui/events/event_switches.h ('k') | ui/events/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698