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

Unified Diff: ui/aura/root_window.cc

Issue 10388141: Full-screen Magnifier: Support warping the cursor on the edge (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review fix 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
« ash/magnifier/magnification_controller.cc ('K') | « ash/shell.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index a78db6983ec2cbbed2f5f74cce4c1f4c988387bc..4a6103b56e6462016f82b1cac6429af5f5b52eab 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -31,6 +31,7 @@
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_animator.h"
#include "ui/gfx/monitor.h"
+#include "ui/gfx/point3.h"
sky 2012/06/11 16:19:14 remove include.
yoshiki 2012/06/19 17:56:16 Done.
#include "ui/gfx/screen.h"
using std::vector;
@@ -218,7 +219,9 @@ 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);
oshima 2012/06/11 21:48:30 I look at the code a bit closely and I think what
yoshiki 2012/06/19 17:56:16 Done.
+ host_->MoveCursorTo(ui::ConvertPointToPixel(layer(), location));
}
bool RootWindow::ConfineCursorToWindow() {
« ash/magnifier/magnification_controller.cc ('K') | « ash/shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698