summaryrefslogtreecommitdiffstats
path: root/content/common/drag_traits.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 00:19:03 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 00:19:03 +0000
commit972cdd84b75d4d6378233d5532d384985b23c56d (patch)
treef774318cb733aefc0f190c7e096706a5c58aa673 /content/common/drag_traits.h
parent6fe635d08fc4956cdfc26d2a9ac46f85f5b36214 (diff)
downloadchromium_src-972cdd84b75d4d6378233d5532d384985b23c56d.zip
chromium_src-972cdd84b75d4d6378233d5532d384985b23c56d.tar.gz
chromium_src-972cdd84b75d4d6378233d5532d384985b23c56d.tar.bz2
browser-plugin: Allow accepting drag-n-drop events.
This allows dragging content from within the embedder (or other windows) into the browser-tag plugin. BUG=120264 Review URL: https://codereview.chromium.org/11088043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/drag_traits.h')
-rw-r--r--content/common/drag_traits.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/content/common/drag_traits.h b/content/common/drag_traits.h
new file mode 100644
index 0000000..ccd841b
--- /dev/null
+++ b/content/common/drag_traits.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/common/common_param_traits.h"
+#include "ipc/ipc_message_macros.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
+#include "ui/gfx/point.h"
+#include "webkit/glue/webdropdata.h"
+
+#define IPC_MESSAGE_START DragMsgStart
+
+IPC_ENUM_TRAITS(WebKit::WebDragOperation)
+
+IPC_STRUCT_TRAITS_BEGIN(WebDropData::FileInfo)
+ IPC_STRUCT_TRAITS_MEMBER(path)
+ IPC_STRUCT_TRAITS_MEMBER(display_name)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(WebDropData)
+ IPC_STRUCT_TRAITS_MEMBER(url)
+ IPC_STRUCT_TRAITS_MEMBER(url_title)
+ IPC_STRUCT_TRAITS_MEMBER(download_metadata)
+ IPC_STRUCT_TRAITS_MEMBER(referrer_policy)
+ IPC_STRUCT_TRAITS_MEMBER(filenames)
+ IPC_STRUCT_TRAITS_MEMBER(filesystem_id)
+ IPC_STRUCT_TRAITS_MEMBER(text)
+ IPC_STRUCT_TRAITS_MEMBER(html)
+ IPC_STRUCT_TRAITS_MEMBER(html_base_url)
+ IPC_STRUCT_TRAITS_MEMBER(file_description_filename)
+ IPC_STRUCT_TRAITS_MEMBER(file_contents)
+ IPC_STRUCT_TRAITS_MEMBER(custom_data)
+IPC_STRUCT_TRAITS_END()