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 116de0cce2b05582ce52d856229d562f858f42b5..f1519920d1713f1f276940b6f5cd9162a7f50ee2 100644 |
--- a/components/arc/common/arc_host_messages.h |
+++ b/components/arc/common/arc_host_messages.h |
@@ -7,7 +7,9 @@ |
#include "ipc/ipc_message_macros.h" |
-#include "components/arc/common/arc_message_types.h" |
+// Using relative paths since this file is shared between chromium and android. |
+#include "arc_message_types.h" |
+#include "arc_notification_types.h" |
#define IPC_MESSAGE_START ArcInstanceHostMsgStart |
@@ -15,3 +17,32 @@ IPC_ENUM_TRAITS_MAX_VALUE(arc::InstanceBootPhase, arc::InstanceBootPhase::LAST) |
IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_InstanceBootPhase, |
arc::InstanceBootPhase) |
+ |
+// 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() |
+ |
+// Tells the Chrome that a notification is posted (created or updated) on |
+// Android. |
+// |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 Android. |
+// |key| is the identifier of the notification. |
+IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_NotificationRemoved, |
+ std::string /* key */); |