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_X_TOUCH_FACTORY_X11_H_ | 5 #ifndef UI_EVENTS_X_TOUCH_FACTORY_X11_H_ |
6 #define UI_EVENTS_X_TOUCH_FACTORY_X11_H_ | 6 #define UI_EVENTS_X_TOUCH_FACTORY_X11_H_ |
7 | 7 |
8 #include <bitset> | 8 #include <bitset> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "ui/events/events_export.h" | 13 #include "ui/events/events_base_export.h" |
14 #include "ui/gfx/sequential_id_generator.h" | 14 #include "ui/gfx/sequential_id_generator.h" |
15 | 15 |
16 template <typename T> struct DefaultSingletonTraits; | 16 template <typename T> struct DefaultSingletonTraits; |
17 | 17 |
18 typedef unsigned long Cursor; | 18 typedef unsigned long Cursor; |
19 typedef unsigned long Window; | 19 typedef unsigned long Window; |
20 typedef struct _XDisplay Display; | 20 typedef struct _XDisplay Display; |
21 typedef union _XEvent XEvent; | 21 typedef union _XEvent XEvent; |
22 | 22 |
23 namespace ui { | 23 namespace ui { |
24 | 24 |
25 // Functions related to determining touch devices. | 25 // Functions related to determining touch devices. |
26 class EVENTS_EXPORT TouchFactory { | 26 class EVENTS_BASE_EXPORT TouchFactory { |
27 private: | 27 private: |
28 TouchFactory(); | 28 TouchFactory(); |
29 ~TouchFactory(); | 29 ~TouchFactory(); |
30 | 30 |
31 public: | 31 public: |
32 // Returns the TouchFactory singleton. | 32 // Returns the TouchFactory singleton. |
33 static TouchFactory* GetInstance(); | 33 static TouchFactory* GetInstance(); |
34 | 34 |
35 // Sets the touch devices from the command line. | 35 // Sets the touch devices from the command line. |
36 static void SetTouchDeviceListFromCommandLine(); | 36 static void SetTouchDeviceListFromCommandLine(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 static const int kMaxTouchPoints = 32; | 114 static const int kMaxTouchPoints = 32; |
115 | 115 |
116 SequentialIDGenerator id_generator_; | 116 SequentialIDGenerator id_generator_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(TouchFactory); | 118 DISALLOW_COPY_AND_ASSIGN(TouchFactory); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace ui | 121 } // namespace ui |
122 | 122 |
123 #endif // UI_EVENTS_X_TOUCH_FACTORY_X11_H_ | 123 #endif // UI_EVENTS_X_TOUCH_FACTORY_X11_H_ |
OLD | NEW |