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

Unified Diff: base/message_pump_glib.h

Issue 3748002: Add a message pump for touchui=1 (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: gyp magic to fix build failure (hopefully). Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/message_loop.cc ('k') | base/message_pump_glib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_pump_glib.h
diff --git a/base/message_pump_glib.h b/base/message_pump_glib.h
index f6d022a25f8b1bc8f0d6044e7cdfd6d07c80f5d2..31d37c023fdc15076e3253f975681f5de9ee7f2a 100644
--- a/base/message_pump_glib.h
+++ b/base/message_pump_glib.h
@@ -57,6 +57,11 @@ class MessagePumpForUI : public MessagePump {
// Like MessagePump::Run, but GdkEvent objects are routed through dispatcher.
virtual void RunWithDispatcher(Delegate* delegate, Dispatcher* dispatcher);
+ // Run a single iteration of the mainloop. A return value of true indicates
+ // that an event was handled. |block| indicates if it should wait if no event
+ // is ready for processing.
+ virtual bool RunOnce(GMainContext* context, bool block);
+
virtual void Run(Delegate* delegate) { RunWithDispatcher(delegate, NULL); }
virtual void Quit();
virtual void ScheduleWork();
@@ -79,6 +84,10 @@ class MessagePumpForUI : public MessagePump {
// receiving a notification callback.
void RemoveObserver(Observer* observer);
+ // Dispatch an available GdkEvent. Essentially this allows a subclass to do
+ // some task before/after calling the default handler (EventDispatcher).
+ virtual void DispatchEvents(GdkEvent* event);
+
private:
// We may make recursive calls to Run, so we save state that needs to be
// separate between them in this structure type.
« no previous file with comments | « base/message_loop.cc ('k') | base/message_pump_glib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698