Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/notifications/notification_service.mojom |
| diff --git a/third_party/WebKit/public/platform/modules/notifications/notification_service.mojom b/third_party/WebKit/public/platform/modules/notifications/notification_service.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..30892c1a4072bf0da98029144ed0e85dec6a76ec |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/notifications/notification_service.mojom |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
dcheng
2016/04/22 18:40:49
Are these mojom files already covered by the IPC o
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module blink.mojom; |
| + |
| +import "third_party/WebKit/public/platform/modules/notifications/notification.mojom"; |
| +import "third_party/WebKit/public/platform/modules/notifications/notification_resources.mojom"; |
| +import "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom"; |
| + |
| +enum NotificationDisplayResult { |
| + SUCCESS |
| +}; |
| + |
| +// Service through which Blink can request notifications to be shown, closed or |
| +// retrieved from the embedder. |
| +interface NotificationService { |
| + // Synchronously retrieves the permission status for |origin|. Required to |
| + // be synchronous due to the Notification.permission JavaScript getter. |
| + [Sync] GetPermissionStatus(string origin) => (PermissionStatus status); |
| + |
| + // Shows the |notification| for |origin|, to be decorated with the |resources| |
| + // when requested by the developer. |
| + ShowPersistent(string origin, Notification notification, NotificationResources resources) |
| + => (NotificationDisplayResult result); |
| +}; |