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

Unified Diff: ash/wm/ash_native_cursor_manager_unittest.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/utility/partial_screenshot_controller.cc ('k') | ash/wm/coordinate_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/ash_native_cursor_manager_unittest.cc
diff --git a/ash/wm/ash_native_cursor_manager_unittest.cc b/ash/wm/ash_native_cursor_manager_unittest.cc
index 5a244afc49ae2f0a66dfa72e5932d542da112cd7..8c7fe2ea1e0c5ba425c05b202f3563b6366428d9 100644
--- a/ash/wm/ash_native_cursor_manager_unittest.cc
+++ b/ash/wm/ash_native_cursor_manager_unittest.cc
@@ -159,27 +159,30 @@ TEST_F(AshNativeCursorManagerTest, FractionalScale) {
#endif
TEST_F(AshNativeCursorManagerTest, UIScaleShouldNotChangeCursor) {
- int64_t display_id = Shell::GetScreen()->GetPrimaryDisplay().id();
+ int64_t display_id = gfx::Screen::GetScreen()->GetPrimaryDisplay().id();
gfx::Display::SetInternalDisplayId(display_id);
::wm::CursorManager* cursor_manager = Shell::GetInstance()->cursor_manager();
CursorManagerTestApi test_api(cursor_manager);
SetDisplayUIScale(display_id, 0.5f);
- EXPECT_EQ(1.0f,
- Shell::GetScreen()->GetPrimaryDisplay().device_scale_factor());
+ EXPECT_EQ(
+ 1.0f,
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor());
EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor());
SetDisplayUIScale(display_id, 1.0f);
// 2x display should keep using 2x cursor regardless of the UI scale.
UpdateDisplay("800x800*2");
- EXPECT_EQ(2.0f,
- Shell::GetScreen()->GetPrimaryDisplay().device_scale_factor());
+ EXPECT_EQ(
+ 2.0f,
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor());
EXPECT_EQ(2.0f, test_api.GetCurrentCursor().device_scale_factor());
SetDisplayUIScale(display_id, 2.0f);
- EXPECT_EQ(1.0f,
- Shell::GetScreen()->GetPrimaryDisplay().device_scale_factor());
+ EXPECT_EQ(
+ 1.0f,
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor());
EXPECT_EQ(2.0f, test_api.GetCurrentCursor().device_scale_factor());
}
« no previous file with comments | « ash/utility/partial_screenshot_controller.cc ('k') | ash/wm/coordinate_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698