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

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

Issue 10310056: Implement WebContentsViewWin::GetDropData() (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..728390b0f7c05e50855efeb5cd14b0f559e5b089 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;
@@ -29,6 +30,8 @@ class CONTENT_EXPORT WebDragDest : public ui::DropTarget {
WebDragDest(HWND source_hwnd, content::WebContents* contents);
virtual ~WebDragDest();
+ WebDropData* current_drop_data() const { return drop_data_.get(); }
+
void set_drag_cursor(WebKit::WebDragOperation op) {
drag_cursor_ = op;
}
@@ -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 |context_| is NULL.
+ scoped_ptr<WebDropData> drop_data_;
+
DISALLOW_COPY_AND_ASSIGN(WebDragDest);
};
« no previous file with comments | « content/browser/web_contents/web_contents_view_win.cc ('k') | content/browser/web_contents/web_drag_dest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698