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

Unified Diff: base/message_pump_wayland.h

Issue 8378005: wayland: define base:NativeEvent for Wayland (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create a new wayland namespace in base and define WaylandEvent there. 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
Index: base/message_pump_wayland.h
diff --git a/base/message_pump_wayland.h b/base/message_pump_wayland.h
index 86b22a224db5b66c6113f4c8dbc29ab3cb5979e2..4098781734a79f486337a2f987e5020f13bc6df7 100644
--- a/base/message_pump_wayland.h
+++ b/base/message_pump_wayland.h
@@ -8,15 +8,12 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_pump_glib.h"
+#include "base/wayland/wayland_event.h"
oshima 2011/11/10 16:13:38 forward decl seems to be enough.
Mandeep Singh Baines 2011/11/11 19:26:52 Done.
typedef struct _GMainContext GMainContext;
typedef struct _GPollFD GPollFD;
typedef struct _GSource GSource;
-namespace ui {
-union WaylandEvent;
-} // namespace ui
-
namespace base {
// The documentation for this class is in message_pump_glib.h
@@ -31,7 +28,7 @@ class BASE_EXPORT MessagePumpObserver {
// 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(ui::WaylandEvent* event);
+ virtual EventStatus WillProcessEvent(wayland::WaylandEvent* event);
protected:
virtual ~MessagePumpObserver() {}
@@ -52,7 +49,7 @@ class MessagePumpDispatcher {
// Dispatches the event. If true is returned processing continues as
// normal. If false is returned, the nested loop exits immediately.
- virtual DispatchStatus Dispatch(ui::WaylandEvent* event) = 0;
+ virtual DispatchStatus Dispatch(wayland::WaylandEvent* event) = 0;
protected:
virtual ~MessagePumpDispatcher() {}
« no previous file with comments | « base/event_types.h ('k') | base/message_pump_wayland.cc » ('j') | base/message_pump_wayland.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698