event_switches.cc revision cedac228d2dd51db4b79ea1e72c7f249408ee061
1e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// Copyright 2013 The Chromium Authors. All rights reserved. 2e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// Use of this source code is governed by a BSD-style license that can be 3e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// found in the LICENSE file. 4e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org 5e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org#include "ui/events/event_switches.h" 6e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org 7e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.orgnamespace switches { 8e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org 9e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// Enable scroll prediction for scroll update events. 10e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.orgconst char kEnableScrollPrediction[] = "enable-scroll-prediction"; 11c0b7e10c6a68f59e1653e6c18e6bc954b3c3f0cfcommit-bot@chromium.org 12c0b7e10c6a68f59e1653e6c18e6bc954b3c3f0cfcommit-bot@chromium.org// Enable support for touch events. 13e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.orgconst char kTouchEvents[] = "touch-events"; 14c0b7e10c6a68f59e1653e6c18e6bc954b3c3f0cfcommit-bot@chromium.org 15c0b7e10c6a68f59e1653e6c18e6bc954b3c3f0cfcommit-bot@chromium.org// The values the kTouchEvents switch may have, as in --touch-events=disabled. 16c0b7e10c6a68f59e1653e6c18e6bc954b3c3f0cfcommit-bot@chromium.org// auto: enabled at startup when an attached touchscreen is present. 17e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.orgconst char kTouchEventsAuto[] = "auto"; 18e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// enabled: touch events always enabled. 19e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.orgconst char kTouchEventsEnabled[] = "enabled"; 20e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// disabled: touch events are disabled. 21e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.orgconst char kTouchEventsDisabled[] = "disabled"; 22e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org 23e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// Enable the unified gesture detector, instead of the aura gesture detector. 24e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.orgconst char kUnifiedGestureDetector[] = "unified-gesture-detector"; 25e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org 26e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// The values the kUnifiedGestureDetector switch may have, as in 27e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// --unified-gesture-detector=disabled. 28e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// auto: Same as disabled. 2951a11b7f2f7c0021022004d0d4b0924a590990f9commit-bot@chromium.orgconst char kUnifiedGestureDetectorAuto[] = "auto"; 3051a11b7f2f7c0021022004d0d4b0924a590990f9commit-bot@chromium.org// enabled: Use the unified gesture detector. 31b83b6b4f7690fe929d8d6b1a3d2b7ed562b95ba6robertphillips@google.comconst char kUnifiedGestureDetectorEnabled[] = "enabled"; 329a6eb0e1e8a8de7371cd9604f34619b8f87de66fsenorblanco@chromium.org// disabled: Use the aura gesture detector. 339a6eb0e1e8a8de7371cd9604f34619b8f87de66fsenorblanco@chromium.orgconst char kUnifiedGestureDetectorDisabled[] = "disabled"; 34b83b6b4f7690fe929d8d6b1a3d2b7ed562b95ba6robertphillips@google.com 35c0b7e10c6a68f59e1653e6c18e6bc954b3c3f0cfcommit-bot@chromium.org#if defined(OS_LINUX) 36e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// Tells chrome to interpret events from these devices as touch events. Only 37e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// available with XInput 2 (i.e. X server 1.8 or above). The id's of the 38e51755fc64bf5df4bed9d74f4bca4f70897d59a9mike@reedtribe.org// devices can be retrieved from 'xinput list'. 39const char kTouchDevices[] = "touch-devices"; 40#endif 41 42#if defined(USE_XI2_MT) || defined(USE_OZONE) 43// The calibration factors given as "<left>,<right>,<top>,<bottom>". 44const char kTouchCalibration[] = "touch-calibration"; 45#endif 46 47} // namespace switches 48