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

Unified Diff: ui/base/dragdrop/drag_utils.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 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
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/drag_utils.cc
diff --git a/ui/base/dragdrop/drag_utils.cc b/ui/base/dragdrop/drag_utils.cc
index 70cfb7a0eb79eab73af5cbf05112df3c6624a8da..4ef00aefa17d2741fd60e24bfb002ef7ed41717c 100644
--- a/ui/base/dragdrop/drag_utils.cc
+++ b/ui/base/dragdrop/drag_utils.cc
@@ -10,7 +10,7 @@
#include "googleurl/src/gurl.h"
#include "ui/base/dragdrop/os_exchange_data.h"
#include "ui/base/resource/resource_bundle.h"
-#include "ui/gfx/canvas_skia.h"
+#include "ui/gfx/canvas.h"
#include "ui/gfx/font.h"
#include "ui/gfx/point.h"
#include "ui/gfx/size.h"
@@ -38,7 +38,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(gfx::Size(width, height), false /* translucent */);
+ gfx::Canvas canvas(gfx::Size(width, height), false /* translucent */);
// Paint the icon.
canvas.DrawBitmapInt(*icon, (width - icon->width()) / 2, 0);
@@ -65,8 +65,8 @@ void SetDragImageOnDataObject(const gfx::Canvas& canvas,
const gfx::Size& size,
const gfx::Point& cursor_offset,
ui::OSExchangeData* data_object) {
- SetDragImageOnDataObject(
- canvas.AsCanvasSkia()->ExtractBitmap(), size, cursor_offset, data_object);
+ SetDragImageOnDataObject(canvas.ExtractBitmap(), size, cursor_offset,
+ data_object);
}
} // namespace drag_utils
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698