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

Unified Diff: base/message_pump_x.h

Issue 8872055: 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
Index: base/message_pump_x.h
diff --git a/base/message_pump_x.h b/base/message_pump_x.h
index e6bb71c1d99118828a94e3e93226a904fc897507..62597a28b25dc2ee1325f73d3c2e99adf3468eca 100644
--- a/base/message_pump_x.h
+++ b/base/message_pump_x.h
@@ -45,9 +45,6 @@ class BASE_EXPORT MessagePumpX : public MessagePumpGlib {
MessagePumpX();
virtual ~MessagePumpX();
- // Overridden from MessagePumpGlib:
- virtual bool RunOnce(GMainContext* context, bool block) OVERRIDE;
-
// Returns default X Display.
static Display* GetDefaultXDisplay();
@@ -57,6 +54,10 @@ class BASE_EXPORT MessagePumpX : public MessagePumpGlib {
// Sets the default dispatcher to process native events.
static void SetDefaultDispatcher(MessagePumpDispatcher* dispatcher);
+ // Internal function. Called by the glib source dispatch function. Processes
+ // all available X events.
+ gboolean DispatchXEvents();
+
private:
// Initializes the glib event source for X.
void InitXSource();
« base/message_loop.cc ('K') | « base/message_pump_wayland.cc ('k') | base/message_pump_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698