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

Unified Diff: chrome/browser/ui/ash/window_positioner_unittest.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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
Index: chrome/browser/ui/ash/window_positioner_unittest.cc
diff --git a/chrome/browser/ui/ash/window_positioner_unittest.cc b/chrome/browser/ui/ash/window_positioner_unittest.cc
index 52f35787a85c3251637946397840f11205a86096..ec95cb450434d610d7ced43999b70a7d143f67ce 100644
--- a/chrome/browser/ui/ash/window_positioner_unittest.cc
+++ b/chrome/browser/ui/ash/window_positioner_unittest.cc
@@ -180,7 +180,8 @@ int AlignToGridRoundDown(int location, int grid_size) {
}
TEST_F(WindowPositionerTest, cascading) {
- const gfx::Rect work_area = gfx::Screen::GetPrimaryDisplay().work_area();
+ const gfx::Rect work_area =
+ Shell::GetScreen()->GetPrimaryDisplay().work_area();
// First see that the window will cascade down when there is no space.
window()->SetBounds(work_area);
@@ -240,7 +241,8 @@ TEST_F(WindowPositionerTest, cascading) {
}
TEST_F(WindowPositionerTest, filling) {
- const gfx::Rect work_area = gfx::Screen::GetPrimaryDisplay().work_area();
+ const gfx::Rect work_area =
+ Shell::GetScreen()->GetPrimaryDisplay().work_area();
gfx::Rect popup_position(0, 0, 256, 128);
// Leave space on the left and the right and see if we fill top to bottom.
window()->SetBounds(gfx::Rect(work_area.x() + popup_position.width(),
@@ -294,7 +296,8 @@ TEST_F(WindowPositionerTest, filling) {
}
TEST_F(WindowPositionerTest, blockedByPanel) {
- const gfx::Rect work_area = gfx::Screen::GetPrimaryDisplay().work_area();
+ const gfx::Rect work_area =
+ Shell::GetScreen()->GetPrimaryDisplay().work_area();
gfx::Rect pop_position(0, 0, 200, 200);
// Let the panel cover everything.
@@ -309,7 +312,8 @@ TEST_F(WindowPositionerTest, blockedByPanel) {
}
TEST_F(WindowPositionerTest, biggerThenBorder) {
- const gfx::Rect work_area = gfx::Screen::GetPrimaryDisplay().work_area();
+ const gfx::Rect work_area =
+ Shell::GetScreen()->GetPrimaryDisplay().work_area();
gfx::Rect pop_position(0, 0, work_area.width(), work_area.height());
« no previous file with comments | « chrome/browser/ui/ash/window_positioner.cc ('k') | chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698