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

Unified Diff: ui/aura/env.cc

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase Created 8 years, 1 month 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.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.cc
diff --git a/ui/aura/env.cc b/ui/aura/env.cc
index f562ef17b594eb774733af47856035749d4d1edb..06734c88c9a60fe2795942f8c6095301b290750c 100644
--- a/ui/aura/env.cc
+++ b/ui/aura/env.cc
@@ -8,7 +8,6 @@
#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/env_observer.h"
#include "ui/aura/event_filter.h"
-#include "ui/aura/display_manager.h"
#include "ui/aura/root_window_host.h"
#include "ui/aura/window.h"
#include "ui/compositor/compositor.h"
@@ -16,7 +15,6 @@
#if defined(USE_X11)
#include "base/message_pump_aurax11.h"
-#include "ui/aura/display_change_observer_x11.h"
#endif
namespace aura {
@@ -89,14 +87,6 @@ void Env::SetCursorShown(bool cursor_shown) {
}
}
-void Env::SetDisplayManager(DisplayManager* display_manager) {
- display_manager_.reset(display_manager);
-#if defined(USE_X11)
- // Update the display manager with latest info.
- display_change_observer_->NotifyDisplayChange();
-#endif
-}
-
#if !defined(OS_MACOSX)
MessageLoop::Dispatcher* Env::GetDispatcher() {
#if defined(USE_X11)
@@ -115,8 +105,6 @@ void Env::Init() {
dispatcher_.reset(CreateDispatcher());
#endif
#if defined(USE_X11)
- display_change_observer_.reset(new internal::DisplayChangeObserverX11);
-
// We can't do this with a root window listener because XI_HierarchyChanged
// messages don't have a target window.
base::MessagePumpAuraX11::Current()->AddObserver(
« no previous file with comments | « ui/aura/env.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698