summaryrefslogtreecommitdiffstats
path: root/views/drag_utils.cc
diff options
context:
space:
mode:
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