Index: modules/notifications/Notification.idl |
diff --git a/modules/notifications/Notification.idl b/modules/notifications/Notification.idl |
index ebf279d8c800039b42191a581e02964228fad5c7..0ad1096f9b3577e8cbf72eccec2bf20c9eec53bb 100644 |
--- a/modules/notifications/Notification.idl |
+++ b/modules/notifications/Notification.idl |
@@ -34,7 +34,9 @@ |
ActiveDOMObject, |
Constructor(DOMString title, optional NotificationOptions options), |
ConstructorCallWith=ExecutionContext, |
+ Exposed=(Window,Worker), |
MeasureAs=NotificationCreated, |
+ RaisesException=Constructor, |
RuntimeEnabled=Notifications, |
] interface Notification : EventTarget { |
[CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonly attribute DOMString permission; |
@@ -43,9 +45,9 @@ |
// FIXME: Implement the Notification.get() method. |
attribute EventHandler onclick; |
- attribute EventHandler onshow; |
+ [MeasureAs=NotificationShowEvent] attribute EventHandler onshow; |
attribute EventHandler onerror; |
- attribute EventHandler onclose; |
+ [MeasureAs=NotificationCloseEvent] attribute EventHandler onclose; |
readonly attribute DOMString title; |
readonly attribute DOMString dir; |
@@ -54,5 +56,9 @@ |
readonly attribute DOMString tag; |
readonly attribute DOMString icon; |
+ [RuntimeEnabled=NotificationExperimental] readonly attribute sequence<unsigned long>? vibrate; |
+ readonly attribute boolean silent; |
+ [CallWith=ScriptState] readonly attribute any data; |
+ |
[MeasureAs=NotificationClosed] void close(); |
}; |