diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 15:00:46 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 15:00:46 +0000 |
commit | 39cbe41d48e27c19821c048b4d5d461cf1b8faa8 (patch) | |
tree | 01c2e84b45505b9b261cb8dcf8baf529be9d4118 /base/message_loop.h | |
parent | e071c44a96a1ad7733c87c42f35a706973cb2afc (diff) | |
download | chromium_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_loop.h')
-rw-r--r-- | base/message_loop.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/base/message_loop.h b/base/message_loop.h index 8fd9cbc..9d500d7 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -32,7 +32,6 @@ #else #include "base/message_pump_gtk.h" #endif -typedef struct _XDisplay Display; #endif #endif @@ -584,18 +583,6 @@ class BASE_API MessageLoopForUI : public MessageLoop { void DidProcessMessage(const MSG& message); #endif // defined(OS_WIN) -#if defined(USE_X11) - // Returns the Xlib Display that backs the MessagePump for this MessageLoop. - // - // This allows for raw access to the X11 server in situations where our - // abstractions do not provide enough power. - // - // Be careful how this is used. The MessagePump in general expects - // exclusive access to the Display. Calling things like XNextEvent() will - // likely break things in subtle, hard to detect, ways. - Display* GetDisplay(); -#endif // defined(OS_X11) - #if !defined(OS_MACOSX) // Please see message_pump_win/message_pump_glib for definitions of these // methods. |