summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/message_pump_wayland.cc5
-rw-r--r--base/message_pump_wayland.h19
2 files changed, 1 insertions, 23 deletions
diff --git a/base/message_pump_wayland.cc b/base/message_pump_wayland.cc
index ab60a76..4d64c62 100644
--- a/base/message_pump_wayland.cc
+++ b/base/message_pump_wayland.cc
@@ -21,9 +21,4 @@ bool MessagePumpWayland::RunOnce(GMainContext* context, bool block) {
return g_main_context_iteration(context, block);
}
-MessagePumpObserver::EventStatus
- MessagePumpObserver::WillProcessEvent(wayland::WaylandEvent* event) {
- return EVENT_CONTINUE;
-}
-
} // namespace base
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.