Chromium Code Reviews| Index: components/arc/common/arc_host_messages.h |
| diff --git a/components/arc/common/arc_host_messages.h b/components/arc/common/arc_host_messages.h |
| index d4d72fe27c79c536259e795db5f6a4b69ae061cf..52f56117457231c3bc80f5bae544cb9d3bb15094 100644 |
| --- a/components/arc/common/arc_host_messages.h |
| +++ b/components/arc/common/arc_host_messages.h |
| @@ -7,6 +7,38 @@ |
| #include "ipc/ipc_message_macros.h" |
| +// Using relative paths since this file is shared between chromium and android. |
| +#include "arc_notification_types.h" |
| + |
| #define IPC_MESSAGE_START ArcInstanceHostMsgStart |
| +// Enum for notification type. |
| +IPC_ENUM_TRAITS_MAX_VALUE(arc::ArcNotificationType, |
| + arc::ArcNotificationType::NOTIFICATION_TYPE_LAST) |
| + |
| +// Struct for notification data. |
| +IPC_STRUCT_TRAITS_BEGIN(arc::ArcNotificationData) |
| + IPC_STRUCT_TRAITS_MEMBER(key) |
| + IPC_STRUCT_TRAITS_MEMBER(type) |
| + IPC_STRUCT_TRAITS_MEMBER(message) |
| + IPC_STRUCT_TRAITS_MEMBER(title) |
| + IPC_STRUCT_TRAITS_MEMBER(icon_mimetype) |
| + IPC_STRUCT_TRAITS_MEMBER(icon_data) |
| + IPC_STRUCT_TRAITS_MEMBER(priority) |
| + IPC_STRUCT_TRAITS_MEMBER(timestamp) |
| + IPC_STRUCT_TRAITS_MEMBER(progress_current) |
| + IPC_STRUCT_TRAITS_MEMBER(progress_max) |
| +IPC_STRUCT_TRAITS_END() |
| + |
| IPC_MESSAGE_CONTROL0(ArcInstanceHostMsg_InstanceReady) |
| + |
| +// Notifies that a notification is posted (created or updated) on the container |
|
elijahtaylor1
2015/11/27 05:42:49
s/on the container side/from Android/
yoshiki
2015/11/27 10:48:06
Done.
|
| +// side with the updated notification data. |
| +// |notification_data| is the data of notification (id, texts, icon and ...). |
| +IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_NotificationPosted, |
| + arc::ArcNotificationData /* notification_data */); |
| + |
| +// Notifies that a notification is removed on the container side. |
|
elijahtaylor1
2015/11/27 05:42:49
same
yoshiki
2015/11/27 10:48:06
Done.
|
| +// |key| is the identifier of notification. |
| +IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_NotificationRemoved, |
| + std::string /* key */); |