| 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);
|
| +};
|
|
|