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

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

Issue 2793133002: ui: Remove SkCanvas methods from drag utils. (Closed)
Patch Set: Created 3 years, 9 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 45c6f07981a9a5e7d495086fb7ddd54fa2fde443..64da198197dd1a4b86827e3fb423258c7b09f19e 100644
--- a/ui/base/dragdrop/drag_utils.cc
+++ b/ui/base/dragdrop/drag_utils.cc
@@ -5,18 +5,9 @@
#include "ui/base/dragdrop/drag_utils.h"
#include "ui/base/dragdrop/os_exchange_data.h"
-#include "ui/gfx/canvas.h"
-#include "ui/gfx/image/image_skia.h"
namespace drag_utils {
-void SetDragImageOnDataObject(const gfx::Canvas& canvas,
- const gfx::Vector2d& cursor_offset,
- ui::OSExchangeData* data_object) {
- gfx::ImageSkia image = gfx::ImageSkia(canvas.ExtractImageRep());
- SetDragImageOnDataObject(image, cursor_offset, data_object);
-}
-
#if !defined(OS_WIN)
void SetDragImageOnDataObject(const gfx::ImageSkia& image_skia,
const gfx::Vector2d& cursor_offset,

Powered by Google App Engine
This is Rietveld 408576698