Index: ui/base/dragdrop/drag_utils_win.cc |
diff --git a/ui/base/dragdrop/drag_utils_win.cc b/ui/base/dragdrop/drag_utils_win.cc |
index f7d05ee686140b21d91fed635717221b65512549..9a3ab56ef32c7f04c6d5880407dd7ccbcb2e426e 100644 |
--- a/ui/base/dragdrop/drag_utils_win.cc |
+++ b/ui/base/dragdrop/drag_utils_win.cc |
@@ -21,7 +21,7 @@ namespace drag_utils { |
static void SetDragImageOnDataObject(HBITMAP hbitmap, |
const gfx::Size& size, |
- const gfx::Point& cursor_offset, |
+ const gfx::Vector2d& cursor_offset, |
IDataObject* data_object) { |
base::win::ScopedComPtr<IDragSourceHelper> helper; |
HRESULT rv = CoCreateInstance(CLSID_DragDropHelper, 0, CLSCTX_INPROC_SERVER, |
@@ -31,7 +31,7 @@ static void SetDragImageOnDataObject(HBITMAP hbitmap, |
sdi.sizeDragImage = size.ToSIZE(); |
sdi.crColorKey = 0xFFFFFFFF; |
sdi.hbmpDragImage = hbitmap; |
- sdi.ptOffset = cursor_offset.ToPOINT(); |
+ sdi.ptOffset = gfx::PointAtOffsetFromOrigin(cursor_offset).ToPOINT(); |
helper->InitializeFromBitmap(&sdi, data_object); |
} |
} |
@@ -56,7 +56,7 @@ static HBITMAP CreateHBITMAPFromSkBitmap(const SkBitmap& sk_bitmap) { |
void SetDragImageOnDataObject(const gfx::ImageSkia& image_skia, |
const gfx::Size& size, |
- const gfx::Point& cursor_offset, |
+ const gfx::Vector2d& cursor_offset, |
ui::OSExchangeData* data_object) { |
DCHECK(data_object && !size.IsEmpty()); |
// InitializeFromBitmap() doesn't expect an alpha channel and is confused |