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

Unified Diff: ash/wm/dock/docked_window_resizer_unittest.cc

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/wm/dock/docked_window_resizer.cc ('k') | ash/wm/drag_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_resizer_unittest.cc
diff --git a/ash/wm/dock/docked_window_resizer_unittest.cc b/ash/wm/dock/docked_window_resizer_unittest.cc
index 1e8fce7c5141d5f9811a53aeb7e65f5c8b0ec4f6..a1ca45246543145f97be87037f23c824d83e1212 100644
--- a/ash/wm/dock/docked_window_resizer_unittest.cc
+++ b/ash/wm/dock/docked_window_resizer_unittest.cc
@@ -100,8 +100,8 @@ class DockedWindowResizerTest
if (bounds.IsEmpty()) {
ParentWindowInPrimaryRootWindow(window);
} else {
- gfx::Display display =
- gfx::Screen::GetScreen()->GetDisplayMatching(bounds);
+ display::Display display =
+ display::Screen::GetScreen()->GetDisplayMatching(bounds);
aura::Window* root = ash::Shell::GetInstance()
->window_tree_host_manager()
->GetRootWindowForDisplayId(display.id());
@@ -213,8 +213,9 @@ class DockedWindowResizerTest
ASSERT_NO_FATAL_FAILURE(DragStartAtOffsetFromWindowOrigin(window,
grab_x, grab_y));
- gfx::Rect work_area =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(window).work_area();
+ gfx::Rect work_area = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(window)
+ .work_area();
gfx::Point initial_location_in_screen = initial_location_in_parent_;
::wm::ConvertPointToScreen(window->parent(), &initial_location_in_screen);
// Drag the window left or right to the edge (or almost to it).
@@ -605,8 +606,9 @@ TEST_P(DockedWindowResizerTest, AttachOneAutoHideShelf) {
EXPECT_EQ(kShellWindowId_DefaultContainer, w2->parent()->id());
EXPECT_TRUE(wm::GetWindowState(w2.get())->IsMaximized());
- gfx::Rect work_area =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
+ gfx::Rect work_area = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(w1.get())
+ .work_area();
DockedWindowLayoutManager* manager =
DockedWindowLayoutManager::Get(wm::WmWindowAura::Get(w1.get()));
@@ -619,8 +621,9 @@ TEST_P(DockedWindowResizerTest, AttachOneAutoHideShelf) {
ash::Shell* shell = ash::Shell::GetInstance();
shell->SetShelfAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS,
shell->GetPrimaryRootWindow());
- work_area =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
+ work_area = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(w1.get())
+ .work_area();
// Docked window should be centered vertically in the work area.
EXPECT_EQ(work_area.CenterPoint().y(), w1->bounds().CenterPoint().y());
// Docked background should extend to the bottom of work area.
« no previous file with comments | « ash/wm/dock/docked_window_resizer.cc ('k') | ash/wm/drag_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698