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

Side by Side Diff: ui/events/platform/x11/x11_event_source.h

Issue 289283015: Extract touchscreen device management into a generic manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PLATFORM_X11_X11_EVENT_SOURCE_H_ 5 #ifndef UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_
6 #define UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ 6 #define UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/events/events_export.h" 9 #include "ui/events/events_export.h"
10 #include "ui/events/platform/platform_event_source.h" 10 #include "ui/events/platform/platform_event_source.h"
11 #include "ui/gfx/x/x11_types.h" 11 #include "ui/gfx/x/x11_types.h"
12 12
13 typedef struct _GPollFD GPollFD; 13 typedef struct _GPollFD GPollFD;
14 typedef struct _GSource GSource; 14 typedef struct _GSource GSource;
15 typedef union _XEvent XEvent; 15 typedef union _XEvent XEvent;
16 typedef unsigned long XID; 16 typedef unsigned long XID;
17 17
18 namespace ui { 18 namespace ui {
19 19
20 class DeviceDataManager;
sadrul 2014/05/30 09:44:31 Don't need this?
dnicoara 2014/06/10 20:25:03 No, thank you! Done
21
20 // A PlatformEventSource implementation for reading events from X11 server and 22 // A PlatformEventSource implementation for reading events from X11 server and
21 // dispatching the events to the appropriate dispatcher. 23 // dispatching the events to the appropriate dispatcher.
22 class EVENTS_EXPORT X11EventSource : public PlatformEventSource { 24 class EVENTS_EXPORT X11EventSource : public PlatformEventSource {
23 public: 25 public:
24 explicit X11EventSource(XDisplay* display); 26 explicit X11EventSource(XDisplay* display);
25 virtual ~X11EventSource(); 27 virtual ~X11EventSource();
26 28
27 static X11EventSource* GetInstance(); 29 static X11EventSource* GetInstance();
28 30
29 // Called by the glib source dispatch function. Processes all (if any) 31 // Called by the glib source dispatch function. Processes all (if any)
(...skipping 25 matching lines...) Expand all
55 // Keeps track of whether this source should continue to dispatch all the 57 // Keeps track of whether this source should continue to dispatch all the
56 // available events. 58 // available events.
57 bool continue_stream_; 59 bool continue_stream_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(X11EventSource); 61 DISALLOW_COPY_AND_ASSIGN(X11EventSource);
60 }; 62 };
61 63
62 } // namespace ui 64 } // namespace ui
63 65
64 #endif // UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ 66 #endif // UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698