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

Side by Side Diff: LayoutTests/http/tests/notifications/resources/click-close-service-worker.js

Issue 868053003: Expose ServiceWorkerRegistration.showNotification() in Service Workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/resources/click-forward-service-worker.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Sends a message when the notificationclick event gets received, and closes th e
2 // notification which was shown from that event.
3 var messagePort = null;
4
5 addEventListener('message', function(event) {
6 messagePort = event.data;
7 messagePort.postMessage('ready');
8 });
9
10 addEventListener('notificationclick', function(event) {
11 event.notification.close();
12 messagePort.postMessage('Clicked on Notification: ' + event.notification.tit le);
13 });
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/resources/click-forward-service-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698