diff options
author | msb@chromium.org <msb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-18 22:39:23 +0000 |
---|---|---|
committer | msb@chromium.org <msb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-18 22:39:23 +0000 |
commit | 9a1ae1f82a8238d35db0af27cbbaf550d893b7a9 (patch) | |
tree | 56cbffcc318d6c6ecdc4c9abe1f6b02ee9bffe8d /base/message_pump_wayland.h | |
parent | eab8c0f86eef488f3d9a30e0ca3f0fbad1ae6cf8 (diff) | |
download | chromium_src-9a1ae1f82a8238d35db0af27cbbaf550d893b7a9.zip chromium_src-9a1ae1f82a8238d35db0af27cbbaf550d893b7a9.tar.gz chromium_src-9a1ae1f82a8238d35db0af27cbbaf550d893b7a9.tar.bz2 |
wayland: use message_pump_observer common code
BUG=102903
TEST=compile
Change-Id: I96c63b55a6be4623f8edd202a1642ae6f7a6eb7a
R=mark@chromium.org,oshima@chromium.org,dnicoara@chromium.org
Review URL: http://codereview.chromium.org/8561018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_wayland.h')
-rw-r--r-- | base/message_pump_wayland.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/base/message_pump_wayland.h b/base/message_pump_wayland.h index 8734c7a..706914a 100644 --- a/base/message_pump_wayland.h +++ b/base/message_pump_wayland.h @@ -8,6 +8,7 @@ #include "base/memory/scoped_ptr.h" #include "base/message_pump_glib.h" +#include "base/message_pump_observer.h" typedef struct _GMainContext GMainContext; typedef struct _GPollFD GPollFD; @@ -20,24 +21,6 @@ union WaylandEvent; } // The documentation for this class is in message_pump_glib.h -class BASE_EXPORT MessagePumpObserver { - public: - enum EventStatus { - EVENT_CONTINUE, // The event should be dispatched as normal. - EVENT_HANDLED // The event should not be processed any farther. - }; - - // This method is called before processing an Event. If the method returns - // EVENT_HANDLED, it indicates the event has already been handled, so the - // event is not processed any farther. If the method returns EVENT_CONTINUE, - // the event dispatching proceeds as normal. - virtual EventStatus WillProcessEvent(wayland::WaylandEvent* event); - - protected: - virtual ~MessagePumpObserver() {} -}; - -// The documentation for this class is in message_pump_glib.h // // The nested loop is exited by either posting a quit, or returning false // from Dispatch. |