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

Unified Diff: ui/views/button_drag_utils.cc

Issue 2792183002: Delete ash-based code for Windows drag-and-drop graphics. (Closed)
Patch Set: ashdrag: addheaders Created 3 years, 8 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/views/button_drag_utils.cc
diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc
index c3bf393665994c88fb0912d92cc18120ac01859c..230fb8e87b88d9fde66fe7e1a5da8f054e636d82 100644
--- a/ui/views/button_drag_utils.cc
+++ b/ui/views/button_drag_utils.cc
@@ -5,7 +5,6 @@
#include "ui/views/button_drag_utils.h"
#include "base/strings/utf_string_conversions.h"
-#include "ui/base/dragdrop/drag_utils.h"
#include "ui/base/dragdrop/os_exchange_data.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/compositor/canvas_painter.h"
@@ -87,7 +86,7 @@ void SetDragImage(const GURL& url,
SkColor color = SK_ColorTRANSPARENT;
button.Paint(ui::CanvasPainter(&bitmap, size, raster_scale, color).context());
gfx::ImageSkia image(gfx::ImageSkiaRep(bitmap, raster_scale));
- drag_utils::SetDragImageOnDataObject(image, press_point, data);
+ data->provider().SetDragImage(image, press_point);
}
} // namespace button_drag_utils

Powered by Google App Engine
This is Rietveld 408576698