| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ | 5 #ifndef UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ |
| 6 #define UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ | 6 #define UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| 11 #include <map> | 11 #include <map> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "ui/events/devices/events_devices_export.h" | 17 #include "ui/events/devices/x11/events_devices_x11_export.h" |
| 18 #include "ui/gfx/sequential_id_generator.h" | 18 #include "ui/gfx/sequential_id_generator.h" |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 | 21 |
| 22 template <typename T> struct DefaultSingletonTraits; | 22 template <typename T> struct DefaultSingletonTraits; |
| 23 } | 23 } |
| 24 | 24 |
| 25 typedef unsigned long Cursor; | 25 typedef unsigned long Cursor; |
| 26 typedef unsigned long Window; | 26 typedef unsigned long Window; |
| 27 typedef struct _XDisplay Display; | 27 typedef struct _XDisplay Display; |
| 28 typedef union _XEvent XEvent; | 28 typedef union _XEvent XEvent; |
| 29 | 29 |
| 30 namespace ui { | 30 namespace ui { |
| 31 | 31 |
| 32 // Functions related to determining touch devices. | 32 // Functions related to determining touch devices. |
| 33 class EVENTS_DEVICES_EXPORT TouchFactory { | 33 class EVENTS_DEVICES_X11_EXPORT TouchFactory { |
| 34 private: | 34 private: |
| 35 TouchFactory(); | 35 TouchFactory(); |
| 36 ~TouchFactory(); | 36 ~TouchFactory(); |
| 37 | 37 |
| 38 public: | 38 public: |
| 39 // Returns the TouchFactory singleton. | 39 // Returns the TouchFactory singleton. |
| 40 static TouchFactory* GetInstance(); | 40 static TouchFactory* GetInstance(); |
| 41 | 41 |
| 42 // Sets the touch devices from the command line. | 42 // Sets the touch devices from the command line. |
| 43 static void SetTouchDeviceListFromCommandLine(); | 43 static void SetTouchDeviceListFromCommandLine(); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 // The status of the touch screens devices themselves. | 150 // The status of the touch screens devices themselves. |
| 151 bool touch_screens_enabled_; | 151 bool touch_screens_enabled_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(TouchFactory); | 153 DISALLOW_COPY_AND_ASSIGN(TouchFactory); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace ui | 156 } // namespace ui |
| 157 | 157 |
| 158 #endif // UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ | 158 #endif // UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ |
| OLD | NEW |