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

Unified Diff: ui/views/drag_utils.h

Issue 2694023003: Make CanvasPainter raster directly to an SkBitmap (Closed)
Patch Set: tapted review Created 3 years, 10 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
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/drag_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/drag_utils.h
diff --git a/ui/views/drag_utils.h b/ui/views/drag_utils.h
index 158f5cdecab0070130b6631a52995416dea87b8a..db95cddeefe8746a048e30864dd0046bbb8e69b2 100644
--- a/ui/views/drag_utils.h
+++ b/ui/views/drag_utils.h
@@ -29,6 +29,10 @@ VIEWS_EXPORT void RunShellDrag(gfx::NativeView view,
int operation,
ui::DragDropTypes::DragEventSource source);
+// Returns the device scale for the display associated with this |widget|'s
+// native view.
+VIEWS_EXPORT float ScaleFactorForDragFromWidget(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,
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/drag_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698