| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // http://notifications.spec.whatwg.org/#api | 5 // http://notifications.spec.whatwg.org/#api |
| 6 | 6 |
| 7 enum NotificationDirection { | 7 enum NotificationDirection { |
| 8 "auto", | 8 "auto", |
| 9 "ltr", | 9 "ltr", |
| 10 "rtl" | 10 "rtl" |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 enum NotificationPriority { |
| 14 "lowest", |
| 15 "low", |
| 16 "normal", |
| 17 "high", |
| 18 "highest" |
| 19 }; |
| 20 |
| 13 dictionary NotificationOptions { | 21 dictionary NotificationOptions { |
| 14 NotificationDirection dir = "auto"; | 22 NotificationDirection dir = "auto"; |
| 15 DOMString lang = ""; | 23 DOMString lang = ""; |
| 16 DOMString body = ""; | 24 DOMString body = ""; |
| 17 DOMString tag = ""; | 25 DOMString tag = ""; |
| 26 [RuntimeEnabled=NotificationExperimental] NotificationPriority priority = "n
ormal"; |
| 18 DOMString icon; | 27 DOMString icon; |
| 19 // TODO(sh919.park): vibrate should be ([Clamp] unsigned long or sequence<un
signed long>) | 28 // TODO(sh919.park): vibrate should be ([Clamp] unsigned long or sequence<un
signed long>) |
| 20 (unsigned long or sequence<unsigned long>) vibrate; | 29 (unsigned long or sequence<unsigned long>) vibrate; |
| 21 boolean silent = false; | 30 boolean silent = false; |
| 22 any data = null; | 31 any data = null; |
| 23 [RuntimeEnabled=NotificationExperimental] sequence<NotificationAction> actio
ns = []; | 32 [RuntimeEnabled=NotificationExperimental] sequence<NotificationAction> actio
ns = []; |
| 24 }; | 33 }; |
| OLD | NEW |