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

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: 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/display/event_transformation_handler.cc ('k') | ash/display/mirror_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f17444bd63b5f4e86b694433b874e68ddec61c62..3d28c5fe6021412599c277d027af7d7ca782fd8d 100644
--- a/ash/display/extended_mouse_warp_controller.cc
+++ b/ash/display/extended_mouse_warp_controller.cc
@@ -42,7 +42,7 @@ aura::Window* GetRootWindowForDisplayId(int64_t display_id) {
// Helper method that maps an aura::Window to a gfx::Display.
gfx::Display GetDisplayFromWindow(aura::Window* window) {
- return Shell::GetScreen()->GetDisplayNearestWindow(window);
+ return gfx::Screen::GetScreen()->GetDisplayNearestWindow(window);
}
} // namespace
@@ -94,7 +94,7 @@ ExtendedMouseWarpController::ExtendedMouseWarpController(
// display. DisplayLayout::Position is defined in terms of primary.
DisplayLayout::Position position =
display_manager->GetCurrentDisplayLayout().position;
- const gfx::Display& a = Shell::GetScreen()->GetPrimaryDisplay();
+ const gfx::Display& a = gfx::Screen::GetScreen()->GetPrimaryDisplay();
const gfx::Display& b = ScreenUtil::GetSecondaryDisplay();
// TODO(oshima): Use ComputeBondary instead.
@@ -112,7 +112,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());
« no previous file with comments | « ash/display/event_transformation_handler.cc ('k') | ash/display/mirror_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698