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

Side by Side Diff: third_party/WebKit/public/platform/modules/notifications/notification_service.mojom

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: resolves the promise 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module blink.mojom;
6
7 import "third_party/WebKit/public/platform/modules/notifications/notification.mo jom";
8 import "third_party/WebKit/public/platform/modules/notifications/notification_re sources.mojom";
9 import "third_party/WebKit/public/platform/modules/permissions/permission_status .mojom";
10
11 enum NotificationDisplayResult {
12 SUCCESS
13 };
14
15 // Service through which Blink can request notifications to be shown, closed or
16 // retrieved from the embedder.
17 interface NotificationService {
18 // Synchronously retrieves the permission status for |origin|. Required to
19 // be synchronous due to the Notification.permission JavaScript getter.
20 [Sync] GetPermissionStatus(string origin) => (PermissionStatus status);
21
22 // Shows the |notification| for |origin|, to be decorated with the |resources|
23 // when requested by the developer.
24 ShowPersistent(string origin, Notification notification, NotificationResources resources)
25 => (NotificationDisplayResult result);
26 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698