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

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: fix a misspelling and add a comment 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
Index: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 11f59773a8a24826d06399c46c6fa72a7e06e588..e4a41716cf900c4180b41850bb3d276eaae6bb60 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -129,6 +129,9 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Moves the cursor to the specified location relative to the root window.
virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
+ // Moves the cursor to the |host_location| given in host coordinates.
+ void MoveCursorToHostLocation(const gfx::Point& host_location);
+
// Clips the cursor movement to the root_window.
bool ConfineCursorToWindow();
@@ -315,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);

Powered by Google App Engine
This is Rietveld 408576698