2013-04-21 03:01:04 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
2014-04-25 09:49:37 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-04-21 03:01:04 +00:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// Multiply-included file, no traditional include guard.
|
|
|
|
|
2014-03-16 01:37:04 +00:00
|
|
|
#include "atom/common/draggable_region.h"
|
2013-12-10 06:14:05 +00:00
|
|
|
#include "base/strings/string16.h"
|
2013-04-21 03:01:04 +00:00
|
|
|
#include "base/values.h"
|
|
|
|
#include "content/public/common/common_param_traits.h"
|
|
|
|
#include "ipc/ipc_message_macros.h"
|
|
|
|
|
|
|
|
// The message starter should be declared in ipc/ipc_message_start.h. Since
|
2014-05-07 06:34:53 +00:00
|
|
|
// we don't want to patch Chromium, we just pretend to be Content Shell.
|
2013-04-21 03:01:04 +00:00
|
|
|
|
|
|
|
#define IPC_MESSAGE_START ShellMsgStart
|
|
|
|
|
2013-09-05 11:46:12 +00:00
|
|
|
IPC_STRUCT_TRAITS_BEGIN(atom::DraggableRegion)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(draggable)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(bounds)
|
|
|
|
IPC_STRUCT_TRAITS_END()
|
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
IPC_MESSAGE_ROUTED2(AtomViewHostMsg_Message,
|
2013-09-20 14:55:42 +00:00
|
|
|
string16 /* channel */,
|
2013-04-22 13:32:48 +00:00
|
|
|
ListValue /* arguments */)
|
2013-04-21 03:01:04 +00:00
|
|
|
|
2013-04-23 13:52:19 +00:00
|
|
|
IPC_SYNC_MESSAGE_ROUTED2_1(AtomViewHostMsg_Message_Sync,
|
2013-09-20 14:55:42 +00:00
|
|
|
string16 /* channel */,
|
2013-04-23 13:52:19 +00:00
|
|
|
ListValue /* arguments */,
|
2013-09-20 14:55:42 +00:00
|
|
|
string16 /* result (in JSON) */)
|
2013-04-23 13:52:19 +00:00
|
|
|
|
2013-04-23 04:18:07 +00:00
|
|
|
IPC_MESSAGE_ROUTED2(AtomViewMsg_Message,
|
2013-09-20 14:55:42 +00:00
|
|
|
string16 /* channel */,
|
2013-04-22 13:32:48 +00:00
|
|
|
ListValue /* arguments */)
|
2013-09-05 11:46:12 +00:00
|
|
|
|
|
|
|
// Sent by the renderer when the draggable regions are updated.
|
|
|
|
IPC_MESSAGE_ROUTED1(AtomViewHostMsg_UpdateDraggableRegions,
|
|
|
|
std::vector<atom::DraggableRegion> /* regions */)
|