summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdropdata.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 01:27:55 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 01:27:55 +0000
commit58377e2edb08dabeeba8a01bfb4484eb61527b4a (patch)
tree25fe434821c4537d799a316c91a995394ec00efb /webkit/glue/webdropdata.h
parent24c289f856db14a85e5840ad0132512ef59c5c5f (diff)
downloadchromium_src-58377e2edb08dabeeba8a01bfb4484eb61527b4a.zip
chromium_src-58377e2edb08dabeeba8a01bfb4484eb61527b4a.tar.gz
chromium_src-58377e2edb08dabeeba8a01bfb4484eb61527b4a.tar.bz2
Add an identity (id) to system drag & drop.
Used for gears file drag & drop in chrome, assign a drag id (identity) to each drag and drop session. Send the identity to the renderer WebViewImpl in drag enter notifications, provide a getter method. BUG=7995 Original patch by noel.gordon@gmail.com in: http://codereview.chromium.org/28108/show Review URL: http://codereview.chromium.org/28158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdropdata.h')
-rw-r--r--webkit/glue/webdropdata.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/webkit/glue/webdropdata.h b/webkit/glue/webdropdata.h
index 9afcd04..7c9fe19 100644
--- a/webkit/glue/webdropdata.h
+++ b/webkit/glue/webdropdata.h
@@ -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|.