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

Unified Diff: ash/wm/system_gesture_event_filter_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 some new gfx::Screen additions 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: ash/wm/system_gesture_event_filter_unittest.cc
diff --git a/ash/wm/system_gesture_event_filter_unittest.cc b/ash/wm/system_gesture_event_filter_unittest.cc
index 86893c997aa9ef0a044c572f4708391591a9ea40..102a14d76478656e78b149a51147554b663a6e34 100644
--- a/ash/wm/system_gesture_event_filter_unittest.cc
+++ b/ash/wm/system_gesture_event_filter_unittest.cc
@@ -272,7 +272,7 @@ void MoveToDeviceControlBezelStartPosition(
TEST_F(SystemGestureEventFilterTest, DeviceControl) {
aura::RootWindow* root_window = Shell::GetPrimaryRootWindow();
- gfx::Rect screen = gfx::Screen::GetPrimaryDisplay().bounds();
+ gfx::Rect screen = Shell::GetAshScreen()->GetPrimaryDisplay().bounds();
int ypos_half = screen.height() / 2;
ash::AcceleratorController* accelerator =
@@ -376,7 +376,7 @@ TEST_F(SystemGestureEventFilterTest, DeviceControl) {
TEST_F(SystemGestureEventFilterTest, ApplicationControl) {
aura::RootWindow* root_window = Shell::GetPrimaryRootWindow();
- gfx::Rect screen = gfx::Screen::GetPrimaryDisplay().bounds();
+ gfx::Rect screen = Shell::GetAshScreen()->GetPrimaryDisplay().bounds();
int ypos_half = screen.height() / 2;
aura::test::TestWindowDelegate delegate;

Powered by Google App Engine
This is Rietveld 408576698