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

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

Issue 10386014: Implement WebContentsView::GetDropData for Mac; disable on Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_drag_dest_win.h
diff --git a/content/browser/web_contents/web_drag_dest_win.h b/content/browser/web_contents/web_drag_dest_win.h
index ffa53c797398ed599ebd22854b463beb818aa2a3..921a43d70fec0e4b216beab717a84010143a02c0 100644
--- a/content/browser/web_contents/web_drag_dest_win.h
+++ b/content/browser/web_contents/web_drag_dest_win.h
@@ -10,6 +10,7 @@
#include "content/common/content_export.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
#include "ui/base/dragdrop/drop_target.h"
+#include "webkit/glue/webdropdata.h"
class InterstitialDropTarget;
@@ -36,6 +37,8 @@ class CONTENT_EXPORT WebDragDest : public ui::DropTarget {
content::WebDragDestDelegate* delegate() const { return delegate_; }
void set_delegate(content::WebDragDestDelegate* d) { delegate_ = d; }
+ WebDropData* current_drop_data() const { return drop_data_.get(); }
+
protected:
virtual DWORD OnDragEnter(IDataObject* data_object,
DWORD key_state,
@@ -75,6 +78,9 @@ class CONTENT_EXPORT WebDragDest : public ui::DropTarget {
// A delegate that can receive drag information about drag events.
content::WebDragDestDelegate* delegate_;
+ // The data for the current drag, or NULL if none is in progress.
+ scoped_ptr<WebDropData> drop_data_;
+
DISALLOW_COPY_AND_ASSIGN(WebDragDest);
};

Powered by Google App Engine
This is Rietveld 408576698