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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_manager.cc

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: ash/wm/maximize_mode/maximize_mode_window_manager.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager.cc b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
index b85165a8bde09c9e920f9fe9e0131a2b17724255..ccb15427c468a35c104ddd3a1dbeeefec126175f 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
@@ -20,7 +20,7 @@
#include "base/command_line.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/window.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/screen.h"
namespace ash {
@@ -48,7 +48,7 @@ MaximizeModeWindowManager::~MaximizeModeWindowManager() {
Shell::GetInstance()->RemovePreTargetHandler(this);
Shell::GetInstance()->RemoveShellObserver(this);
- gfx::Screen::GetScreen()->RemoveObserver(this);
+ display::Screen::GetScreen()->RemoveObserver(this);
EnableBackdropBehindTopWindowOnEachDisplay(false);
RemoveWindowCreationObservers();
RestoreAllWindows();
@@ -148,15 +148,17 @@ void MaximizeModeWindowManager::OnWindowBoundsChanged(
}
}
-void MaximizeModeWindowManager::OnDisplayAdded(const gfx::Display& display) {
+void MaximizeModeWindowManager::OnDisplayAdded(
+ const display::Display& display) {
DisplayConfigurationChanged();
}
-void MaximizeModeWindowManager::OnDisplayRemoved(const gfx::Display& display) {
+void MaximizeModeWindowManager::OnDisplayRemoved(
+ const display::Display& display) {
DisplayConfigurationChanged();
}
-void MaximizeModeWindowManager::OnDisplayMetricsChanged(const gfx::Display&,
+void MaximizeModeWindowManager::OnDisplayMetricsChanged(const display::Display&,
uint32_t) {
// Nothing to do here.
}
@@ -196,7 +198,7 @@ MaximizeModeWindowManager::MaximizeModeWindowManager()
MaximizeAllWindows();
AddWindowCreationObservers();
EnableBackdropBehindTopWindowOnEachDisplay(true);
- gfx::Screen::GetScreen()->AddObserver(this);
+ display::Screen::GetScreen()->AddObserver(this);
Shell::GetInstance()->AddShellObserver(this);
Shell::GetInstance()->AddPreTargetHandler(this);
}
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager.h ('k') | ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698