|
@@ -7,6 +7,7 @@
|
|
|
#include <string>
|
|
|
|
|
|
#include "base/values.h"
|
|
|
+#include "common/draggable_region.h"
|
|
|
#include "content/public/common/common_param_traits.h"
|
|
|
#include "ipc/ipc_message_macros.h"
|
|
|
|
|
@@ -15,6 +16,11 @@
|
|
|
|
|
|
#define IPC_MESSAGE_START ShellMsgStart
|
|
|
|
|
|
+IPC_STRUCT_TRAITS_BEGIN(atom::DraggableRegion)
|
|
|
+ IPC_STRUCT_TRAITS_MEMBER(draggable)
|
|
|
+ IPC_STRUCT_TRAITS_MEMBER(bounds)
|
|
|
+IPC_STRUCT_TRAITS_END()
|
|
|
+
|
|
|
IPC_MESSAGE_ROUTED2(AtomViewHostMsg_Message,
|
|
|
std::string /* channel */,
|
|
|
ListValue /* arguments */)
|
|
@@ -27,3 +33,7 @@ IPC_SYNC_MESSAGE_ROUTED2_1(AtomViewHostMsg_Message_Sync,
|
|
|
IPC_MESSAGE_ROUTED2(AtomViewMsg_Message,
|
|
|
std::string /* channel */,
|
|
|
ListValue /* arguments */)
|
|
|
+
|
|
|
+// Sent by the renderer when the draggable regions are updated.
|
|
|
+IPC_MESSAGE_ROUTED1(AtomViewHostMsg_UpdateDraggableRegions,
|
|
|
+ std::vector<atom::DraggableRegion> /* regions */)
|