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

Unified Diff: ash/test/mirror_window_test_api.cc

Issue 948583005: Add more tests for mouse rotation,scale&position after display change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/test/mirror_window_test_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/mirror_window_test_api.cc
diff --git a/ash/test/mirror_window_test_api.cc b/ash/test/mirror_window_test_api.cc
index cd1926a43dd1a6516240e41c764b477abdb64d2c..30e5624d64ab07b6a7d28c22093353c19d00a8ca 100644
--- a/ash/test/mirror_window_test_api.cc
+++ b/ash/test/mirror_window_test_api.cc
@@ -32,6 +32,11 @@ const gfx::Point& MirrorWindowTestApi::GetCursorHotPoint() const {
cursor_window_controller()->hot_point_;
}
+gfx::Point MirrorWindowTestApi::GetCursorHotPointLocationInRootWindow() const {
+ return GetCursorWindow()->GetBoundsInRootWindow().origin() +
+ GetCursorHotPoint().OffsetFromOrigin();
+}
+
const aura::Window* MirrorWindowTestApi::GetCursorWindow() const {
return Shell::GetInstance()->display_controller()->
cursor_window_controller()->cursor_window_.get();
« no previous file with comments | « ash/test/mirror_window_test_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698