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

Unified Diff: base/message_pump_wayland.h

Issue 8931009: Revert "Refactor MessagePumpX to dispatch events inside of the source Dispatch function." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « base/message_pump_gtk.cc ('k') | base/message_pump_wayland.cc » ('j') | no next file with comments »
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 89c9b8f3b5e15b84a5193da414a32e21bace5388..706914a39b75388d75e85baf106bdef4436030d1 100644
--- a/base/message_pump_wayland.h
+++ b/base/message_pump_wayland.h
@@ -10,6 +10,10 @@
#include "base/message_pump_glib.h"
#include "base/message_pump_observer.h"
+typedef struct _GMainContext GMainContext;
+typedef struct _GPollFD GPollFD;
+typedef struct _GSource GSource;
+
namespace base {
namespace wayland {
@@ -37,7 +41,23 @@ class MessagePumpDispatcher {
virtual ~MessagePumpDispatcher() {}
};
-typedef MessagePumpGlib MessagePumpForUI;
+class BASE_EXPORT MessagePumpWayland : public MessagePumpGlib {
+
+ public:
+ MessagePumpWayland();
+ virtual ~MessagePumpWayland();
+
+ // Overridden from MessagePumpGlib
+ virtual bool RunOnce(GMainContext* context, bool block) OVERRIDE;
+ private:
+
+ // This is a GLib structure that we can add event sources to.
+ GMainContext* context_;
+
+ DISALLOW_COPY_AND_ASSIGN(MessagePumpWayland);
+};
+
+typedef MessagePumpWayland MessagePumpForUI;
} // namespace base
« no previous file with comments | « base/message_pump_gtk.cc ('k') | base/message_pump_wayland.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698