OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 }; |
OLD | NEW |