Chromium Code Reviews| 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 typedef (unsigned long or sequence<unsigned long>) VibratePattern; | |
|
Peter Beverloo
2015/04/01 14:26:29
Why can't we share this definition with the Vibrat
timvolodine
2015/04/01 16:27:17
+1
Sanghyun Park
2015/04/01 17:46:08
Unfortunately, NavigatorVibration.idl did not supp
| |
| 14 | |
| 13 dictionary NotificationOptions { | 15 dictionary NotificationOptions { |
| 14 NotificationDirection dir = "auto"; | 16 NotificationDirection dir = "auto"; |
| 15 DOMString lang = ""; | 17 DOMString lang = ""; |
| 16 DOMString body = ""; | 18 DOMString body = ""; |
| 17 DOMString tag = ""; | 19 DOMString tag = ""; |
| 18 DOMString icon; | 20 DOMString icon; |
| 19 boolean silent = false; | 21 boolean silent = false; |
| 22 [RuntimeEnabled=NotificationExperimental] VibratePattern vibrate; | |
| 20 [RuntimeEnabled=NotificationExperimental] any data = null; | 23 [RuntimeEnabled=NotificationExperimental] any data = null; |
| 21 }; | 24 }; |
| OLD | NEW |