Initial import chromium-67.0.3396.87
[chromium-dfly.git] / ui / events / event_switches.cc
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.
4
5 #include "build/build_config.h"
6 #include "ui/events/event_switches.h"
7
8 namespace switches {
9
10 // Enable scroll prediction for scroll update events.
11 const char kEnableScrollPrediction[] = "enable-scroll-prediction";
12
13 // Enable compensation for unstable pinch zoom. Some touch screens display
14 // significant amount of wobble when moving a finger in a straight line. This
15 // makes two finger scroll trigger an oscillating pinch zoom. See
16 // crbug.com/394380 for details.
17 const char kCompensateForUnstablePinchZoom[] =
18     "compensate-for-unstable-pinch-zoom";
19
20 #if defined(OS_LINUX)
21 // Tells chrome to interpret events from these devices as touch events. Only
22 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the
23 // devices can be retrieved from 'xinput list'.
24 const char kTouchDevices[] = "touch-devices";
25
26 // Tells chrome to interpret events from these devices as pen events. Only
27 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the
28 // devices can be retrieved from 'xinput list'.
29 const char kPenDevices[] = "pen-devices";
30 #endif
31
32 #if defined(USE_X11) || defined(USE_OZONE)
33 // Tells Chrome to do additional touch noise filtering. Should only be used if
34 // the driver level filtering is insufficient.
35 const char kExtraTouchNoiseFiltering[] = "touch-noise-filtering";
36
37 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
38 const char kTouchCalibration[] = "touch-calibration";
39
40 // Tells Chrome to do edge touch filtering. Useful for convertible tablet.
41 const char kEdgeTouchFiltering[] = "edge-touch-filtering";
42 #endif
43
44 }  // namespace switches