summaryrefslogtreecommitdiffstats
path: root/views/widget/root_view.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 06:40:42 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 06:40:42 +0000
commit9abf8dd6daf601bd5215f612fd530ca009c2e5bd (patch)
treedb13bad567f4803dce769b316713509e0cc96083 /views/widget/root_view.h
parent926049f2fee49ce29144c9456112b4199fdb23e7 (diff)
downloadchromium_src-9abf8dd6daf601bd5215f612fd530ca009c2e5bd.zip
chromium_src-9abf8dd6daf601bd5215f612fd530ca009c2e5bd.tar.gz
chromium_src-9abf8dd6daf601bd5215f612fd530ca009c2e5bd.tar.bz2
Replace HCURSOR usage in views::View with a new gfx::NativeCursor type that also supports GdkCursor*, and wires this up with the existing implementors of the GetCursorForPoint method.
This allows us to get rid of one of the most annoying NOTIMPLEMENTED()s in views-gtk. BUG=none TEST=none Review URL: http://codereview.chromium.org/119150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/root_view.h')
-rw-r--r--views/widget/root_view.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/widget/root_view.h b/views/widget/root_view.h
index ae73eef..8f0df1f 100644
--- a/views/widget/root_view.h
+++ b/views/widget/root_view.h
@@ -269,6 +269,9 @@ class RootView : public View,
// If a view is dragging, this returns it. Otherwise returns NULL.
View* GetDragView();
+ // Sets the current cursor, or resets it to the last one if NULL is provided.
+ void SetActiveCursor(gfx::NativeCursor cursor);
+
// The view currently handing down - drag - up
View* mouse_pressed_handler_;
@@ -299,10 +302,8 @@ class RootView : public View,
// true if mouse_handler_ has been explicitly set
bool explicit_mouse_handler_;
-#if defined(OS_WIN)
// Previous cursor
- HCURSOR previous_cursor_;
-#endif
+ gfx::NativeCursor previous_cursor_;
// Default keyboard handler
View* default_keyboard_handler_;