diff options
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r-- | webkit/glue/webcursor.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h index 7775751..71f309b 100644 --- a/webkit/glue/webcursor.h +++ b/webkit/glue/webcursor.h @@ -65,13 +65,22 @@ class WebCursor { // Return the stock GdkCursorType for this cursor, or GDK_CURSOR_IS_PIXMAP // if it's a custom cursor. GdkCursorType GetCursorType() const; + + // Return a new GdkCursor* for this cursor. Only valid if GetCursorType + // returns GDK_CURSOR_IS_PIXMAP. + GdkCursor* GetCustomCursor() const; #endif private: void SetCustomData(WebCore::Image* image); + // WebCore::PlatformCursor type. int type_; + gfx::Point hotspot_; + + // Custom cursor data, as 32-bit RGBA. + // Platform-inspecific because it can be serialized. gfx::Size custom_size_; std::vector<char> custom_data_; }; |