summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor_win.cc
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_win.cc
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_win.cc')
-rw-r--r--webkit/glue/webcursor_win.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/webkit/glue/webcursor_win.cc b/webkit/glue/webcursor_win.cc
index 8671367..f4d05d8 100644
--- a/webkit/glue/webcursor_win.cc
+++ b/webkit/glue/webcursor_win.cc
@@ -189,15 +189,3 @@ void WebCursor::InitFromCursor(HCURSOR cursor) {
// TODO(iyengar) Add support for custom cursors.
*this = WebCursor(ToPlatformCursorType(cursor));
}
-
-void WebCursor::SetCustomData(WebCore::Image* image) {
- WebCore::NativeImagePtr image_ptr = image->nativeImageForCurrentFrame();
- if (!image_ptr)
- return;
-
- SkAutoLockPixels bitmap_lock(*image_ptr);
- custom_data_.resize(image_ptr->getSize());
- memcpy(&custom_data_[0], image_ptr->getPixels(), image_ptr->getSize());
- custom_size_.set_width(image_ptr->width());
- custom_size_.set_height(image_ptr->height());
-}