diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 01:27:55 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 01:27:55 +0000 |
commit | 58377e2edb08dabeeba8a01bfb4484eb61527b4a (patch) | |
tree | 25fe434821c4537d799a316c91a995394ec00efb /chrome/common/render_messages.h | |
parent | 24c289f856db14a85e5840ad0132512ef59c5c5f (diff) | |
download | chromium_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 'chrome/common/render_messages.h')
-rwxr-xr-x | chrome/common/render_messages.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index e2a0aa0..7fa88de 100755 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -1539,6 +1539,7 @@ template <> struct ParamTraits<WebDropData> { typedef WebDropData param_type; static void Write(Message* m, const param_type& p) { + WriteParam(m, p.identity); WriteParam(m, p.url); WriteParam(m, p.url_title); WriteParam(m, p.file_extension); @@ -1551,6 +1552,7 @@ struct ParamTraits<WebDropData> { } static bool Read(const Message* m, void** iter, param_type* p) { return + ReadParam(m, iter, &p->identity) && ReadParam(m, iter, &p->url) && ReadParam(m, iter, &p->url_title) && ReadParam(m, iter, &p->file_extension) && |