1ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com// Copyright 2013 The Chromium Authors. All rights reserved.
2ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com// Use of this source code is governed by a BSD-style license that can be
3ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com// found in the LICENSE file.
4ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com
5ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com#include "ui/events/event_switches.h"
6ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com
7971d0c8049c6bfc7a58f0b41f8f59f9ec9ca077bbsalomon@google.comnamespace switches {
857f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.com
957f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.com// Enable scroll prediction for scroll update events.
1057f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.comconst char kEnableScrollPrediction[] = "enable-scroll-prediction";
1157f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.com
1257f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.com// Enable support for touch events.
1357f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.comconst char kTouchEvents[] = "touch-events";
1457f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.com
1557f7abc8659f17e58fc2d1410117033ad524f9d3epoger@google.com// The values the kTouchEvents switch may have, as in --touch-events=disabled.
16b29c883fb46ac6099440d82ac57b86d25386daedbungeman@google.com//   auto: enabled at startup when an attached touchscreen is present.
176f6568b27eae62fea23ab8192c6da02ab892bb5eepoger@google.comconst char kTouchEventsAuto[] = "auto";
1837269607334b99bf814c7dc6b426745d9b7c7e3fepoger@google.com//   enabled: touch events always enabled.
197bc13a62609149f0b535c2f3ff7210eb834d8b36epoger@google.comconst char kTouchEventsEnabled[] = "enabled";
2030e6e2af14e84216b1c113fd7500d0822bc81daamtklein//   disabled: touch events are disabled.
21afb4379dbca4d4d3824ace183a7348d24bc1589fmtkleinconst char kTouchEventsDisabled[] = "disabled";
22bcbc1788b478b1e54079318ad073e8490aa66faetfarina
23bcbc1788b478b1e54079318ad073e8490aa66faetfarina// Enable compensation for unstable pinch zoom. Some touch screens display
245f6a00775511b5675607c2bfdbb096c0a815025depoger@google.com// significant amount of wobble when moving a finger in a straight line. This
25b9b9a18ab459c2616ac4a52c9f8cc0637d284229reed@android.com// makes two finger scroll trigger an oscillating pinch zoom. See
26d9ba9a05d6f5766fdb1378b6ed84c0659009a8dascroggo@google.com// crbug.com/394380 for details.
278a85d0c4938173476d037d7af0ee3b9436a1234ereed@google.comconst char kCompensateForUnstablePinchZoom[] =
284370aedf7f55af74e9ebb4ad1c2e010c08236dfajunov@google.com    "compensate-for-unstable-pinch-zoom";
29971d0c8049c6bfc7a58f0b41f8f59f9ec9ca077bbsalomon@google.com
305e00989a283111cef05bed8102e45c16651e43e4commit-bot@chromium.org#if defined(OS_LINUX)
31de96163a80167636d95837f9ee6a2e98baf9d350epoger@google.com// Tells chrome to interpret events from these devices as touch events. Only
32c41295d1223136da4f9e4c65b7145360684ede4bcommit-bot@chromium.org// available with XInput 2 (i.e. X server 1.8 or above). The id's of the
335af9b2032b552516c9223d9fb22185b022b13c62scroggo@google.com// devices can be retrieved from 'xinput list'.
348015dd83ae37147bb630d4751030868051ad0caereed@android.comconst char kTouchDevices[] = "touch-devices";
358015dd83ae37147bb630d4751030868051ad0caereed@android.com#endif
368015dd83ae37147bb630d4751030868051ad0caereed@android.com
37e3bb3bce3e9c1f3bc8ee779b1b3383c18e560bcecommit-bot@chromium.org#if defined(USE_XI2_MT) || defined(USE_OZONE)
38e8ebeb1f8fde6525bbab988c6090a5d3ab19855bepoger@google.com// The calibration factors given as "<left>,<right>,<top>,<bottom>".
390dcbece326ce2fa1f9046aa69a21bb99de08714avandebo@chromium.orgconst char kTouchCalibration[] = "touch-calibration";
409875dd14af6d768da8d1a4be58b98fc91ceca0ddtomhudson@google.com#endif
41770963f23f4fc313db0fa3bac18b1b8aafb55f17robertphillips@google.com
42977b9c8af3ef1b9a2fa2a0037cf3734cf2ba13d9robertphillips@google.com}  // namespace switches
435e00989a283111cef05bed8102e45c16651e43e4commit-bot@chromium.org