Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: ui/base/dragdrop/drag_utils.cc

Issue 1964283002: MacViews: Implemented Drag & Drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for dcheng Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/dragdrop/drag_utils.cc
diff --git a/ui/base/dragdrop/drag_utils.cc b/ui/base/dragdrop/drag_utils.cc
index 3e69b15c8c4e563ff3a6c457e334862f736a54ad..4b63fbbaccc0c7ca4d30e9a2b820ff279763e854 100644
--- a/ui/base/dragdrop/drag_utils.cc
+++ b/ui/base/dragdrop/drag_utils.cc
@@ -103,4 +103,12 @@ void SetDragImageOnDataObject(const gfx::Canvas& canvas,
SetDragImageOnDataObject(image, cursor_offset, data_object);
}
+#if !defined(OS_WIN)
+void SetDragImageOnDataObject(const gfx::ImageSkia& image_skia,
+ const gfx::Vector2d& cursor_offset,
+ ui::OSExchangeData* data_object) {
+ data_object->provider().SetDragImage(image_skia, cursor_offset);
+}
+#endif
+
} // namespace drag_utils

Powered by Google App Engine
This is Rietveld 408576698