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

Unified Diff: ash/extended_desktop_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/display/window_tree_host_manager_unittest.cc ('k') | ash/first_run/first_run_helper_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/extended_desktop_unittest.cc
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index 64eee29a37cc262582a172252a9fdd734976d115..b35b45988074094d0dece61696357176fa766b0e 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -289,15 +289,18 @@ TEST_F(ExtendedDesktopTest, TestCursorLocation) {
aura::test::WindowTestApi root_window1_test_api(root_windows[1]);
root_windows[0]->MoveCursorTo(gfx::Point(10, 10));
- EXPECT_EQ("10,10", Shell::GetScreen()->GetCursorScreenPoint().ToString());
+ EXPECT_EQ("10,10",
+ gfx::Screen::GetScreen()->GetCursorScreenPoint().ToString());
EXPECT_TRUE(root_window0_test_api.ContainsMouse());
EXPECT_FALSE(root_window1_test_api.ContainsMouse());
root_windows[1]->MoveCursorTo(gfx::Point(10, 20));
- EXPECT_EQ("1010,20", Shell::GetScreen()->GetCursorScreenPoint().ToString());
+ EXPECT_EQ("1010,20",
+ gfx::Screen::GetScreen()->GetCursorScreenPoint().ToString());
EXPECT_FALSE(root_window0_test_api.ContainsMouse());
EXPECT_TRUE(root_window1_test_api.ContainsMouse());
root_windows[0]->MoveCursorTo(gfx::Point(20, 10));
- EXPECT_EQ("20,10", Shell::GetScreen()->GetCursorScreenPoint().ToString());
+ EXPECT_EQ("20,10",
+ gfx::Screen::GetScreen()->GetCursorScreenPoint().ToString());
EXPECT_TRUE(root_window0_test_api.ContainsMouse());
EXPECT_FALSE(root_window1_test_api.ContainsMouse());
}
@@ -609,9 +612,9 @@ TEST_F(ExtendedDesktopTest, MoveWindowToDisplay) {
UpdateDisplay("1000x1000,1000x1000");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- gfx::Display display0 = Shell::GetScreen()->GetDisplayMatching(
+ gfx::Display display0 = gfx::Screen::GetScreen()->GetDisplayMatching(
root_windows[0]->GetBoundsInScreen());
- gfx::Display display1 = Shell::GetScreen()->GetDisplayMatching(
+ gfx::Display display1 = gfx::Screen::GetScreen()->GetDisplayMatching(
root_windows[1]->GetBoundsInScreen());
EXPECT_NE(display0.id(), display1.id());
@@ -697,7 +700,7 @@ TEST_F(ExtendedDesktopTest, MoveWindowWithTransient) {
TEST_F(ExtendedDesktopTest, ConvertPoint) {
if (!SupportsMultipleDisplays())
return;
- gfx::Screen* screen = Shell::GetScreen();
+ gfx::Screen* screen = gfx::Screen::GetScreen();
UpdateDisplay("1000x600,600x400");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
gfx::Display display_1 = screen->GetDisplayNearestWindow(root_windows[0]);
@@ -835,8 +838,8 @@ TEST_F(ExtendedDesktopTest, KeyEventsOnLockScreen) {
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
// Create normal windows on both displays.
- views::Widget* widget1 = CreateTestWidget(
- Shell::GetScreen()->GetPrimaryDisplay().bounds());
+ views::Widget* widget1 =
+ CreateTestWidget(gfx::Screen::GetScreen()->GetPrimaryDisplay().bounds());
widget1->Show();
EXPECT_EQ(root_windows[0], widget1->GetNativeView()->GetRootWindow());
views::Widget* widget2 = CreateTestWidget(
@@ -845,8 +848,8 @@ TEST_F(ExtendedDesktopTest, KeyEventsOnLockScreen) {
EXPECT_EQ(root_windows[1], widget2->GetNativeView()->GetRootWindow());
// Create a LockScreen window.
- views::Widget* lock_widget = CreateTestWidget(
- Shell::GetScreen()->GetPrimaryDisplay().bounds());
+ views::Widget* lock_widget =
+ CreateTestWidget(gfx::Screen::GetScreen()->GetPrimaryDisplay().bounds());
views::Textfield* textfield = new views::Textfield;
lock_widget->client_view()->AddChildView(textfield);
« no previous file with comments | « ash/display/window_tree_host_manager_unittest.cc ('k') | ash/first_run/first_run_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698