diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 07:12:22 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 07:12:22 +0000 |
commit | 16f17f5edd89d6b6a41709a9946a0183f5754c35 (patch) | |
tree | 1f887f3366390790c28f7b6b92a77f64994e48e6 /views/drag_utils.h | |
parent | b9a4ea7fbdc54868b60d50bc5fade451718dec23 (diff) | |
download | chromium_src-16f17f5edd89d6b6a41709a9946a0183f5754c35.zip chromium_src-16f17f5edd89d6b6a41709a9946a0183f5754c35.tar.gz chromium_src-16f17f5edd89d6b6a41709a9946a0183f5754c35.tar.bz2 |
Chrome/win: Show preview images when dragging images.
BUG=11457
TEST=Go to google.com, drag logo around. Should be attached to cursor.
Review URL: http://codereview.chromium.org/2870026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/drag_utils.h')
-rw-r--r-- | views/drag_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/views/drag_utils.h b/views/drag_utils.h index 974d648..cec512a 100644 --- a/views/drag_utils.h +++ b/views/drag_utils.h @@ -42,6 +42,14 @@ void SetDragImageOnDataObject(const gfx::Canvas& canvas, const gfx::Size& size, const gfx::Point& cursor_offset, OSExchangeData* data_object); +// +// Sets the drag image on data_object from the supplied bitmap. width/height +// are the size of the image to use, and the offsets give the location of +// the hotspot for the drag image. +void SetDragImageOnDataObject(const SkBitmap& bitmap, + const gfx::Size& size, + const gfx::Point& cursor_offset, + OSExchangeData* data_object); } // namespace drag_utils #endif // #ifndef VIEWS_DRAG_UTILS_H_ |