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

Unified Diff: components/arc/common/arc_instance_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 and splitted the patch 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_instance_messages.h
diff --git a/components/arc/common/arc_instance_messages.h b/components/arc/common/arc_instance_messages.h
index a9972296a0032cdd979eeb94da7477d38bee580e..4bd57c8df21f199761fde257d47c5886794059a8 100644
--- a/components/arc/common/arc_instance_messages.h
+++ b/components/arc/common/arc_instance_messages.h
@@ -10,6 +10,9 @@
#include "base/file_descriptor_posix.h"
#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 ArcInstanceMsgStart
// Registers a virtual input device on the container side.
@@ -22,3 +25,13 @@ IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice,
std::string, /* name */
std::string, /* device_type */
base::FileDescriptor /* fd */)
+
+// Enum for notification event types.
+IPC_ENUM_TRAITS_MAX_VALUE(arc::NotificationEvent,
+ arc::NotificationEvent::NOTIFICATION_EVENT_LAST)
+
+// Sends an event from Chrome notification UI to the container.
+// |event| is a type of occured event.
+IPC_MESSAGE_CONTROL2(ArcInstanceMsg_NotifyNotificationEvent,
+ std::string /* key */,
+ arc::NotificationEvent /* event */);

Powered by Google App Engine
This is Rietveld 408576698