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

Unified Diff: content/common/drag_traits.h

Issue 11088043: browser-plugin: Allow accepting drag-n-drop events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/common/drag_traits.h
diff --git a/content/common/drag_traits.h b/content/common/drag_traits.h
new file mode 100644
index 0000000000000000000000000000000000000000..ccd841bbef397b5e89477c5318bde6efffbf8d5b
--- /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()

Powered by Google App Engine
This is Rietveld 408576698