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

Unified Diff: components/arc/common/notifications.mojom

Issue 1883473002: arc: Support more types of notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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/notifications.mojom
diff --git a/components/arc/common/notifications.mojom b/components/arc/common/notifications.mojom
index 068a08454cb382fba73b3f06f35b9c5bb9856c20..8a1f05ad313ec968196e7f70726a7c960616e126 100644
--- a/components/arc/common/notifications.mojom
+++ b/components/arc/common/notifications.mojom
@@ -24,7 +24,8 @@ enum ArcNotificationType {
BASIC = 0,
IMAGE = 1,
PROGRESS = 2,
- MAX = PROGRESS
+ LIST = 3,
+ MAX = LIST
dcheng 2016/04/13 23:55:20 I don't think MAX serves a purpose in mojo
yoshiki 2016/04/15 00:32:34 Done.
};
struct ArcNotificationButton {
@@ -61,6 +62,12 @@ struct ArcNotificationData {
// Flag if the notification has FLAG_ONGOING_EVENT.
[MinVersion=1]
bool ongoing_event;
+ // Subtexts for list notifications.
+ [MinVersion=3]
+ array<string>? texts;
+ // Image for image notifications.
+ [MinVersion=3]
+ ArcNotificationBitmap? big_picture;
};
[MinVersion=2]
@@ -73,6 +80,13 @@ struct ArcToastData {
int32 duration;
};
+[MinVersion=3]
+struct ArcNotificationBitmap {
+ uint32 width;
+ uint32 height;
+ array<uint8> pixel_data;
+};
+
interface NotificationsHost {
// Tells the Chrome that a notification is posted (created or updated) on
// Android.
« no previous file with comments | « no previous file | ui/arc/notification/arc_notification_item.cc » ('j') | ui/arc/notification/arc_notification_item.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698