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

Unified Diff: ash/display/mouse_cursor_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 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/display/mouse_cursor_event_filter.cc ('k') | ash/display/multi_display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mouse_cursor_event_filter_unittest.cc
diff --git a/ash/display/mouse_cursor_event_filter_unittest.cc b/ash/display/mouse_cursor_event_filter_unittest.cc
index 2c050bae1bfd644abb48bcad511148705eb774ce..95433e3c836981389265041e38fccdaa81cecdc4 100644
--- a/ash/display/mouse_cursor_event_filter_unittest.cc
+++ b/ash/display/mouse_cursor_event_filter_unittest.cc
@@ -17,12 +17,12 @@ namespace internal {
namespace {
gfx::Display GetPrimaryDisplay() {
- return gfx::Screen::GetDisplayNearestWindow(
+ return Shell::GetScreen()->GetDisplayNearestWindow(
Shell::GetAllRootWindows()[0]);
}
gfx::Display GetSecondaryDisplay() {
- return gfx::Screen::GetDisplayNearestWindow(
+ return Shell::GetScreen()->GetDisplayNearestWindow(
Shell::GetAllRootWindows()[1]);
}
@@ -52,7 +52,7 @@ TEST_F(MouseCursorEventFilterTest, WarpMouse) {
// Touch the right edge of the primary root window. Pointer should warp.
is_warped = event_filter->WarpMouseCursorIfNecessary(root_windows[0],
- gfx::Point(499, 11));
+ gfx::Point(499, 11));
EXPECT_TRUE(is_warped);
EXPECT_EQ("501,11", // by 2px.
aura::Env::GetInstance()->last_mouse_location().ToString());
« no previous file with comments | « ash/display/mouse_cursor_event_filter.cc ('k') | ash/display/multi_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698