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

Unified Diff: ui/aura/root_window_host_linux.cc

Issue 10895020: Merge aura::DispatcherLinux into base::MessagePumpAuraX11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for sadrul Created 8 years, 4 months 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 | « ui/aura/env.cc ('k') | ui/views/widget/x11_desktop_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_linux.cc
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc
index bcf1b6fb8d04ca8f332b1301f9e17d8e090fdc83..4eb88023aef0ad416cd32992ba1576fa368d0097 100644
--- a/ui/aura/root_window_host_linux.cc
+++ b/ui/aura/root_window_host_linux.cc
@@ -20,7 +20,6 @@
#include "grit/ui_resources.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/client/user_action_client.h"
-#include "ui/aura/dispatcher_linux.h"
#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
#include "ui/base/cursor/cursor.h"
@@ -473,8 +472,7 @@ RootWindowHostLinux::RootWindowHostLinux(RootWindowHostDelegate* delegate,
CopyFromParent, // visual
CWBackPixmap,
&swa);
- static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
- AddDispatcherForWindow(this, xwindow_);
+ base::MessagePumpAuraX11::Current()->AddDispatcherForWindow(this, xwindow_);
prop_.reset(new ui::ViewProp(xwindow_, kRootWindowHostLinuxKey, this));
@@ -537,8 +535,7 @@ RootWindowHostLinux::RootWindowHostLinux(RootWindowHostDelegate* delegate,
}
RootWindowHostLinux::~RootWindowHostLinux() {
- static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
- RemoveDispatcherForWindow(xwindow_);
+ base::MessagePumpAuraX11::Current()->RemoveDispatcherForWindow(xwindow_);
UnConfineCursor();
« no previous file with comments | « ui/aura/env.cc ('k') | ui/views/widget/x11_desktop_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698