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

Unified Diff: ui/aura/root_window.h

Issue 13947045: Magnifier: Move the cursor directly to the root window host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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/magnifier/magnifier_constants.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 3ebf375a0656c67e8a173bab049cabde5c225c4e..e4a41716cf900c4180b41850bb3d276eaae6bb60 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -130,7 +130,7 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
// Moves the cursor to the |host_location| given in host coordinates.
- void MoveCursorToHostLoation(const gfx::Point& host_location);
+ void MoveCursorToHostLocation(const gfx::Point& host_location);
// Clips the cursor movement to the root_window.
bool ConfineCursorToWindow();
@@ -318,6 +318,11 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
void TransformEventForDeviceScaleFactor(bool keep_inside_root,
ui::LocatedEvent* event);
+ // Moves the cursor to the specified location. This method is internally used
+ // by MoveCursorTo() and MoveCursorToHostLocation().
+ void MoveCursorToInternal(const gfx::Point& root_location,
+ const gfx::Point& host_location);
+
// Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
// sending exited and entered events as its value changes.
void HandleMouseMoved(const ui::MouseEvent& event, Window* target);
« no previous file with comments | « ash/magnifier/magnifier_constants.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698