Index: modules/notifications/Notification.idl |
diff --git a/modules/notifications/Notification.idl b/modules/notifications/Notification.idl |
index 51a26d91389b216800714bb469b2a94f95d9dcf5..ebf279d8c800039b42191a581e02964228fad5c7 100644 |
--- a/modules/notifications/Notification.idl |
+++ b/modules/notifications/Notification.idl |
@@ -32,12 +32,13 @@ |
[ |
GarbageCollected, |
ActiveDOMObject, |
- Constructor(DOMString title, [Default=Undefined] optional Dictionary options), |
+ Constructor(DOMString title, optional NotificationOptions options), |
ConstructorCallWith=ExecutionContext, |
+ MeasureAs=NotificationCreated, |
RuntimeEnabled=Notifications, |
] interface Notification : EventTarget { |
- [CallWith=ExecutionContext] static readonly attribute DOMString permission; |
- [CallWith=ExecutionContext] static void requestPermission(optional NotificationPermissionCallback callback); |
+ [CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonly attribute DOMString permission; |
+ [CallWith=ExecutionContext, MeasureAs=NotificationPermissionRequested] static void requestPermission(optional NotificationPermissionCallback callback); |
// FIXME: Implement the Notification.get() method. |
@@ -53,5 +54,5 @@ |
readonly attribute DOMString tag; |
readonly attribute DOMString icon; |
- void close(); |
+ [MeasureAs=NotificationClosed] void close(); |
}; |