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

Unified Diff: content/browser/web_contents/web_drag_source_mac.h

Issue 2509933002: Drag-and-drop: Target drag messages (the sequel). (Closed)
Patch Set: Addressed additional comments by avi@, dcheng@. Created 4 years, 1 month 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_drag_source_mac.h
diff --git a/content/browser/web_contents/web_drag_source_mac.h b/content/browser/web_contents/web_drag_source_mac.h
index 97590f86706cf3759406dc6507d7c01aedc612cc..0bc51eb9292ccf7edb6751ef5125f7103acea6fd 100644
--- a/content/browser/web_contents/web_drag_source_mac.h
+++ b/content/browser/web_contents/web_drag_source_mac.h
@@ -9,10 +9,12 @@
#include "base/files/file_path.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/mac/scoped_nsobject.h"
+#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "url/gurl.h"
namespace content {
+class RenderWidgetHostImpl;
class WebContentsImpl;
struct DropData;
}
@@ -55,6 +57,9 @@ CONTENT_EXPORT
// The file UTI associated with the file drag, if any.
base::ScopedCFTypeRef<CFStringRef> fileUTI_;
+
+ // Tracks the RenderWidgetHost where the current drag started.
+ base::WeakPtr<content::RenderWidgetHostImpl> dragStartRWH_;
}
// Initialize a WebDragSource object for a drag (originating on the given
@@ -63,6 +68,7 @@ CONTENT_EXPORT
- (id)initWithContents:(content::WebContentsImpl*)contents
view:(NSView*)contentsView
dropData:(const content::DropData*)dropData
+ sourceRWH:(content::RenderWidgetHostImpl*)sourceRWH
image:(NSImage*)image
offset:(NSPoint)offset
pasteboard:(NSPasteboard*)pboard
« no previous file with comments | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/browser/web_contents/web_drag_source_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698