OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 // processed so that GDK doesn't get to them. | 41 // processed so that GDK doesn't get to them. |
42 void InitializeEventsToCapture(void); | 42 void InitializeEventsToCapture(void); |
43 | 43 |
44 #if defined(HAVE_XINPUT2) | 44 #if defined(HAVE_XINPUT2) |
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 pointer devices we care about. We maintain this list so that |
52 // necessary to query X for the list of devices for each GdkWindow created. | 52 // it is not necessary to query X for the list of devices for each |
53 std::set<int> masters_; | 53 // GdkWindow created. |
54 | 54 std::set<int> pointer_devices_; |
55 // The list of floating pointer devices. | |
56 std::set<int> floats_; | |
57 #endif | 55 #endif |
58 | 56 |
59 // The event source for GDK events. | 57 // The event source for GDK events. |
60 GSource* gdksource_; | 58 GSource* gdksource_; |
61 | 59 |
62 // The default GDK event dispatcher. This is stored so that it can be restored | 60 // The default GDK event dispatcher. This is stored so that it can be restored |
63 // when necessary during nested event dispatching. | 61 // when necessary during nested event dispatching. |
64 gboolean (*gdkdispatcher_)(GSource*, GSourceFunc, void*); | 62 gboolean (*gdkdispatcher_)(GSource*, GSourceFunc, void*); |
65 | 63 |
66 // Indicates whether a GDK event was injected by chrome (when |true|) or if it | 64 // Indicates whether a GDK event was injected by chrome (when |true|) or if it |
(...skipping 12 matching lines...) Expand all Loading... |
79 // it should be passed on to the default GDK handler. | 77 // it should be passed on to the default GDK handler. |
80 std::bitset<LASTEvent> capture_x_events_; | 78 std::bitset<LASTEvent> capture_x_events_; |
81 std::bitset<GDK_EVENT_LAST> capture_gdk_events_; | 79 std::bitset<GDK_EVENT_LAST> capture_gdk_events_; |
82 | 80 |
83 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlibX); | 81 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlibX); |
84 }; | 82 }; |
85 | 83 |
86 } // namespace base | 84 } // namespace base |
87 | 85 |
88 #endif // BASE_MESSAGE_PUMP_GLIB_X_H | 86 #endif // BASE_MESSAGE_PUMP_GLIB_X_H |
OLD | NEW |