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

Unified Diff: ui/views/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
« ui/views/controls/menu/menu_controller.cc ('K') | « ui/views/drag_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/drag_utils.cc
diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc
index 3a85cc8eb92851e60d8ebcbcb68a5b6a7077cdd0..3f27fb24a7021ecefeb65dfa5b0d19ec228e79c9 100644
--- a/ui/views/drag_utils.cc
+++ b/ui/views/drag_utils.cc
@@ -5,8 +5,6 @@
#include "ui/views/drag_utils.h"
#include "ui/base/layout.h"
-#include "ui/gfx/canvas.h"
-#include "ui/gfx/geometry/size.h"
#include "ui/views/widget/widget.h"
namespace views {
@@ -20,10 +18,4 @@ float ScaleFactorForDragFromWidget(const Widget* widget) {
return device_scale;
}
-gfx::Canvas* GetCanvasForDragImage(const Widget* widget,
- const gfx::Size& canvas_size) {
- float device_scale = ScaleFactorForDragFromWidget(widget);
- return new gfx::Canvas(canvas_size, device_scale, false);
-}
-
} // namespace views
« ui/views/controls/menu/menu_controller.cc ('K') | « ui/views/drag_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698