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

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: Created 8 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
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..4de63aea3ece0e67dc44243a4e2ff9829659f2bb 100644
--- a/ui/base/dragdrop/drag_utils.cc
+++ b/ui/base/dragdrop/drag_utils.cc
@@ -10,6 +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.h"
#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/font.h"
#include "ui/gfx/point.h"
@@ -61,12 +62,12 @@ void CreateDragImageForFile(const FilePath& file_name,
data_object);
}
-void SetDragImageOnDataObject(const gfx::Canvas& canvas,
+void SetDragImageOnDataObject(const gfx::CanvasSkia& canvas,
Ben Goodger (Google) 2012/03/06 15:46:58 ????
tfarina 2012/03/06 17:09:09 Done.
const gfx::Size& size,
const gfx::Point& cursor_offset,
ui::OSExchangeData* data_object) {
SetDragImageOnDataObject(
- canvas.AsCanvasSkia()->ExtractBitmap(), size, cursor_offset, data_object);
+ canvas.ExtractBitmap(), size, cursor_offset, data_object);
}
} // namespace drag_utils

Powered by Google App Engine
This is Rietveld 408576698