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

Unified Diff: content/browser/web_contents/web_contents_drag_win.cc

Issue 10447053: Converts remainder of ui and chrome/browser/ui/views/frame to use ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sorted headers in modified files Created 8 years, 7 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: content/browser/web_contents/web_contents_drag_win.cc
diff --git a/content/browser/web_contents/web_contents_drag_win.cc b/content/browser/web_contents/web_contents_drag_win.cc
index a07c61f7d019fd573c7c40af4b2f15d935702b87..010cb5710d109a6c1a36e5624888cdce3f409a61 100644
--- a/content/browser/web_contents/web_contents_drag_win.cc
+++ b/content/browser/web_contents/web_contents_drag_win.cc
@@ -28,6 +28,7 @@
#include "ui/base/clipboard/clipboard_util_win.h"
#include "ui/base/clipboard/custom_data_helper.h"
#include "ui/base/dragdrop/drag_utils.h"
+#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/size.h"
#include "webkit/glue/webdropdata.h"
@@ -297,8 +298,8 @@ void WebContentsDragWin::DoDragging(const WebDropData& drop_data,
// Set drag image.
if (!image.isNull()) {
- drag_utils::SetDragImageOnDataObject(
- image, gfx::Size(image.width(), image.height()), image_offset, &data);
+ drag_utils::SetDragImageOnDataObject(gfx::ImageSkia(image),
+ gfx::Size(image.width(), image.height()), image_offset, &data);
}
// We need to enable recursive tasks on the message loop so we can get

Powered by Google App Engine
This is Rietveld 408576698