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

Unified Diff: components/arc/common/arc_message_traits.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/common/arc_instance_messages.h ('k') | components/arc/common/arc_notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/arc_message_traits.h
diff --git a/components/arc/common/arc_message_traits.h b/components/arc/common/arc_message_traits.h
index 9d0938ff917899742adc50297cd8c189c703b9e8..24c9e36c1b6257a685d70c629f87ea549e0e7b30 100644
--- a/components/arc/common/arc_message_traits.h
+++ b/components/arc/common/arc_message_traits.h
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/arc/common/arc_message_types.h"
#include "ipc/ipc_message_macros.h"
-#include "ipc/ipc_message_utils.h"
+
+// Using relative paths since this file is shared between chromium and android.
+#include "arc_message_types.h"
+#include "arc_notification_types.h"
IPC_ENUM_TRAITS_MIN_MAX_VALUE(arc::ScaleFactor,
arc::ScaleFactor::SCALE_FACTOR_100P,
@@ -15,3 +17,25 @@ IPC_STRUCT_TRAITS_BEGIN(arc::AppInfo)
IPC_STRUCT_TRAITS_MEMBER(package)
IPC_STRUCT_TRAITS_MEMBER(activity)
IPC_STRUCT_TRAITS_END()
+
+// Enum for notification type.
+IPC_ENUM_TRAITS_MAX_VALUE(arc::ArcNotificationType,
+ arc::ArcNotificationType::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(time)
+ IPC_STRUCT_TRAITS_MEMBER(progress_current)
+ IPC_STRUCT_TRAITS_MEMBER(progress_max)
+IPC_STRUCT_TRAITS_END()
+
+// Enum for notification event types.
+IPC_ENUM_TRAITS_MAX_VALUE(arc::ArcNotificationEvent,
+ arc::ArcNotificationEvent::LAST)
« no previous file with comments | « components/arc/common/arc_instance_messages.h ('k') | components/arc/common/arc_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698