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

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

Issue 787893002: Actually hook up ServiceWorkerRegistration.showNotification() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/service-worker-show-notification-click.html » ('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 to all clients when the notificationclick event gets received .
2 var messagePort = null;
3
4 addEventListener('message', function(event) {
5 messagePort = event.data;
6 messagePort.postMessage('ready');
7 });
8
9 addEventListener('notificationclick', function(event) {
10 // FIXME: Include the notification's title in the confirmation reply.
11 messagePort.postMessage('The notification has been clicked on.');
12 });
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/service-worker-show-notification-click.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698