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

Unified Diff: ash/screen_util.cc

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: cros Created 4 years, 11 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/root_window_controller_unittest.cc ('k') | ash/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_util.cc
diff --git a/ash/screen_util.cc b/ash/screen_util.cc
index 02d90e23b881f37ab47c3a5d383cfef68c0ac6be..c27d896e52cb2e107fb31b7c1515aba754dc14f5 100644
--- a/ash/screen_util.cc
+++ b/ash/screen_util.cc
@@ -42,14 +42,14 @@ gfx::Rect ScreenUtil::GetMaximizedWindowBoundsInParent(aura::Window* window) {
gfx::Rect ScreenUtil::GetDisplayBoundsInParent(aura::Window* window) {
return ConvertRectFromScreen(
window->parent(),
- Shell::GetScreen()->GetDisplayNearestWindow(window).bounds());
+ gfx::Screen::GetScreen()->GetDisplayNearestWindow(window).bounds());
}
// static
gfx::Rect ScreenUtil::GetDisplayWorkAreaBoundsInParent(aura::Window* window) {
return ConvertRectFromScreen(
window->parent(),
- Shell::GetScreen()->GetDisplayNearestWindow(window).work_area());
+ gfx::Screen::GetScreen()->GetDisplayNearestWindow(window).work_area());
}
gfx::Rect ScreenUtil::GetShelfDisplayBoundsInRoot(aura::Window* window) {
@@ -92,8 +92,9 @@ const gfx::Display& ScreenUtil::GetSecondaryDisplay() {
DisplayManager* display_manager = GetDisplayManager();
CHECK_LE(2U, display_manager->GetNumDisplays());
return display_manager->GetDisplayAt(0).id() ==
- Shell::GetScreen()->GetPrimaryDisplay().id() ?
- display_manager->GetDisplayAt(1) : display_manager->GetDisplayAt(0);
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().id()
+ ? display_manager->GetDisplayAt(1)
+ : display_manager->GetDisplayAt(0);
}
} // namespace ash
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698