Commit 9a1ae1f8 authored by msb@chromium.org's avatar msb@chromium.org

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
parent eab8c0f8
...@@ -21,9 +21,4 @@ bool MessagePumpWayland::RunOnce(GMainContext* context, bool block) { ...@@ -21,9 +21,4 @@ bool MessagePumpWayland::RunOnce(GMainContext* context, bool block) {
return g_main_context_iteration(context, block); return g_main_context_iteration(context, block);
} }
MessagePumpObserver::EventStatus
MessagePumpObserver::WillProcessEvent(wayland::WaylandEvent* event) {
return EVENT_CONTINUE;
}
} // namespace base } // namespace base
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "base/message_pump_glib.h" #include "base/message_pump_glib.h"
#include "base/message_pump_observer.h"
typedef struct _GMainContext GMainContext; typedef struct _GMainContext GMainContext;
typedef struct _GPollFD GPollFD; typedef struct _GPollFD GPollFD;
...@@ -19,24 +20,6 @@ namespace wayland { ...@@ -19,24 +20,6 @@ namespace wayland {
union WaylandEvent; 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 documentation for this class is in message_pump_glib.h
// //
// The nested loop is exited by either posting a quit, or returning false // The nested loop is exited by either posting a quit, or returning false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment