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

Unified Diff: content/common/service_worker/service_worker_event_dispatcher.mojom

Issue 2682353002: Mojoify the notificationclick and notificationclose events (Closed)
Patch Set: Mojoify the notificationclick and notificationclose events Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/common/service_worker/service_worker_event_dispatcher.mojom
diff --git a/content/common/service_worker/service_worker_event_dispatcher.mojom b/content/common/service_worker/service_worker_event_dispatcher.mojom
index 0adc81aa2ca8eb3d0bebe9f59f9a054a56178581..0cce78436badaccd848aa2dcbbe7beab2964d147 100644
--- a/content/common/service_worker/service_worker_event_dispatcher.mojom
+++ b/content/common/service_worker/service_worker_event_dispatcher.mojom
@@ -13,6 +13,9 @@ import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
import "url/mojo/origin.mojom";
[Native]
+struct PlatformNotificationData;
+
+[Native]
struct PushEventPayload;
[Native]
@@ -43,6 +46,16 @@ interface ServiceWorkerEventDispatcher {
FetchEventPreloadHandle? preload_handle)
=> (blink.mojom.ServiceWorkerEventStatus status,
mojo.common.mojom.Time dispatch_event_time);
+ DispatchNotificationClickEvent(string notification_id,
+ PlatformNotificationData notification_data,
+ int32 action_index,
+ mojo.common.mojom.String16? reply)
+ => (blink.mojom.ServiceWorkerEventStatus status,
+ mojo.common.mojom.Time dispatch_event_time);
+ DispatchNotificationCloseEvent(string notification_id,
+ PlatformNotificationData notification_data)
+ => (blink.mojom.ServiceWorkerEventStatus status,
+ mojo.common.mojom.Time dispatch_event_time);
DispatchPushEvent(PushEventPayload payload)
=> (blink.mojom.ServiceWorkerEventStatus status,
mojo.common.mojom.Time dispatch_event_time);
« no previous file with comments | « content/common/service_worker/OWNERS ('k') | content/common/service_worker/service_worker_event_dispatcher.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698