summaryrefslogtreecommitdiffstats
path: root/base/message_pump_glib.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 23:04:42 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 23:04:42 +0000
commitdbaa96b5ef7e03908aaa9567aa4cc693bcd89fca (patch)
tree7949aefe6dfc47fe1e43df8067477c08f8586ceb /base/message_pump_glib.h
parentc19386417048319448a58cf119c1854d1e4eb0be (diff)
downloadchromium_src-dbaa96b5ef7e03908aaa9567aa4cc693bcd89fca.zip
chromium_src-dbaa96b5ef7e03908aaa9567aa4cc693bcd89fca.tar.gz
chromium_src-dbaa96b5ef7e03908aaa9567aa4cc693bcd89fca.tar.bz2
Adds DidProcessEvent to MessagePumpGLib.
BUG=none TEST=none Review URL: http://codereview.chromium.org/113600 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16429 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_glib.h')
-rw-r--r--base/message_pump_glib.h7
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);