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

Unified Diff: webkit/glue/webdropdata.h

Issue 28108: Add an identity (id) to system drag & drop. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 10 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/common/render_messages.h ('k') | webkit/glue/webview.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webdropdata.h
===================================================================
--- webkit/glue/webdropdata.h (revision 10310)
+++ webkit/glue/webdropdata.h (working copy)
@@ -16,7 +16,15 @@
struct IDataObject;
struct WebDropData {
- // User is dropping a link on the webview.
+ // Construct with a given drag identity. Note: identity is an int32 because
+ // it is passed over the renderer NPAPI interface to gears.
+ explicit WebDropData(int32 drag_identity) : identity(drag_identity) {}
+ int32 identity;
+
+ // For default constructions, use drag |identity| 0.
+ WebDropData() : identity(0) {}
+
+ // User is dragging a link into the webview.
GURL url;
std::wstring url_title; // The title associated with |url|.
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/webview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698