Index: Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl |
diff --git a/Source/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl b/Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl |
similarity index 53% |
copy from Source/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl |
copy to Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl |
index b2a61e5dbf84558ee4342060c0b1121f1476d710..c035165a14cbd559bbbc52218fc1d261b1d3e880 100644 |
--- a/Source/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl |
+++ b/Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl |
@@ -5,8 +5,7 @@ |
// https://notifications.spec.whatwg.org/#service-worker-api |
[ |
- RuntimeEnabled=ServiceWorkerNotifications, |
-] partial interface ServiceWorkerGlobalScope { |
- attribute EventHandler onnotificationclick; |
- attribute EventHandler onnotificationerror; |
+ RuntimeEnabled=ServiceWorkerNotifications |
+] partial interface ServiceWorkerRegistration { |
+ [CallWith=ScriptState] Promise showNotification(DOMString title, optional NotificationOptions options); |
mlamouri (slow - plz ping)
2014/11/13 21:08:02
nit: maybe re-upload with no similarity?
|
}; |