diff options
Diffstat (limited to 'base/message_pump_glib.h')
-rw-r--r-- | base/message_pump_glib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/message_pump_glib.h b/base/message_pump_glib.h index c8a2e0d..4fafaaf 100644 --- a/base/message_pump_glib.h +++ b/base/message_pump_glib.h @@ -26,6 +26,9 @@ class MessagePumpForUI : public MessagePump { // This method is called before processing a message. virtual void WillProcessEvent(GdkEvent* event) = 0; + + // This method is called after processing a message. + virtual void DidProcessEvent(GdkEvent* event) = 0; }; MessagePumpForUI(); @@ -72,6 +75,10 @@ class MessagePumpForUI : public MessagePump { // process an event. void WillProcessEvent(GdkEvent* event); + // Invoked from EventDispatcher. Notifies all observers we processed an + // event. + void DidProcessEvent(GdkEvent* event); + // Callback prior to gdk dispatching an event. static void EventDispatcher(GdkEvent* event, gpointer data); |