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 dictionary NotificationOptions { | 13 dictionary NotificationOptions { |
| 14 NotificationDirection dir = "auto"; | 14 NotificationDirection dir = "auto"; |
| 15 DOMString lang = ""; | 15 DOMString lang = ""; |
| 16 DOMString body = ""; | 16 DOMString body = ""; |
| 17 DOMString tag = ""; | 17 DOMString tag = ""; |
| 18 DOMString icon; | 18 DOMString icon; |
| 19 // FIXME: The Union type VibrationPattern is not supported in NavigatorVibra tion. | |
|
Peter Beverloo
2015/04/07 11:37:31
nit: We switched to attributed TODOs rather than u
Sanghyun Park
2015/04/08 08:00:03
Okay I'll fix this.
| |
| 20 // If VibrationPattern is supported, we need to change with this. | |
|
Peter Beverloo
2015/04/07 11:37:31
I think it would make sense to fix Issue 240176 fi
Sanghyun Park
2015/04/08 08:00:03
I tried to make VibrationPattern union type like [
Peter Beverloo
2015/04/08 16:40:01
Ok, but please make sure that there's a bug. Also,
Sanghyun Park
2015/04/08 17:20:59
Sure, I've search the bug, I could not find someth
| |
| 21 // FIXME: The contents of the pattern argument should be clamped. | |
| 22 // See https://code.google.com/p/chromium/issues/detail?id=310138 | |
| 23 [RuntimeEnabled=NotificationExperimental] (unsigned long or sequence<unsigne d long>) vibrate; | |
| 19 boolean silent = false; | 24 boolean silent = false; |
| 20 [RuntimeEnabled=NotificationExperimental] any data = null; | 25 [RuntimeEnabled=NotificationExperimental] any data = null; |
| 21 }; | 26 }; |
| OLD | NEW |