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

Unified Diff: chrome/browser/ui/ash/launcher/browser_status_monitor.cc

Issue 1920263003: Rename gfx::Display/Screen to display::Display/Screen in chrome (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: chrome/browser/ui/ash/launcher/browser_status_monitor.cc
diff --git a/chrome/browser/ui/ash/launcher/browser_status_monitor.cc b/chrome/browser/ui/ash/launcher/browser_status_monitor.cc
index 69c7bfedf8d6e52ef56974b2aae2a5bb637a3e62..ea0b7bd987f79aee846f3b86e53318f67adfa125 100644
--- a/chrome/browser/ui/ash/launcher/browser_status_monitor.cc
+++ b/chrome/browser/ui/ash/launcher/browser_status_monitor.cc
@@ -28,7 +28,7 @@
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/screen.h"
#include "ui/wm/public/activation_client.h"
// This class monitors the WebContent of the all tab and notifies a navigation
@@ -128,7 +128,7 @@ BrowserStatusMonitor::BrowserStatusMonitor(
aura::client::GetActivationClient(*iter));
observed_root_windows_.Add(static_cast<aura::Window*>(*iter));
}
- gfx::Screen::GetScreen()->AddObserver(this);
+ display::Screen::GetScreen()->AddObserver(this);
}
browser_tab_strip_tracker_.Init(
@@ -139,7 +139,7 @@ BrowserStatusMonitor::~BrowserStatusMonitor() {
// This check needs for win7_aura. Without this, all tests in
// ChromeLauncherController will fail in win7_aura.
if (ash::Shell::HasInstance())
- gfx::Screen::GetScreen()->RemoveObserver(this);
+ display::Screen::GetScreen()->RemoveObserver(this);
chrome::SettingsWindowManager::GetInstance()->RemoveObserver(
settings_window_observer_.get());
@@ -230,7 +230,7 @@ void BrowserStatusMonitor::OnBrowserRemoved(Browser* browser) {
UpdateBrowserItemState();
}
-void BrowserStatusMonitor::OnDisplayAdded(const gfx::Display& new_display) {
+void BrowserStatusMonitor::OnDisplayAdded(const display::Display& new_display) {
// Add a new RootWindow and its ActivationClient to observed list.
aura::Window* root_window = ash::Shell::GetInstance()
->window_tree_host_manager()
@@ -244,14 +244,15 @@ void BrowserStatusMonitor::OnDisplayAdded(const gfx::Display& new_display) {
}
}
-void BrowserStatusMonitor::OnDisplayRemoved(const gfx::Display& old_display) {
+void BrowserStatusMonitor::OnDisplayRemoved(
+ const display::Display& old_display) {
// When this is called, RootWindow of |old_display| is already removed.
// Instead, we can remove RootWindow and its ActivationClient in the
// OnWindowRemoved().
// Do nothing here.
}
-void BrowserStatusMonitor::OnDisplayMetricsChanged(const gfx::Display&,
+void BrowserStatusMonitor::OnDisplayMetricsChanged(const display::Display&,
uint32_t) {
// Do nothing here.
}
« no previous file with comments | « chrome/browser/ui/ash/launcher/browser_status_monitor.h ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698