summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor.h
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 21:00:04 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-18 21:00:04 +0000
commit01f73451f5c113ea960e2cbd7ae574943e4cff9b (patch)
treeac7ab71b2803504051dc85cdc7310ece24e21cd1 /webkit/glue/webcursor.h
parent25380a24e0c7114fe2b512a12a56962342b8accc (diff)
downloadchromium_src-01f73451f5c113ea960e2cbd7ae574943e4cff9b.zip
chromium_src-01f73451f5c113ea960e2cbd7ae574943e4cff9b.tar.gz
chromium_src-01f73451f5c113ea960e2cbd7ae574943e4cff9b.tar.bz2
Cursor support including custom cursors.
Review URL: http://codereview.chromium.org/11427 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r--webkit/glue/webcursor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h
index 71f309b..a64df6c 100644
--- a/webkit/glue/webcursor.h
+++ b/webkit/glue/webcursor.h
@@ -17,6 +17,12 @@ typedef HICON HCURSOR;
#elif defined(OS_LINUX)
// GdkCursorType is an enum, which we can't forward-declare. :(
#include <gdk/gdkcursor.h>
+#elif defined(OS_MACOSX)
+#ifdef __OBJC__
+@class NSCursor;
+#else
+class NSCursor;
+#endif
#endif
class Pickle;
@@ -69,6 +75,8 @@ class WebCursor {
// Return a new GdkCursor* for this cursor. Only valid if GetCursorType
// returns GDK_CURSOR_IS_PIXMAP.
GdkCursor* GetCustomCursor() const;
+#elif defined(OS_MACOSX)
+ NSCursor* GetCursor() const;
#endif
private: