Chromium Code Reviews| Index: ui/base/dragdrop/drag_utils_win.cc |
| =================================================================== |
| --- ui/base/dragdrop/drag_utils_win.cc (revision 175112) |
| +++ ui/base/dragdrop/drag_utils_win.cc (working copy) |
| @@ -68,6 +68,12 @@ |
| // Attach 'bitmap' to the data_object. |
| SetDragImageOnDataObject(bitmap, size, cursor_offset, |
| ui::OSExchangeDataProviderWin::GetIDataObject(*data_object)); |
| + |
| + // TODO: the above code is used in non-Ash, while below is used in Ash. If we |
| + // could figure this context out then we wouldn't do unnecessary work. However |
| + // as it stands getting this information in ui/base would be a layering |
| + // violation. |
|
jam
2013/01/04 22:23:02
Basically this code block is doing thw ork for bot
|
| + data_object->provider().SetDragImage(image_skia, cursor_offset); |
| } |
| } // namespace drag_utils |