Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2426)

Unified Diff: Source/modules/notifications/ServiceWorkerRegistrationNotifications.idl

Issue 717273002: Implement the ServiceWorkerRegistration.showNotification() method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: adds a test Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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?
};

Powered by Google App Engine
This is Rietveld 408576698