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

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, 10 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/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 b9bf613a7c77130dbc23d3a2673a52cec0b99194..199614a8d89a7877cefe8cb5f6791b9030bdc8ae 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();
« ash/display/display_manager_unittest.cc ('K') | « 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