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

Unified Diff: ui/views/drag_utils.h

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
Index: ui/views/drag_utils.h
diff --git a/ui/views/drag_utils.h b/ui/views/drag_utils.h
index db95cddeefe8746a048e30864dd0046bbb8e69b2..5f2c5b52316806c5b235a9dd16b2074746e1b232 100644
--- a/ui/views/drag_utils.h
+++ b/ui/views/drag_utils.h
@@ -31,11 +31,11 @@ VIEWS_EXPORT void RunShellDrag(gfx::NativeView view,
// Returns the device scale for the display associated with this |widget|'s
// native view.
-VIEWS_EXPORT float ScaleFactorForDragFromWidget(Widget* widget);
+VIEWS_EXPORT float ScaleFactorForDragFromWidget(const Widget* widget);
// Returns a canvas that can be used to draw the drag image. Caller owns the
// returned object. |widget| is Widget hosting the view being dragged.
-VIEWS_EXPORT gfx::Canvas* GetCanvasForDragImage(Widget* widget,
+VIEWS_EXPORT gfx::Canvas* GetCanvasForDragImage(const Widget* widget,
const gfx::Size& canvas_size);
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698