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

Unified Diff: ash/dip_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
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/dip_unittest.cc
diff --git a/ash/dip_unittest.cc b/ash/dip_unittest.cc
index b710e4c4a09d2ceff21d4e5f5a4461d8627fb854..2a311d547f8b8cc53262d549bf897481ad967aee 100644
--- a/ash/dip_unittest.cc
+++ b/ash/dip_unittest.cc
@@ -39,7 +39,8 @@ TEST_F(DIPTest, MAYBE_WorkArea) {
ChangeDisplayConfig(1.0f, gfx::Rect(0, 0, 1000, 900));
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- const gfx::Display display = gfx::Screen::GetDisplayNearestWindow(root);
+ const gfx::Display display =
+ Shell::GetScreen()->GetDisplayNearestWindow(root);
EXPECT_EQ("0,0 1000x900", display.bounds().ToString());
gfx::Rect work_area = display.work_area();
@@ -48,7 +49,8 @@ TEST_F(DIPTest, MAYBE_WorkArea) {
ChangeDisplayConfig(2.0f, gfx::Rect(0, 0, 2000, 1800));
- const gfx::Display display_2x = gfx::Screen::GetDisplayNearestWindow(root);
+ const gfx::Display display_2x =
+ Shell::GetScreen()->GetDisplayNearestWindow(root);
// The |bounds_in_pixel()| should report bounds in pixel coordinate.
EXPECT_EQ("0,0 2000x1800", display_2x.bounds_in_pixel().ToString());
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698