diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 21:48:00 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 21:48:00 +0000 |
commit | 3446c069d6670e68bf688aac606f4c2c818f22c3 (patch) | |
tree | b6ba31d38a44b21cf1926572e47e41b793549b6a /views/view.h | |
parent | 8e1c5a3616e15f83e05766cb94093e8e9710f661 (diff) | |
download | chromium_src-3446c069d6670e68bf688aac606f4c2c818f22c3.zip chromium_src-3446c069d6670e68bf688aac606f4c2c818f22c3.tar.gz chromium_src-3446c069d6670e68bf688aac606f4c2c818f22c3.tar.bz2 |
Rename View::GetCursor and simplify arguments.
Simplify RootView::UpdateCursor with MouseEvent ctor support.
Restore pre-r83123 WigetWin::SetCursor(NULL) behavior.
Cleanup (function ordering, OVERRIDEs, unnecessary "views::").
This originates from changes and comments of Patch Set 3 at:
http://codereview.chromium.org/6893096/
BUG=72040
TEST=Mouse cursors.
Review URL: http://codereview.chromium.org/6910032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/views/view.h b/views/view.h index 5df51d6..3722e986 100644 --- a/views/view.h +++ b/views/view.h @@ -584,12 +584,11 @@ class View : public AcceleratorTarget { virtual View* GetEventHandlerForPoint(const gfx::Point& point); // Return the cursor that should be used for this view or the default cursor. - // The provided point is in the receiver's coordinate system. The caller is + // The event location is in the receiver's coordinate system. The caller is // responsible for managing the lifetime of the returned object, though that // lifetime may vary from platform to platform. On Windows, the cursor is a // shared resource, but Gtk destroys the returned cursor after setting it. - virtual gfx::NativeCursor GetCursorForPoint(ui::EventType event_type, - const gfx::Point& p); + virtual gfx::NativeCursor GetCursor(const MouseEvent& event); // Convenience to test whether a point is within this view's bounds virtual bool HitTest(const gfx::Point& l) const; |