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

Unified Diff: ui/views/drag_utils.cc

Issue 2750253002: Reland 4e4eae4cbe6136b538a: Make download item drags look like bookmark (Closed)
Patch Set: with fix 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/button_drag_utils.h ('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 9c7251fc91f23495045ed748d95b24e29b3d0c1a..3a85cc8eb92851e60d8ebcbcb68a5b6a7077cdd0 100644
--- a/ui/views/drag_utils.cc
+++ b/ui/views/drag_utils.cc
@@ -11,7 +11,7 @@
namespace views {
-float ScaleFactorForDragFromWidget(Widget* widget) {
+float ScaleFactorForDragFromWidget(const Widget* widget) {
float device_scale = 1.0f;
if (widget && widget->GetNativeView()) {
gfx::NativeView view = widget->GetNativeView();
@@ -20,7 +20,7 @@ float ScaleFactorForDragFromWidget(Widget* widget) {
return device_scale;
}
-gfx::Canvas* GetCanvasForDragImage(Widget* widget,
+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);
« ui/views/button_drag_utils.h ('K') | « ui/views/drag_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698