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

Unified Diff: chrome/browser/cocoa/web_drag_source.h

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 | « no previous file | chrome/browser/cocoa/web_drag_source.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/web_drag_source.h
diff --git a/chrome/browser/cocoa/web_drag_source.h b/chrome/browser/cocoa/web_drag_source.h
index 623a1978437acdda531f85e26387e7c60a0e2297..425eb094f6c15d676c9b780fd200d5c6e6efb4ce 100644
--- a/chrome/browser/cocoa/web_drag_source.h
+++ b/chrome/browser/cocoa/web_drag_source.h
@@ -23,6 +23,12 @@ struct WebDropData;
// Our drop data. Should only be initialized once.
scoped_ptr<WebDropData> dropData_;
+ // The image to show as drag image. Can be nil.
+ scoped_nsobject<NSImage> dragImage_;
+
+ // The offset to draw |dragImage_| at.
+ NSPoint imageOffset_;
+
// Our pasteboard.
scoped_nsobject<NSPasteboard> pasteboard_;
@@ -41,6 +47,8 @@ struct WebDropData;
// with data types appropriate for dropData.
- (id)initWithContentsView:(TabContentsViewCocoa*)contentsView
dropData:(const WebDropData*)dropData
+ image:(NSImage*)image
+ offset:(NSPoint)offset
pasteboard:(NSPasteboard*)pboard
dragOperationMask:(NSDragOperation)dragOperationMask;
« no previous file with comments | « no previous file | chrome/browser/cocoa/web_drag_source.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698