diff options
author | yoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-19 01:31:44 +0000 |
---|---|---|
committer | yoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-19 01:31:44 +0000 |
commit | dad7ad48393cb560438ec23b7242d8354fed62ec (patch) | |
tree | 8fdd75524363df0a9af92fc42422ce9214e6840e /ui/aura/window.h | |
parent | d0215d215ffdc9abd2678110758aac6c643f69fe (diff) | |
download | chromium_src-dad7ad48393cb560438ec23b7242d8354fed62ec.zip chromium_src-dad7ad48393cb560438ec23b7242d8354fed62ec.tar.gz chromium_src-dad7ad48393cb560438ec23b7242d8354fed62ec.tar.bz2 |
Aura: Add Window::MoveCursorTo() taking relative location to the window.
Previously, although RootWindow::MoveCursorTo() takes a ponit coordinate relative to Root, but OnMouseEvent/LockMouse in RWHVA are using coordinate relative to parent window (which may not be root). UnlockMouse is using global X/Y from webkit.
This CL added Window::MoveCursorTo() taking relative location to the window, and made RWHVA use it.
BUG=none
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/10543174
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window.h')
-rw-r--r-- | ui/aura/window.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/aura/window.h b/ui/aura/window.h index a516730..34a5702 100644 --- a/ui/aura/window.h +++ b/ui/aura/window.h @@ -213,6 +213,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate, const Window* target, gfx::Point* point); + // Moves the cursor to the specified location relative to the window. + virtual void MoveCursorTo(const gfx::Point& point_in_window); + // Returns the cursor for the specified point, in window coordinates. gfx::NativeCursor GetCursor(const gfx::Point& point) const; |