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

Unified Diff: base/message_pump_glib.cc

Issue 113600: Adds DidProcessEvent to MessagePumpGLib. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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_pump_glib.h ('k') | chrome/browser/views/tabs/dragged_tab_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_pump_glib.cc
===================================================================
--- base/message_pump_glib.cc (revision 16377)
+++ base/message_pump_glib.cc (working copy)
@@ -225,6 +225,10 @@
FOR_EACH_OBSERVER(Observer, observers_, WillProcessEvent(event));
}
+void MessagePumpForUI::DidProcessEvent(GdkEvent* event) {
+ FOR_EACH_OBSERVER(Observer, observers_, DidProcessEvent(event));
+}
+
void MessagePumpForUI::Quit() {
if (state_) {
state_->should_quit = true;
@@ -254,6 +258,7 @@
void MessagePumpForUI::EventDispatcher(GdkEvent* event, gpointer data) {
reinterpret_cast<MessagePumpForUI*>(data)->WillProcessEvent(event);
gtk_main_do_event(event);
+ reinterpret_cast<MessagePumpForUI*>(data)->DidProcessEvent(event);
}
} // namespace base
« no previous file with comments | « base/message_pump_glib.h ('k') | chrome/browser/views/tabs/dragged_tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698