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

Unified Diff: ash/wm/window_state_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/window_positioner_unittest.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state_unittest.cc
diff --git a/ash/wm/window_state_unittest.cc b/ash/wm/window_state_unittest.cc
index 57656cc83c96d90ade73b982614c71738f336575..35c79a6d7e7d66622bf62f6c7787ba5da4ff188e 100644
--- a/ash/wm/window_state_unittest.cc
+++ b/ash/wm/window_state_unittest.cc
@@ -14,7 +14,7 @@
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/test/test_window_delegate.h"
#include "ui/aura/window.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/screen.h"
namespace ash {
namespace wm {
@@ -59,7 +59,7 @@ TEST_F(WindowStateTest, SnapWindowBasic) {
UpdateDisplay("0+0-500x400, 0+500-600x400");
const gfx::Rect kPrimaryDisplayWorkAreaBounds =
- gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
+ display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
const gfx::Rect kSecondaryDisplayWorkAreaBounds =
ScreenUtil::GetSecondaryDisplay().work_area();
@@ -106,7 +106,7 @@ TEST_F(WindowStateTest, SnapWindowMinimumSize) {
UpdateDisplay("0+0-600x900");
const gfx::Rect kWorkAreaBounds =
- gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
+ display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
aura::test::TestWindowDelegate delegate;
std::unique_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate(
@@ -172,7 +172,7 @@ TEST_F(WindowStateTest, TestIgnoreTooBigMinimumSize) {
UpdateDisplay("0+0-1024x768");
const gfx::Size work_area_size =
- gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area().size();
+ display::Screen::GetScreen()->GetPrimaryDisplay().work_area().size();
const gfx::Size illegal_size(1280, 960);
const gfx::Rect illegal_bounds(gfx::Point(0, 0), illegal_size);
@@ -203,7 +203,7 @@ TEST_F(WindowStateTest, SnapWindowSetBounds) {
UpdateDisplay("0+0-900x600");
const gfx::Rect kWorkAreaBounds =
- gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
+ display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
std::unique_ptr<aura::Window> window(
CreateTestWindowInShellWithBounds(gfx::Rect(100, 100, 100, 100)));
@@ -279,7 +279,7 @@ TEST_F(WindowStateTest, AutoManaged) {
window_state->OnWMEvent(&snap_right);
const gfx::Rect kWorkAreaBounds =
- gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
+ display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
gfx::Rect expected_snapped_bounds(
kWorkAreaBounds.x() + kWorkAreaBounds.width() / 2,
kWorkAreaBounds.y(),
@@ -323,7 +323,7 @@ TEST_F(WindowStateTest, RestoredWindowBoundsShrink) {
WindowState* window_state = GetWindowState(window.get());
EXPECT_FALSE(window_state->IsMaximized());
gfx::Rect work_area =
- gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
+ display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
window->SetBounds(work_area);
window_state->Maximize();
« no previous file with comments | « ash/wm/window_positioner_unittest.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698