summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r--webkit/glue/webcursor.h7
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: