summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor.h
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 18:45:26 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 18:45:26 +0000
commit2b99be2e12968b5d3d4f5818d6a76a8d42d818bc (patch)
tree89d180b90aa94bed3fa0d887bbf44e229b164cdf /webkit/glue/webcursor.h
parent03f95811129d967c67942cbc8fd20572476c95d7 (diff)
downloadchromium_src-2b99be2e12968b5d3d4f5818d6a76a8d42d818bc.zip
chromium_src-2b99be2e12968b5d3d4f5818d6a76a8d42d818bc.tar.gz
chromium_src-2b99be2e12968b5d3d4f5818d6a76a8d42d818bc.tar.bz2
Custom cursor support.
This is necessary for Google Maps, and also cuts out another NOTIMPLEMENTED(). Review URL: http://codereview.chromium.org/10734 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r--webkit/glue/webcursor.h9
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_;
};