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

Side by Side Diff: base/message_pump_glib_x.h

Issue 6724025: touch: Detect touch device, and listen for events on floating devices. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 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
« no previous file with comments | « no previous file | base/message_pump_glib_x.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 BASE_MESSAGE_PUMP_GLIB_X_H 5 #ifndef BASE_MESSAGE_PUMP_GLIB_X_H
6 #define BASE_MESSAGE_PUMP_GLIB_X_H 6 #define BASE_MESSAGE_PUMP_GLIB_X_H
7 7
8 #include "base/message_pump.h" 8 #include "base/message_pump.h"
9 #include "base/message_pump_glib.h" 9 #include "base/message_pump_glib.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Initialize X2 input. 45 // Initialize X2 input.
46 void InitializeXInput2(void); 46 void InitializeXInput2(void);
47 47
48 // The opcode used for checking events. 48 // The opcode used for checking events.
49 int xiopcode_; 49 int xiopcode_;
50 50
51 // The list of master pointer devices. We maintain this list so that it is not 51 // The list of master pointer devices. We maintain this list so that it is not
52 // necessary to query X for the list of devices for each GdkWindow created. 52 // necessary to query X for the list of devices for each GdkWindow created.
53 std::set<int> masters_; 53 std::set<int> masters_;
54 54
55 // The list of slave (physical) pointer devices. 55 // The list of floating pointer devices.
56 // TODO(sad): This is currently unused, and may be removed eventually. 56 std::set<int> floats_;
57 std::set<int> slaves_;
58 #endif 57 #endif
59 58
60 // The event source for GDK events. 59 // The event source for GDK events.
61 GSource* gdksource_; 60 GSource* gdksource_;
62 61
63 // The default GDK event dispatcher. This is stored so that it can be restored 62 // The default GDK event dispatcher. This is stored so that it can be restored
64 // when necessary during nested event dispatching. 63 // when necessary during nested event dispatching.
65 gboolean (*gdkdispatcher_)(GSource*, GSourceFunc, void*); 64 gboolean (*gdkdispatcher_)(GSource*, GSourceFunc, void*);
66 65
67 // Indicates whether a GDK event was injected by chrome (when |true|) or if it 66 // Indicates whether a GDK event was injected by chrome (when |true|) or if it
(...skipping 12 matching lines...) Expand all
80 // it should be passed on to the default GDK handler. 79 // it should be passed on to the default GDK handler.
81 std::bitset<LASTEvent> capture_x_events_; 80 std::bitset<LASTEvent> capture_x_events_;
82 std::bitset<GDK_EVENT_LAST> capture_gdk_events_; 81 std::bitset<GDK_EVENT_LAST> capture_gdk_events_;
83 82
84 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlibX); 83 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlibX);
85 }; 84 };
86 85
87 } // namespace base 86 } // namespace base
88 87
89 #endif // BASE_MESSAGE_PUMP_GLIB_X_H 88 #endif // BASE_MESSAGE_PUMP_GLIB_X_H
OLDNEW
« no previous file with comments | « no previous file | base/message_pump_glib_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698