| 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.
|
|
|