summaryrefslogtreecommitdiffstats
path: root/base/message_pump_x.h
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-23 04:52:28 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-23 04:52:28 +0000
commitad4d54e931fe3b556cdd9e859a8654e4e6caed68 (patch)
tree21c52ff5eb99a9307cb8fb69d619ac9367581bef /base/message_pump_x.h
parentffa3e486354ee6492eca27852a168506d285a8ad (diff)
downloadchromium_src-ad4d54e931fe3b556cdd9e859a8654e4e6caed68.zip
chromium_src-ad4d54e931fe3b556cdd9e859a8654e4e6caed68.tar.gz
chromium_src-ad4d54e931fe3b556cdd9e859a8654e4e6caed68.tar.bz2
check xinput2 capability so that it runs on the system that doesn't support xinput2
BUG=none TEST=none Review URL: http://codereview.chromium.org/7495013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_x.h')
-rw-r--r--base/message_pump_x.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/base/message_pump_x.h b/base/message_pump_x.h
index fdd1de8..49a8251 100644
--- a/base/message_pump_x.h
+++ b/base/message_pump_x.h
@@ -78,6 +78,9 @@ class BASE_API MessagePumpX : public MessagePumpGlib {
// Returns default X Display.
static Display* GetDefaultXDisplay();
+ // Returns true if the system supports XINPUT2.
+ static bool HasXInput2();
+
private:
// Some XEvent's can't be directly read from X event queue and will go
// through GDK's dispatching process and may get discarded. This function
@@ -105,12 +108,6 @@ class BASE_API MessagePumpX : public MessagePumpGlib {
// processed so that GDK doesn't get to them.
void InitializeEventsToCapture(void);
- // Initialize X2 input.
- void InitializeXInput2(void);
-
- // The opcode used for checking events.
- int xiopcode_;
-
// The event source for GDK events.
GSource* gdksource_;