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

Unified Diff: ui/aura/root_window.cc

Issue 10543174: Aura: Add Window::MoveCursorTo() taking relative location to the window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests with transform. Created 8 years, 6 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: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 6c6d6bbde2f806dbba328489cb7595712220fa55..a739fc90e2cce61354202e09db5a107909af230b 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -217,7 +217,10 @@ void RootWindow::ShowCursor(bool show) {
}
void RootWindow::MoveCursorTo(const gfx::Point& location_in_dip) {
- host_->MoveCursorTo(ui::ConvertPointToPixel(layer(), location_in_dip));
+ gfx::Point location = location_in_dip;
+ layer()->transform().TransformPoint(location);
+ host_->MoveCursorTo(ui::ConvertPointToPixel(layer(), location));
+ last_mouse_location_ = location_in_dip;
}
bool RootWindow::ConfineCursorToWindow() {
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/window.h » ('j') | ui/aura/window_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698