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

Side by Side Diff: content/common/notification_service_worker_client.mojom

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: it works \o/ Created 4 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module content.mojom;
6
7 import "content/public/common/service_worker_event_status.mojom";
8 import "third_party/WebKit/public/platform/modules/notifications/notification.mo jom";
9
10 // This interface exists for communication of notification events to the Service
11 // Worker they should be invoked on, and handled by.
12 interface NotificationServiceWorkerClient {
13 // Fires the "notificationclick" event in the Service Worker.
14 Click(blink.mojom.Notification notification, int32 action_index)
15 => (ServiceWorkerEventStatus status);
16
17 // Fires the "notificationclose" event in the Service Worker.
18 Close(blink.mojom.Notification notification)
19 => (ServiceWorkerEventStatus status);
20 };
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/platform_notification_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698