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

Unified Diff: public/web/WebServiceWorkerContextClient.h

Issue 720873002: Expose the notificationclick and notificationerror events on ServiceWorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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: public/web/WebServiceWorkerContextClient.h
diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h
index cfb7add05c7a726565b858d6852768bb1fd0a016..17194793b095eb6950742c09327572665a1dcfcb 100644
--- a/public/web/WebServiceWorkerContextClient.h
+++ b/public/web/WebServiceWorkerContextClient.h
@@ -127,6 +127,12 @@ public:
// context.
virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult result) { }
+ // ServiceWorker specific method. Called after NotificationClickEvent and
+ // NotificationErrorEvent (dispatched via WebServiceWorkerContextProxy) are
+ // handled by the ServiceWorker's script context.
+ virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEventResult result) { }
+ virtual void didHandleNotificationErrorEvent(int eventID, WebServiceWorkerEventResult result) { }
+
// ServiceWorker specific method. Called after SyncEvent (dispatched via
// WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
// context.

Powered by Google App Engine
This is Rietveld 408576698