event_switches.cc revision 010d83a9304c5a91596085d917d248abff47903a
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 "ui/events/event_switches.h"
6
7namespace switches {
8
9// Enable scroll prediction for scroll update events.
10const char kEnableScrollPrediction[] = "enable-scroll-prediction";
11
12// Enable support for touch events.
13const char kTouchEvents[] = "touch-events";
14
15// The values the kTouchEvents switch may have, as in --touch-events=disabled.
16//   auto: enabled at startup when an attached touchscreen is present.
17const char kTouchEventsAuto[] = "auto";
18//   enabled: touch events always enabled.
19const char kTouchEventsEnabled[] = "enabled";
20//   disabled: touch events are disabled.
21const char kTouchEventsDisabled[] = "disabled";
22// Use the unified gesture detector, instead of the aura gesture detector.
23const char kUseUnifiedGestureDetector[] = "use-unified-gesture-detector";
24
25#if defined(OS_LINUX)
26// Tells chrome to interpret events from these devices as touch 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'.
29const char kTouchDevices[] = "touch-devices";
30#endif
31
32#if defined(USE_XI2_MT) || defined(USE_OZONE)
33// The calibration factors given as "<left>,<right>,<top>,<bottom>".
34const char kTouchCalibration[] = "touch-calibration";
35#endif
36
37}  // namespace switches
38