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

Side by Side Diff: base/message_pump_x.h

Issue 6975045: touch: Always expect XInput2 availability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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_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_X_H 5 #ifndef BASE_MESSAGE_PUMP_X_H
6 #define BASE_MESSAGE_PUMP_X_H 6 #define BASE_MESSAGE_PUMP_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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Sends the event to the observers. If an observer returns true, then it does 95 // Sends the event to the observers. If an observer returns true, then it does
96 // not send the event to any other observers and returns true. Returns false 96 // not send the event to any other observers and returns true. Returns false
97 // if no observer returns true. 97 // if no observer returns true.
98 bool WillProcessXEvent(XEvent* xevent); 98 bool WillProcessXEvent(XEvent* xevent);
99 99
100 // Update the lookup table and flag the events that should be captured and 100 // Update the lookup table and flag the events that should be captured and
101 // processed so that GDK doesn't get to them. 101 // processed so that GDK doesn't get to them.
102 void InitializeEventsToCapture(void); 102 void InitializeEventsToCapture(void);
103 103
104 #if defined(HAVE_XINPUT2)
105 // Initialize X2 input. 104 // Initialize X2 input.
106 void InitializeXInput2(void); 105 void InitializeXInput2(void);
107 106
108 // The opcode used for checking events. 107 // The opcode used for checking events.
109 int xiopcode_; 108 int xiopcode_;
110 #endif
111 109
112 // The event source for GDK events. 110 // The event source for GDK events.
113 GSource* gdksource_; 111 GSource* gdksource_;
114 112
115 // The default GDK event dispatcher. This is stored so that it can be restored 113 // The default GDK event dispatcher. This is stored so that it can be restored
116 // when necessary during nested event dispatching. 114 // when necessary during nested event dispatching.
117 gboolean (*gdkdispatcher_)(GSource*, GSourceFunc, void*); 115 gboolean (*gdkdispatcher_)(GSource*, GSourceFunc, void*);
118 116
119 // Indicates whether a GDK event was injected by chrome (when |true|) or if it 117 // Indicates whether a GDK event was injected by chrome (when |true|) or if it
120 // was captured and being processed by GDK (when |false|). 118 // was captured and being processed by GDK (when |false|).
(...skipping 18 matching lines...) Expand all
139 std::bitset<GDK_EVENT_LAST> capture_gdk_events_; 137 std::bitset<GDK_EVENT_LAST> capture_gdk_events_;
140 138
141 DISALLOW_COPY_AND_ASSIGN(MessagePumpX); 139 DISALLOW_COPY_AND_ASSIGN(MessagePumpX);
142 }; 140 };
143 141
144 typedef MessagePumpX MessagePumpForUI; 142 typedef MessagePumpX MessagePumpForUI;
145 143
146 } // namespace base 144 } // namespace base
147 145
148 #endif // BASE_MESSAGE_PUMP_X_H 146 #endif // BASE_MESSAGE_PUMP_X_H
OLDNEW
« no previous file with comments | « no previous file | base/message_pump_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698