From 8516b440e37066d51f7857cf98d67a8d4c9d3393 Mon Sep 17 00:00:00 2001 From: "spang@chromium.org" Date: Sat, 22 Mar 2014 04:15:20 +0000 Subject: events: Move --touch-calibration flag to event_switches We need this from ui/events/ozone to access the touchscreen calibration in ozone builds, so move it to event switches. BUG=355046 TEST=build Review URL: https://codereview.chromium.org/208423004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258774 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/aura/window_tree_host_x11.cc | 1 + ui/base/ui_base_switches.cc | 5 ----- ui/base/ui_base_switches.h | 4 ---- ui/events/event_switches.cc | 5 +++++ ui/events/event_switches.h | 4 ++++ 5 files changed, 10 insertions(+), 9 deletions(-) (limited to 'ui') diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc index 4048a5d..a57f2a9 100644 --- a/ui/aura/window_tree_host_x11.cc +++ b/ui/aura/window_tree_host_x11.cc @@ -39,6 +39,7 @@ #include "ui/compositor/dip_util.h" #include "ui/compositor/layer.h" #include "ui/events/event.h" +#include "ui/events/event_switches.h" #include "ui/events/event_utils.h" #include "ui/events/keycodes/keyboard_codes.h" #include "ui/events/x/device_data_manager.h" diff --git a/ui/base/ui_base_switches.cc b/ui/base/ui_base_switches.cc index 91fc9a9..ad78080 100644 --- a/ui/base/ui_base_switches.cc +++ b/ui/base/ui_base_switches.cc @@ -68,9 +68,4 @@ const char kTouchOptimizedUIDisabled[] = "disabled"; const char kTabletUI[] = "tablet-ui"; #endif -#if defined(USE_XI2_MT) -// The calibration factors given as ",,,". -const char kTouchCalibration[] = "touch-calibration"; -#endif - } // namespace switches diff --git a/ui/base/ui_base_switches.h b/ui/base/ui_base_switches.h index 3a3ea3a..607d3ae 100644 --- a/ui/base/ui_base_switches.h +++ b/ui/base/ui_base_switches.h @@ -35,10 +35,6 @@ UI_BASE_EXPORT extern const char kTouchOptimizedUIEnabled[]; UI_BASE_EXPORT extern const char kTabletUI[]; #endif -#if defined(USE_XI2_MT) -UI_BASE_EXPORT extern const char kTouchCalibration[]; -#endif - } // namespace switches #endif // UI_BASE_UI_BASE_SWITCHES_H_ diff --git a/ui/events/event_switches.cc b/ui/events/event_switches.cc index 195e2bb..314370a 100644 --- a/ui/events/event_switches.cc +++ b/ui/events/event_switches.cc @@ -27,4 +27,9 @@ const char kTouchEventsDisabled[] = "disabled"; const char kTouchDevices[] = "touch-devices"; #endif +#if defined(USE_XI2_MT) +// The calibration factors given as ",,,". +const char kTouchCalibration[] = "touch-calibration"; +#endif + } // namespace switches diff --git a/ui/events/event_switches.h b/ui/events/event_switches.h index d434304..caaa779 100644 --- a/ui/events/event_switches.h +++ b/ui/events/event_switches.h @@ -20,6 +20,10 @@ EVENTS_BASE_EXPORT extern const char kTouchEventsDisabled[]; EVENTS_BASE_EXPORT extern const char kTouchDevices[]; #endif +#if defined(USE_XI2_MT) +EVENTS_BASE_EXPORT extern const char kTouchCalibration[]; +#endif + } // namespace switches #endif // UI_EVENTS_EVENTS_SWITCHES_H_ -- cgit v1.1