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

Unified Diff: ui/aura/display_change_observer_x11.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/dispatcher_linux.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/display_change_observer_x11.cc
diff --git a/ui/aura/display_change_observer_x11.cc b/ui/aura/display_change_observer_x11.cc
index b5ffb52165f5f56b4808b4691a559539d13a10d9..af134607f95d7d9a5b3ea9d029802109173a74a4 100644
--- a/ui/aura/display_change_observer_x11.cc
+++ b/ui/aura/display_change_observer_x11.cc
@@ -12,7 +12,6 @@
#include <X11/extensions/Xrandr.h>
#include "base/message_pump_aurax11.h"
-#include "ui/aura/dispatcher_linux.h"
#include "ui/aura/env.h"
#include "ui/aura/display_manager.h"
#include "ui/base/x/x11_util.h"
@@ -85,13 +84,11 @@ DisplayChangeObserverX11::DisplayChangeObserverX11()
xrandr_event_base_(0) {
int error_base_ignored;
XRRQueryExtension(xdisplay_, &xrandr_event_base_, &error_base_ignored);
- static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
- AddDispatcherForRootWindow(this);
+ base::MessagePumpAuraX11::Current()->AddDispatcherForRootWindow(this);
}
DisplayChangeObserverX11::~DisplayChangeObserverX11() {
- static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
- RemoveDispatcherForRootWindow(this);
+ base::MessagePumpAuraX11::Current()->RemoveDispatcherForRootWindow(this);
}
bool DisplayChangeObserverX11::Dispatch(const base::NativeEvent& event) {
« no previous file with comments | « ui/aura/dispatcher_linux.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698