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

Unified Diff: ash/shelf/shelf_window_watcher.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
« no previous file with comments | « ash/shelf/shelf_window_watcher.h ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_window_watcher.cc
diff --git a/ash/shelf/shelf_window_watcher.cc b/ash/shelf/shelf_window_watcher.cc
index 70e94c27121ff35f2f0caa72f60d89815d4b1d2c..95ea25425073d7f17012c3ea62815379cf94dab5 100644
--- a/ash/shelf/shelf_window_watcher.cc
+++ b/ash/shelf/shelf_window_watcher.cc
@@ -20,8 +20,8 @@
#include "ash/wm/window_util.h"
#include "ui/aura/window.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/display/screen.h"
#include "ui/gfx/image/image_skia.h"
-#include "ui/gfx/screen.h"
#include "ui/wm/public/activation_client.h"
namespace {
@@ -121,11 +121,11 @@ ShelfWindowWatcher::ShelfWindowWatcher(
it != root_windows.end(); ++it)
OnRootWindowAdded(*it);
- gfx::Screen::GetScreen()->AddObserver(this);
+ display::Screen::GetScreen()->AddObserver(this);
}
ShelfWindowWatcher::~ShelfWindowWatcher() {
- gfx::Screen::GetScreen()->RemoveObserver(this);
+ display::Screen::GetScreen()->RemoveObserver(this);
}
void ShelfWindowWatcher::AddShelfItem(aura::Window* window) {
@@ -269,7 +269,7 @@ void ShelfWindowWatcher::OnWindowPropertyChanged(aura::Window* window,
AddShelfItem(window);
}
-void ShelfWindowWatcher::OnDisplayAdded(const gfx::Display& new_display) {
+void ShelfWindowWatcher::OnDisplayAdded(const display::Display& new_display) {
// Add a new RootWindow and its ActivationClient to observed list.
aura::Window* root_window = Shell::GetInstance()
->window_tree_host_manager()
@@ -281,15 +281,14 @@ void ShelfWindowWatcher::OnDisplayAdded(const gfx::Display& new_display) {
OnRootWindowAdded(root_window);
}
-void ShelfWindowWatcher::OnDisplayRemoved(const gfx::Display& old_display) {
+void ShelfWindowWatcher::OnDisplayRemoved(const display::Display& old_display) {
// When this is called, RootWindow of |old_display| is already removed.
// Instead, we remove an observer from RootWindow and ActivationClient in the
// OnRootWindowDestroyed().
// Do nothing here.
}
-void ShelfWindowWatcher::OnDisplayMetricsChanged(const gfx::Display&,
- uint32_t) {
-}
+void ShelfWindowWatcher::OnDisplayMetricsChanged(const display::Display&,
+ uint32_t) {}
} // namespace ash
« no previous file with comments | « ash/shelf/shelf_window_watcher.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698