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

Unified Diff: ui/aura/test/test_screen.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 | « ui/aura/test/test_screen.h ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_screen.cc
diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc
index b3aaf949314382af619a9826ef710eb0ab28d689..8aa41663fc2429c90dedd324e47ed496a7baf8e2 100644
--- a/ui/aura/test/test_screen.cc
+++ b/ui/aura/test/test_screen.cc
@@ -20,12 +20,16 @@ TestScreen::TestScreen(aura::RootWindow* root_window)
TestScreen::~TestScreen() {
}
+bool TestScreen::IsDIPEnabled() {
+ return true;
+}
+
gfx::Point TestScreen::GetCursorScreenPoint() {
return Env::GetInstance()->last_mouse_location();
}
gfx::NativeWindow TestScreen::GetWindowAtCursorScreenPoint() {
- const gfx::Point point = gfx::Screen::GetCursorScreenPoint();
+ const gfx::Point point = GetCursorScreenPoint();
return root_window_->GetTopWindowContainingPoint(point);
}
« no previous file with comments | « ui/aura/test/test_screen.h ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698