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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/platform_notification_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/notification_service_worker_client.mojom
diff --git a/content/common/notification_service_worker_client.mojom b/content/common/notification_service_worker_client.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6b34e20c97b10af1883df4a3a015f6e242e0d324
--- /dev/null
+++ b/content/common/notification_service_worker_client.mojom
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module content.mojom;
+
+import "content/public/common/service_worker_event_status.mojom";
+import "third_party/WebKit/public/platform/modules/notifications/notification.mojom";
+
+// This interface exists for communication of notification events to the Service
+// Worker they should be invoked on, and handled by.
+interface NotificationServiceWorkerClient {
+ // Fires the "notificationclick" event in the Service Worker.
+ Click(blink.mojom.Notification notification, int32 action_index)
+ => (ServiceWorkerEventStatus status);
+
+ // Fires the "notificationclose" event in the Service Worker.
+ Close(blink.mojom.Notification notification)
+ => (ServiceWorkerEventStatus status);
+};
« 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