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

Unified Diff: ash/display/display_change_observer_x11.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 | « ash/display/display_change_observer_x11.h ('k') | ash/display/display_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_change_observer_x11.cc
diff --git a/ui/aura/display_change_observer_x11.cc b/ash/display/display_change_observer_x11.cc
similarity index 94%
rename from ui/aura/display_change_observer_x11.cc
rename to ash/display/display_change_observer_x11.cc
index 21dab9c9463536907f646c3eaa833558f9beb501..ed96094c57052a43958cddbf3ca1cb7460bfdc3c 100644
--- a/ui/aura/display_change_observer_x11.cc
+++ b/ash/display/display_change_observer_x11.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/aura/display_change_observer_x11.h"
+#include "ash/display/display_change_observer_x11.h"
#include <algorithm>
#include <map>
@@ -11,14 +11,14 @@
#include <X11/extensions/Xrandr.h>
+#include "ash/display/display_manager.h"
+#include "ash/shell.h"
#include "base/message_pump_aurax11.h"
-#include "ui/aura/env.h"
-#include "ui/aura/display_manager.h"
#include "ui/base/x/x11_util.h"
#include "ui/compositor/dip_util.h"
#include "ui/gfx/display.h"
-namespace aura {
+namespace ash {
namespace internal {
namespace {
@@ -99,9 +99,6 @@ bool DisplayChangeObserverX11::Dispatch(const base::NativeEvent& event) {
}
void DisplayChangeObserverX11::NotifyDisplayChange() {
- if (!DisplayManager::use_fullscreen_host_window())
- return; // Use the default display that display manager determined.
-
XRRScreenResources* screen_resources =
XRRGetScreenResources(xdisplay_, x_root_window_);
std::map<XID, XRRCrtcInfo*> crtc_info_map;
@@ -185,9 +182,9 @@ void DisplayChangeObserverX11::NotifyDisplayChange() {
++id;
}
}
-
- Env::GetInstance()->display_manager()->OnNativeDisplaysChanged(displays);
+ // DisplayManager can be null during the boot.
+ Shell::GetInstance()->display_manager()->OnNativeDisplaysChanged(displays);
}
} // namespace internal
-} // namespace aura
+} // namespace ash
« no previous file with comments | « ash/display/display_change_observer_x11.h ('k') | ash/display/display_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698