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

Unified Diff: ash/display/screen_ash.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 2 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 | « ash/display/screen_ash.h ('k') | ash/display/screen_ash_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_ash.cc
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc
index e91811af93d00301a090a705eca6a3b074d26378..bc1a81cf7da8eba43d3cbaf24536d33255005cc2 100644
--- a/ash/display/screen_ash.cc
+++ b/ash/display/screen_ash.cc
@@ -7,7 +7,6 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/shelf/shelf_widget.h"
#include "ash/common/wm/root_window_finder.h"
-#include "ash/display/display_manager.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/root_window_controller.h"
#include "ash/root_window_settings.h"
@@ -18,6 +17,7 @@
#include "ui/aura/window_event_dispatcher.h"
#include "ui/display/display.h"
#include "ui/display/display_finder.h"
+#include "ui/display/manager/display_manager.h"
#include "ui/display/screen.h"
namespace ash {
@@ -28,7 +28,7 @@ namespace {
// the object in display::Screen::GetScreenByType is for shutdown.
display::Screen* screen_for_shutdown = nullptr;
-DisplayManager* GetDisplayManager() {
+display::DisplayManager* GetDisplayManager() {
return Shell::GetInstance()->display_manager();
}
@@ -128,7 +128,7 @@ display::Display ScreenAsh::GetDisplayNearestWindow(
if (id == display::Display::kInvalidDisplayID)
return GetPrimaryDisplay();
- DisplayManager* display_manager = GetDisplayManager();
+ display::DisplayManager* display_manager = GetDisplayManager();
// RootWindow needs Display to determine its device scale factor
// for non desktop display.
display::Display mirroring_display =
@@ -176,7 +176,7 @@ void ScreenAsh::RemoveObserver(display::DisplayObserver* observer) {
}
// static
-DisplayManager* ScreenAsh::CreateDisplayManager() {
+display::DisplayManager* ScreenAsh::CreateDisplayManager() {
std::unique_ptr<ScreenAsh> screen(new ScreenAsh);
display::Screen* current = display::Screen::GetScreen();
@@ -184,7 +184,7 @@ DisplayManager* ScreenAsh::CreateDisplayManager() {
// use ash's screen.
if (!current || current == screen_for_shutdown)
display::Screen::SetScreenInstance(screen.get());
- return new DisplayManager(std::move(screen));
+ return new display::DisplayManager(std::move(screen));
}
// static
« no previous file with comments | « ash/display/screen_ash.h ('k') | ash/display/screen_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698