diff options
Diffstat (limited to 'views/drag_utils.cc')
-rw-r--r-- | views/drag_utils.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/drag_utils.cc b/views/drag_utils.cc index 73ecedb..8fbd79a 100644 --- a/views/drag_utils.cc +++ b/views/drag_utils.cc @@ -11,6 +11,7 @@ #include "base/logging.h" #include "base/utf_string_conversions.h" #include "gfx/canvas.h" +#include "gfx/canvas_skia.h" #include "gfx/font.h" #include "googleurl/src/gurl.h" #include "grit/app_resources.h" @@ -48,6 +49,7 @@ void SetURLAndDragImage(const GURL& url, button.SetBounds(0, 0, prefsize.width(), prefsize.height()); // Render the image. + // TODO(beng): Convert to CanvasSkia gfx::Canvas canvas(prefsize.width(), prefsize.height(), false); button.Paint(&canvas, true); SetDragImageOnDataObject(canvas, prefsize, @@ -68,6 +70,7 @@ void CreateDragImageForFile(const FilePath::StringType& file_name, // Add +2 here to allow room for the halo. const int height = font.height() + icon->height() + kLinkDragImageVPadding + 2; + // TODO(beng): Convert to CanvasSkia gfx::Canvas canvas(width, height, false /* translucent */); // Paint the icon. |