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

Unified Diff: ash/display/extended_mouse_warp_controller.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: . 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
Index: ash/display/extended_mouse_warp_controller.cc
diff --git a/ash/display/extended_mouse_warp_controller.cc b/ash/display/extended_mouse_warp_controller.cc
index a28de78d3d73cb15f8af5c7040a1cc4fb18f09d6..07fd7c9281632e5a8c937f3400c884329b83615b 100644
--- a/ash/display/extended_mouse_warp_controller.cc
+++ b/ash/display/extended_mouse_warp_controller.cc
@@ -58,7 +58,7 @@ ExtendedMouseWarpController::~ExtendedMouseWarpController() {
}
bool ExtendedMouseWarpController::WarpMouseCursor(ui::MouseEvent* event) {
- if (Shell::GetScreen()->GetNumDisplays() <= 1 || !enabled_)
+ if (gfx::Screen::GetScreen()->GetNumDisplays() <= 1 || !enabled_)
return false;
aura::Window* target = static_cast<aura::Window*>(event->target());
@@ -122,7 +122,7 @@ void ExtendedMouseWarpController::UpdateHorizontalEdgeBounds() {
// GetPrimaryDisplay returns an object on stack, so copy the bounds
// instead of using reference.
const gfx::Rect primary_bounds =
- Shell::GetScreen()->GetPrimaryDisplay().bounds();
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().bounds();
const gfx::Rect secondary_bounds = ScreenUtil::GetSecondaryDisplay().bounds();
DisplayLayout::Position position = Shell::GetInstance()
->display_manager()
@@ -163,7 +163,7 @@ void ExtendedMouseWarpController::UpdateVerticalEdgeBounds() {
// GetPrimaryDisplay returns an object on stack, so copy the bounds
// instead of using reference.
const gfx::Rect primary_bounds =
- Shell::GetScreen()->GetPrimaryDisplay().bounds();
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().bounds();
const gfx::Rect secondary_bounds = ScreenUtil::GetSecondaryDisplay().bounds();
DisplayLayout::Position position = Shell::GetInstance()
->display_manager()

Powered by Google App Engine
This is Rietveld 408576698