Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: ui/events/x/touch_factory_x11.h

Issue 52823002: x11: Move XInput2 availability information out of the message pump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/events/x/device_list_cache_x.cc ('k') | ui/events/x/touch_factory_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/events/x/device_list_cache_x.cc ('k') | ui/events/x/touch_factory_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698