Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / common / drag_traits.h
index e462680..fb3eef1 100644 (file)
@@ -11,7 +11,9 @@
 
 #define IPC_MESSAGE_START DragMsgStart
 
-IPC_ENUM_TRAITS(blink::WebDragOperation)
+IPC_ENUM_TRAITS(blink::WebDragOperation)  // Bitmask.
+IPC_ENUM_TRAITS_MAX_VALUE(ui::DragDropTypes::DragEventSource,
+                          ui::DragDropTypes::DRAG_EVENT_SOURCE_LAST)
 
 IPC_STRUCT_TRAITS_BEGIN(content::DropData::FileInfo)
   IPC_STRUCT_TRAITS_MEMBER(path)
@@ -33,8 +35,6 @@ IPC_STRUCT_TRAITS_BEGIN(content::DropData)
   IPC_STRUCT_TRAITS_MEMBER(custom_data)
 IPC_STRUCT_TRAITS_END()
 
-IPC_ENUM_TRAITS(ui::DragDropTypes::DragEventSource)
-
 IPC_STRUCT_TRAITS_BEGIN(content::DragEventSourceInfo)
   IPC_STRUCT_TRAITS_MEMBER(event_location)
   IPC_STRUCT_TRAITS_MEMBER(event_source)