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..b9c5d3e57024706959ed9d65546f96f4694974ad |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/notifications/notification_service.mojom |
| @@ -0,0 +1,15 @@ |
| +// Copyright 2016 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 blink.mojom; |
| + |
| +import "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom"; |
| + |
| +// 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); |
|
Sam McNally
2016/05/06 05:14:09
This seems like it belongs in PermissionService.
Peter Beverloo
2016/05/06 14:51:33
Conceptually it does, but the notification permiss
mlamouri (slow - plz ping)
2016/05/07 12:55:25
I don't think extensions is a problem to use the p
|
| +}; |