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

Side by Side Diff: ui/events/event_switches.cc

Issue 458363002: Remove old Aura Gesture Detection Pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address sadrul's comment, and rebase. Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/events/event_switches.h ('k') | ui/events/events.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/event_switches.h" 5 #include "ui/events/event_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // Enable scroll prediction for scroll update events. 9 // Enable scroll prediction for scroll update events.
10 const char kEnableScrollPrediction[] = "enable-scroll-prediction"; 10 const char kEnableScrollPrediction[] = "enable-scroll-prediction";
11 11
12 // Enable support for touch events. 12 // Enable support for touch events.
13 const char kTouchEvents[] = "touch-events"; 13 const char kTouchEvents[] = "touch-events";
14 14
15 // The values the kTouchEvents switch may have, as in --touch-events=disabled. 15 // The values the kTouchEvents switch may have, as in --touch-events=disabled.
16 // auto: enabled at startup when an attached touchscreen is present. 16 // auto: enabled at startup when an attached touchscreen is present.
17 const char kTouchEventsAuto[] = "auto"; 17 const char kTouchEventsAuto[] = "auto";
18 // enabled: touch events always enabled. 18 // enabled: touch events always enabled.
19 const char kTouchEventsEnabled[] = "enabled"; 19 const char kTouchEventsEnabled[] = "enabled";
20 // disabled: touch events are disabled. 20 // disabled: touch events are disabled.
21 const char kTouchEventsDisabled[] = "disabled"; 21 const char kTouchEventsDisabled[] = "disabled";
22 22
23 // Enable the unified gesture detector, instead of the aura gesture detector.
24 const char kUnifiedGestureDetector[] = "unified-gesture-detector";
25
26 // The values the kUnifiedGestureDetector switch may have, as in
27 // --unified-gesture-detector=disabled.
28 // auto: Same as disabled.
29 const char kUnifiedGestureDetectorAuto[] = "auto";
30 // enabled: Use the unified gesture detector.
31 const char kUnifiedGestureDetectorEnabled[] = "enabled";
32 // disabled: Use the aura gesture detector.
33 const char kUnifiedGestureDetectorDisabled[] = "disabled";
34
35 // Enable compensation for unstable pinch zoom. Some touch screens display 23 // Enable compensation for unstable pinch zoom. Some touch screens display
36 // significant amount of wobble when moving a finger in a straight line. This 24 // significant amount of wobble when moving a finger in a straight line. This
37 // makes two finger scroll trigger an oscillating pinch zoom. See 25 // makes two finger scroll trigger an oscillating pinch zoom. See
38 // crbug.com/394380 for details. 26 // crbug.com/394380 for details.
39 const char kCompensateForUnstablePinchZoom[] = 27 const char kCompensateForUnstablePinchZoom[] =
40 "compensate-for-unstable-pinch-zoom"; 28 "compensate-for-unstable-pinch-zoom";
41 29
42 #if defined(OS_LINUX) 30 #if defined(OS_LINUX)
43 // Tells chrome to interpret events from these devices as touch events. Only 31 // Tells chrome to interpret events from these devices as touch events. Only
44 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the 32 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the
45 // devices can be retrieved from 'xinput list'. 33 // devices can be retrieved from 'xinput list'.
46 const char kTouchDevices[] = "touch-devices"; 34 const char kTouchDevices[] = "touch-devices";
47 #endif 35 #endif
48 36
49 #if defined(USE_XI2_MT) || defined(USE_OZONE) 37 #if defined(USE_XI2_MT) || defined(USE_OZONE)
50 // The calibration factors given as "<left>,<right>,<top>,<bottom>". 38 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
51 const char kTouchCalibration[] = "touch-calibration"; 39 const char kTouchCalibration[] = "touch-calibration";
52 #endif 40 #endif
53 41
54 } // namespace switches 42 } // namespace switches
OLDNEW
« no previous file with comments | « ui/events/event_switches.h ('k') | ui/events/events.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698