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

Unified Diff: content/common/drag_traits.h

Issue 1723763002: Add WebDragData to blink::WebView::dragtargetDrop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 6 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 | « content/common/drag_messages.h ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/drag_traits.h
diff --git a/content/common/drag_traits.h b/content/common/drag_traits.h
index 0f22b5aef133009b4d614e61802b2cc1fe44d7a1..927881585f2cf24d15e8e4b8e85fe9ff14782115 100644
--- a/content/common/drag_traits.h
+++ b/content/common/drag_traits.h
@@ -14,6 +14,8 @@
IPC_ENUM_TRAITS(blink::WebDragOperation) // Bitmask.
IPC_ENUM_TRAITS_MAX_VALUE(ui::DragDropTypes::DragEventSource,
ui::DragDropTypes::DRAG_EVENT_SOURCE_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(content::DropData::Kind,
+ content::DropData::Kind::LAST)
IPC_STRUCT_TRAITS_BEGIN(ui::FileInfo)
IPC_STRUCT_TRAITS_MEMBER(path)
@@ -42,6 +44,13 @@ IPC_STRUCT_TRAITS_BEGIN(content::DropData::FileSystemFileInfo)
IPC_STRUCT_TRAITS_MEMBER(size)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::DropData::Metadata)
+ IPC_STRUCT_TRAITS_MEMBER(kind)
+ IPC_STRUCT_TRAITS_MEMBER(mime_type)
+ IPC_STRUCT_TRAITS_MEMBER(filename)
+ IPC_STRUCT_TRAITS_MEMBER(file_system_url)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::DragEventSourceInfo)
IPC_STRUCT_TRAITS_MEMBER(event_location)
IPC_STRUCT_TRAITS_MEMBER(event_source)
« no previous file with comments | « content/common/drag_messages.h ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698