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

Unified Diff: base/message_pump_wayland.h

Issue 8561018: wayland: use message_pump_observer common code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | base/message_pump_wayland.cc » ('j') | base/message_pump_wayland.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_pump_wayland.h
diff --git a/base/message_pump_wayland.h b/base/message_pump_wayland.h
index 8734c7adf32263c7f3f3190a1a710397cf5b5421..706914a39b75388d75e85baf106bdef4436030d1 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.
« no previous file with comments | « no previous file | base/message_pump_wayland.cc » ('j') | base/message_pump_wayland.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698