summaryrefslogtreecommitdiffstats
path: root/base/message_pump_gtk.h
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 15:00:46 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 15:00:46 +0000
commit39cbe41d48e27c19821c048b4d5d461cf1b8faa8 (patch)
tree01c2e84b45505b9b261cb8dcf8baf529be9d4118 /base/message_pump_gtk.h
parente071c44a96a1ad7733c87c42f35a706973cb2afc (diff)
downloadchromium_src-39cbe41d48e27c19821c048b4d5d461cf1b8faa8.zip
chromium_src-39cbe41d48e27c19821c048b4d5d461cf1b8faa8.tar.gz
chromium_src-39cbe41d48e27c19821c048b4d5d461cf1b8faa8.tar.bz2
Consolidate access to X Display
Change ui::GetXDisplay to use the MessagePumpForUI class to get Display. This allows us to have two different implementation for x and gtk. Remove MessageLoop::GetDisplay from message loop API. Client should use ui::GetXDisplay instead. This will also be removed in near future, and client should get display from window it is dealing with. BUG=none TEST=none Review URL: http://codereview.chromium.org/7484006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_gtk.h')
-rw-r--r--base/message_pump_gtk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/message_pump_gtk.h b/base/message_pump_gtk.h
index 72eaafa..7e5cf04 100644
--- a/base/message_pump_gtk.h
+++ b/base/message_pump_gtk.h
@@ -9,6 +9,7 @@
#include "base/message_pump_glib.h"
typedef union _GdkEvent GdkEvent;
+typedef struct _XDisplay Display;
namespace base {
@@ -49,6 +50,9 @@ class MessagePumpGtk : public MessagePumpGlib {
// some task before/after calling the default handler (EventDispatcher).
void DispatchEvents(GdkEvent* event);
+ // Returns default X Display.
+ static Display* GetDefaultXDisplay();
+
private:
// Overridden from MessagePumpGlib
virtual bool RunOnce(GMainContext* context, bool block) OVERRIDE;