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

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: Change behaivior of the magnified region. 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..ddf3346a5eb756122f5b2f4c3fd5b7010ee6317e 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -32,6 +32,7 @@
#include "ui/compositor/layer_animator.h"
#include "ui/gfx/monitor.h"
#include "ui/gfx/screen.h"
+#include "ui/gfx/point3.h"
sky 2012/06/07 18:05:50 sort
yoshiki 2012/06/08 22:27:45 Done.
using std::vector;
@@ -218,7 +219,11 @@ void RootWindow::ShowCursor(bool show) {
}
void RootWindow::MoveCursorTo(const gfx::Point& location_in_dip) {
- host_->MoveCursorTo(ui::ConvertPointToPixel(layer(), location_in_dip));
+ gfx::Point3f p3(location_in_dip);
sky 2012/06/07 18:05:50 Why do we need point3 here?
oshima 2012/06/07 18:25:07 Transform convert gfx::point to point3 internally,
yoshiki 2012/06/08 22:27:45 Done.
+ layer()->transform().TransformPoint(p3);
oshima 2012/06/07 18:25:07 I believe location_in_dip is in DIP coordinate sys
yoshiki 2012/06/08 22:27:45 oshima: Sorry, I can't find it in render_widget_ho
oshima 2012/06/11 16:51:18 no, what I meant is the all mouse events fed to au
+ gfx::Point p(p3.AsPoint());
+
+ host_->MoveCursorTo(ui::ConvertPointToPixel(layer(), p));
}
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