diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 18:28:50 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 18:28:50 +0000 |
commit | be18d3eae2db247dc5a0e211cc97579620324641 (patch) | |
tree | 4b3bfe1413bd6c714a048e5cca80a02938fce9e3 /webkit/glue/webcursor.h | |
parent | 0d8a7a1b0662e50c962cd3f14d7ef1a65d5a630b (diff) | |
download | chromium_src-be18d3eae2db247dc5a0e211cc97579620324641.zip chromium_src-be18d3eae2db247dc5a0e211cc97579620324641.tar.gz chromium_src-be18d3eae2db247dc5a0e211cc97579620324641.tar.bz2 |
Basic cursor support.
Review URL: http://codereview.chromium.org/9744
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5185 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r-- | webkit/glue/webcursor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h index 92e27f3..7775751 100644 --- a/webkit/glue/webcursor.h +++ b/webkit/glue/webcursor.h @@ -14,6 +14,9 @@ typedef struct HINSTANCE__* HINSTANCE; typedef struct HICON__* HICON; typedef HICON HCURSOR; +#elif defined(OS_LINUX) +// GdkCursorType is an enum, which we can't forward-declare. :( +#include <gdk/gdkcursor.h> #endif class Pickle; @@ -58,6 +61,10 @@ class WebCursor { // Initialize this from the given Windows cursor. void InitFromCursor(HCURSOR handle); +#elif defined(OS_LINUX) + // Return the stock GdkCursorType for this cursor, or GDK_CURSOR_IS_PIXMAP + // if it's a custom cursor. + GdkCursorType GetCursorType() const; #endif private: |