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

Side by Side Diff: third_party/WebKit/public/platform/modules/notifications/notification.mojom

Issue 2261283002: Add Notification images (Blink + desktop implementation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module blink.mojom; 5 module blink.mojom;
6 6
7 // The different types of actions that can be added to a Notification. 7 // The different types of actions that can be added to a Notification.
8 enum NotificationActionType { 8 enum NotificationActionType {
9 BUTTON, 9 BUTTON,
10 TEXT 10 TEXT
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // BCP 47 language tag describing the notification's contents. Optional. 51 // BCP 47 language tag describing the notification's contents. Optional.
52 string? lang; 52 string? lang;
53 53
54 // Contents of the notification. 54 // Contents of the notification.
55 string body; 55 string body;
56 56
57 // Tag of the notification. Notifications sharing both their origin and their 57 // Tag of the notification. Notifications sharing both their origin and their
58 // tag will replace the first displayed notification. 58 // tag will replace the first displayed notification.
59 string tag; 59 string tag;
60 60
61 // URL of the image which is to be displayed with the notification.
62 string image;
Peter Beverloo 2016/08/22 20:11:07 nit: we need to remove this file, no need to add t
johnme 2016/08/23 14:59:49 Done, ditto for content/browser/notifications/type
63
61 // URL of the icon which is to be displayed with the notification. 64 // URL of the icon which is to be displayed with the notification.
62 string icon; 65 string icon;
63 66
64 // URL of the badge representing the website displaying the notification. 67 // URL of the badge representing the website displaying the notification.
65 string badge; 68 string badge;
66 69
67 // Vibration pattern for the notification, following the syntax of the 70 // Vibration pattern for the notification, following the syntax of the
68 // Vibration API. https://w3c.github.io/vibration/ 71 // Vibration API. https://w3c.github.io/vibration/
69 array<uint32> vibration_pattern; 72 array<uint32> vibration_pattern;
70 73
(...skipping 12 matching lines...) Expand all
83 // being auto-minimized to the notification center (if allowed by platform). 86 // being auto-minimized to the notification center (if allowed by platform).
84 bool require_interaction = false; 87 bool require_interaction = false;
85 88
86 // Developer-provided data associated with the notification, in the form of 89 // Developer-provided data associated with the notification, in the form of
87 // a serialized string. Must not exceed |kMaximumDeveloperDataBytes| bytes. 90 // a serialized string. Must not exceed |kMaximumDeveloperDataBytes| bytes.
88 array<int8> data; 91 array<int8> data;
89 92
90 // Actions that should be shown as buttons on the notification. 93 // Actions that should be shown as buttons on the notification.
91 array<NotificationAction> actions; 94 array<NotificationAction> actions;
92 }; 95 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698