diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 00:10:13 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 00:10:13 +0000 |
commit | fc22f9ef9b459af24ca666e44350d0c8b27b312b (patch) | |
tree | ef042cfcc658dc359e2958cdd2d063cf2d4d814a /ui/views/drag_utils.cc | |
parent | e24f876c537646cab5a9e8492658f570ccd7da4a (diff) | |
download | chromium_src-fc22f9ef9b459af24ca666e44350d0c8b27b312b.zip chromium_src-fc22f9ef9b459af24ca666e44350d0c8b27b312b.tar.gz chromium_src-fc22f9ef9b459af24ca666e44350d0c8b27b312b.tar.bz2 |
Make CanvasSkia take a gfx::Size as the first parameter.
BUG=100898
R=pkasting@chromium.org
TBR=ben@chromium.org,stevenjb@chromium.org
Review URL: http://codereview.chromium.org/8990003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/drag_utils.cc')
-rw-r--r-- | ui/views/drag_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc index 181a599..ae2a3e9 100644 --- a/ui/views/drag_utils.cc +++ b/ui/views/drag_utils.cc @@ -47,7 +47,7 @@ void SetURLAndDragImage(const GURL& url, button.SetBounds(0, 0, prefsize.width(), prefsize.height()); // Render the image. - gfx::CanvasSkia canvas(prefsize.width(), prefsize.height(), false); + gfx::CanvasSkia canvas(prefsize, false); button.PaintButton(&canvas, views::TextButton::PB_FOR_DRAG); SetDragImageOnDataObject(canvas, prefsize, gfx::Point(prefsize.width() / 2, prefsize.height() / 2), data); @@ -67,7 +67,7 @@ void CreateDragImageForFile(const FilePath& file_name, // Add +2 here to allow room for the halo. const int height = font.GetHeight() + icon->height() + kLinkDragImageVPadding + 2; - gfx::CanvasSkia canvas(width, height, false /* translucent */); + gfx::CanvasSkia canvas(gfx::Size(width, height), false /* translucent */); // Paint the icon. canvas.DrawBitmapInt(*icon, (width - icon->width()) / 2, 0); |