OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // https://notifications.spec.whatwg.org/#dictdef-notificationaction | 5 // https://notifications.spec.whatwg.org/#dictdef-notificationaction |
6 | 6 |
7 [RuntimeEnabled=NotificationInlineReplies] enum NotificationActionType { | 7 [RuntimeEnabled=NotificationInlineReplies] enum NotificationActionType { |
8 "button", | 8 "button", |
9 "text" | 9 "text" |
10 }; | 10 }; |
11 | 11 |
12 dictionary NotificationAction { | 12 dictionary NotificationAction { |
13 [RuntimeEnabled=NotificationInlineReplies] NotificationActionType type = "bu
tton"; | 13 [RuntimeEnabled=NotificationInlineReplies] NotificationActionType type = "bu
tton"; |
14 required DOMString action; | 14 required DOMString action; |
15 required DOMString title; | 15 required DOMString title; |
16 [RuntimeEnabled=NotificationActionIcons] USVString icon; | 16 USVString icon; |
17 [RuntimeEnabled=NotificationInlineReplies] DOMString? placeholder = null; | 17 [RuntimeEnabled=NotificationInlineReplies] DOMString? placeholder = null; |
18 }; | 18 }; |
OLD | NEW |