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

Side by Side Diff: base/message_pump_glib_x.h

Issue 5110011: A non-GTK version of menus for touchui. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix compile for touch on chromeos Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 std::set<int> masters_; 53 std::set<int> masters_;
54 54
55 // The list of slave (physical) pointer devices. 55 // The list of slave (physical) pointer devices.
56 // TODO(sad): This is currently unused, and may be removed eventually. 56 // TODO(sad): This is currently unused, and may be removed eventually.
57 std::set<int> slaves_; 57 std::set<int> slaves_;
58 #endif 58 #endif
59 59
60 // The event source for GDK events. 60 // The event source for GDK events.
61 GSource* gdksource_; 61 GSource* gdksource_;
62 62
63 // The default GDK event dispatcher. This is stored so that it can be restored
64 // when necessary during nested event dispatching.
65 gboolean (*gdkdispatcher_)(GSource*, GSourceFunc, void*);
66
63 // Indicates whether a GDK event was injected by chrome (when |true|) or if it 67 // Indicates whether a GDK event was injected by chrome (when |true|) or if it
64 // was captured and being processed by GDK (when |false|). 68 // was captured and being processed by GDK (when |false|).
65 bool dispatching_event_; 69 bool dispatching_event_;
66 70
67 #if ! GTK_CHECK_VERSION(2,18,0) 71 #if ! GTK_CHECK_VERSION(2,18,0)
68 // GDK_EVENT_LAST was introduced in GTK+ 2.18.0. For earlier versions, we pick a 72 // GDK_EVENT_LAST was introduced in GTK+ 2.18.0. For earlier versions, we pick a
69 // large enough value (the value of GDK_EVENT_LAST in 2.18.0) so that it works 73 // large enough value (the value of GDK_EVENT_LAST in 2.18.0) so that it works
70 // for all versions. 74 // for all versions.
71 #define GDK_EVENT_LAST 37 75 #define GDK_EVENT_LAST 37
72 #endif 76 #endif
73 77
74 // We do not want to process all the events ourselves. So we use a lookup 78 // We do not want to process all the events ourselves. So we use a lookup
75 // table to quickly check if a particular event should be handled by us or if 79 // table to quickly check if a particular event should be handled by us or if
76 // it should be passed on to the default GDK handler. 80 // it should be passed on to the default GDK handler.
77 std::bitset<LASTEvent> capture_x_events_; 81 std::bitset<LASTEvent> capture_x_events_;
78 std::bitset<GDK_EVENT_LAST> capture_gdk_events_; 82 std::bitset<GDK_EVENT_LAST> capture_gdk_events_;
79 83
80 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlibX); 84 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlibX);
81 }; 85 };
82 86
83 } // namespace base 87 } // namespace base
84 88
85 #endif // BASE_MESSAGE_PUMP_GLIB_X_H 89 #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