summaryrefslogtreecommitdiffstats
path: root/views/drag_utils.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 07:12:22 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 07:12:22 +0000
commit16f17f5edd89d6b6a41709a9946a0183f5754c35 (patch)
tree1f887f3366390790c28f7b6b92a77f64994e48e6 /views/drag_utils.cc
parentb9a4ea7fbdc54868b60d50bc5fade451718dec23 (diff)
downloadchromium_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.cc')
-rw-r--r--views/drag_utils.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/views/drag_utils.cc b/views/drag_utils.cc
index 8fbd79a..3b9f95b 100644
--- a/views/drag_utils.cc
+++ b/views/drag_utils.cc
@@ -95,4 +95,12 @@ void CreateDragImageForFile(const FilePath::StringType& file_name,
data_object);
}
+void SetDragImageOnDataObject(const gfx::Canvas& canvas,
+ const gfx::Size& size,
+ const gfx::Point& cursor_offset,
+ OSExchangeData* data_object) {
+ SetDragImageOnDataObject(
+ canvas.ExtractBitmap(), size, cursor_offset, data_object);
+}
+
} // namespace drag_utils