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

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: Rebased 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
« no previous file with comments | « components/arc/common/bitmap.mojom ('k') | ui/arc/notification/arc_notification_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/notifications.mojom
diff --git a/components/arc/common/notifications.mojom b/components/arc/common/notifications.mojom
index 8425748124f250618c5e66086984e4c12b426ec3..023b3ddab7ea05c4167df561fae65faced073840 100644
--- a/components/arc/common/notifications.mojom
+++ b/components/arc/common/notifications.mojom
@@ -4,6 +4,8 @@
module arc.mojom;
+import "bitmap.mojom";
+
// These values must be matched with the NOTIFICATION_EVENT_* constants in
// com.android.server.ArcNotificationListenerService.
enum ArcNotificationEvent {
@@ -15,7 +17,6 @@ enum ArcNotificationEvent {
BUTTON_3_CLICKED = 4,
BUTTON_4_CLICKED = 5,
BUTTON_5_CLICKED = 6,
- MAX = BUTTON_5_CLICKED
};
// These values must be matched with the NOTIFICATION_TYPE_* constants in
@@ -24,7 +25,7 @@ enum ArcNotificationType {
BASIC = 0,
IMAGE = 1,
PROGRESS = 2,
- MAX = PROGRESS
+ LIST = 3,
};
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]
+ ArcBitmap? big_picture;
};
[MinVersion=2]
« no previous file with comments | « components/arc/common/bitmap.mojom ('k') | ui/arc/notification/arc_notification_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698