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

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: Rebased Created 5 years 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
« no previous file with comments | « components/arc/arc_bridge_service_impl.cc ('k') | components/arc/common/arc_instance_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d7ecfdf10feb0c708246db6680eb8ed827e3ccfd..781056ce481136915fc7ae7ca1def6cc5435366d 100644
--- a/components/arc/common/arc_host_messages.h
+++ b/components/arc/common/arc_host_messages.h
@@ -10,7 +10,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
@@ -36,3 +38,14 @@ IPC_MESSAGE_CONTROL4(ArcInstanceHostMsg_AppIcon,
std::string, /* activity */
arc::ScaleFactor, /* scale_factor */
std::vector<uint8_t> /* icon_png_data */)
+
+// 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 */);
« no previous file with comments | « components/arc/arc_bridge_service_impl.cc ('k') | components/arc/common/arc_instance_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698