Index: modules/notifications/ServiceWorkerGlobalScopeNotifications.idl |
diff --git a/modules/push_messaging/ServiceWorkerGlobalScopePush.idl b/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl |
similarity index 51% |
copy from modules/push_messaging/ServiceWorkerGlobalScopePush.idl |
copy to modules/notifications/ServiceWorkerGlobalScopeNotifications.idl |
index 3395b3d43107a7d298201f7ec943b12cd58529e5..b2a61e5dbf84558ee4342060c0b1121f1476d710 100644 |
--- a/modules/push_messaging/ServiceWorkerGlobalScopePush.idl |
+++ b/modules/notifications/ServiceWorkerGlobalScopeNotifications.idl |
@@ -2,8 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// https://notifications.spec.whatwg.org/#service-worker-api |
+ |
[ |
- RuntimeEnabled=PushMessaging, |
+ RuntimeEnabled=ServiceWorkerNotifications, |
] partial interface ServiceWorkerGlobalScope { |
- attribute EventHandler onpush; |
+ attribute EventHandler onnotificationclick; |
+ attribute EventHandler onnotificationerror; |
}; |