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

Unified Diff: chrome/renderer/render_view.cc

Issue 1539018: Mac: Make image dragging 162.4% more awesome. (Closed)
Patch Set: '' Created 10 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 | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 59a862a4696e38862d671eb9670ccc1e04236839..50c427748250db9d48ce0dcfa0e9759d22d696e6 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -128,6 +128,8 @@
#include "gfx/native_theme_win.h"
#elif defined(USE_X11)
#include "third_party/WebKit/WebKit/chromium/public/linux/WebRenderTheme.h"
+#elif defined(OS_MACOSX)
+#include "skia/ext/skia_utils_mac.h"
#endif
using appcache::WebApplicationCacheHostImpl;
@@ -1905,8 +1907,7 @@ void RenderView::startDragging(const WebDragData& data,
#if WEBKIT_USING_SKIA
SkBitmap bitmap(image.getSkBitmap());
#elif WEBKIT_USING_CG
- // Needs implementing: http://crbug.com/11457
- SkBitmap bitmap;
+ SkBitmap bitmap = gfx::CGImageToSkBitmap(image.getCGImageRef());
#endif
Send(new ViewHostMsg_StartDragging(routing_id_,
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698