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

Unified Diff: ui/views/widget/x11_desktop_handler.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/root_window_host_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/x11_desktop_handler.cc
diff --git a/ui/views/widget/x11_desktop_handler.cc b/ui/views/widget/x11_desktop_handler.cc
index c39fb437eb5a4dea97ad6bd0bb26fdc160e4cd40..98e9ff5864113a5ccb30b5a11cef3a7316ef042a 100644
--- a/ui/views/widget/x11_desktop_handler.cc
+++ b/ui/views/widget/x11_desktop_handler.cc
@@ -6,7 +6,6 @@
#include "base/message_loop.h"
#include "ui/aura/desktop/desktop_activation_client.h"
-#include "ui/aura/dispatcher_linux.h"
#include "ui/aura/env.h"
#include "ui/aura/focus_manager.h"
#include "ui/aura/root_window.h"
@@ -42,9 +41,7 @@ X11DesktopHandler::X11DesktopHandler()
focus_manager_(new aura::FocusManager),
desktop_activation_client_(
new aura::DesktopActivationClient(focus_manager_.get())) {
- static_cast<aura::DispatcherLinux*>(
- aura::Env::GetInstance()->GetDispatcher())->
- AddDispatcherForRootWindow(this);
+ base::MessagePumpAuraX11::Current()->AddDispatcherForRootWindow(this);
aura::Env::GetInstance()->AddObserver(this);
XWindowAttributes attr;
@@ -56,9 +53,7 @@ X11DesktopHandler::X11DesktopHandler()
X11DesktopHandler::~X11DesktopHandler() {
aura::Env::GetInstance()->RemoveObserver(this);
- static_cast<aura::DispatcherLinux*>(
- aura::Env::GetInstance()->GetDispatcher())->
- RemoveDispatcherForRootWindow(this);
+ base::MessagePumpAuraX11::Current()->RemoveDispatcherForRootWindow(this);
}
bool X11DesktopHandler::Dispatch(const base::NativeEvent& event) {
« no previous file with comments | « ui/aura/root_window_host_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698