diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 20:44:30 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 20:44:30 +0000 |
commit | 8a5350d0208d00468a12487dfc14e1dd4759ef51 (patch) | |
tree | 164e46fd28c96149feea61a0bc93bdab7748debf /base/message_pump_x.cc | |
parent | 0a172939408bdffc4a0dc405beb57deb43e22599 (diff) | |
download | chromium_src-8a5350d0208d00468a12487dfc14e1dd4759ef51.zip chromium_src-8a5350d0208d00468a12487dfc14e1dd4759ef51.tar.gz chromium_src-8a5350d0208d00468a12487dfc14e1dd4759ef51.tar.bz2 |
Follow up fix from r102005: Fix static build of base_unittests.
TBR=evan@chromium.org
BUG=97131
TEST=none
Review URL: http://codereview.chromium.org/7979010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_x.cc')
-rw-r--r-- | base/message_pump_x.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/base/message_pump_x.cc b/base/message_pump_x.cc index b0be50b..f9a2b6f 100644 --- a/base/message_pump_x.cc +++ b/base/message_pump_x.cc @@ -247,6 +247,16 @@ bool MessagePumpX::RunOnce(GMainContext* context, bool block) { return retvalue; } +bool MessagePumpX::WillProcessXEvent(XEvent* xevent) { + ObserverListBase<MessagePumpObserver>::Iterator it(observers()); + MessagePumpObserver* obs; + while ((obs = it.GetNext()) != NULL) { + if (obs->WillProcessXEvent(xevent)) + return true; + } + return false; +} + #if defined(TOOLKIT_USES_GTK) GdkFilterReturn MessagePumpX::GdkEventFilter(GdkXEvent* gxevent, GdkEvent* gevent, @@ -262,16 +272,6 @@ GdkFilterReturn MessagePumpX::GdkEventFilter(GdkXEvent* gxevent, return GDK_FILTER_CONTINUE; } -bool MessagePumpX::WillProcessXEvent(XEvent* xevent) { - ObserverListBase<MessagePumpObserver>::Iterator it(observers()); - MessagePumpObserver* obs; - while ((obs = it.GetNext()) != NULL) { - if (obs->WillProcessXEvent(xevent)) - return true; - } - return false; -} - void MessagePumpX::EventDispatcherX(GdkEvent* event, gpointer data) { MessagePumpX* pump_x = reinterpret_cast<MessagePumpX*>(data); CHECK(use_gtk_message_pump) << "GdkEvent:" << event->type; |