Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ui / events / event_switches.cc
blobdcc001475dcfa87c627a4629dce8384be275620c
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
3 // found in the LICENSE file.
5 #include "ui/events/event_switches.h"
7 namespace switches {
9 // Enable scroll prediction for scroll update events.
10 const char kEnableScrollPrediction[] = "enable-scroll-prediction";
12 // Enable support for touch events.
13 const char kTouchEvents[] = "touch-events";
15 // The values the kTouchEvents switch may have, as in --touch-events=disabled.
16 // auto: enabled at startup when an attached touchscreen is present.
17 const char kTouchEventsAuto[] = "auto";
18 // enabled: touch events always enabled.
19 const char kTouchEventsEnabled[] = "enabled";
20 // disabled: touch events are disabled.
21 const char kTouchEventsDisabled[] = "disabled";
23 // Enable compensation for unstable pinch zoom. Some touch screens display
24 // significant amount of wobble when moving a finger in a straight line. This
25 // makes two finger scroll trigger an oscillating pinch zoom. See
26 // crbug.com/394380 for details.
27 const char kCompensateForUnstablePinchZoom[] =
28 "compensate-for-unstable-pinch-zoom";
30 #if defined(OS_LINUX)
31 // Tells chrome to interpret events from these devices as touch events. Only
32 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the
33 // devices can be retrieved from 'xinput list'.
34 const char kTouchDevices[] = "touch-devices";
35 #endif
37 #if defined(USE_X11) || defined(USE_OZONE)
38 // Tells Chrome to do additional touch noise filtering. Should only be used if
39 // the driver level filtering is insufficient.
40 const char kExtraTouchNoiseFiltering[] = "touch-noise-filtering";
42 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
43 const char kTouchCalibration[] = "touch-calibration";
44 #endif
46 } // namespace switches