Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1002)

Unified Diff: components/arc/common/arc_host_messages.h

Issue 1475583002: Add IPC messages for ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 */);

Powered by Google App Engine
This is Rietveld 408576698