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

Side by Side Diff: third_party/WebKit/public/platform/modules/permissions/permission.mojom

Issue 2009773002: Add user_gesture bit back to Mojo PermissionService methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/modules/geolocation/Geolocation.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module blink.mojom; 5 module blink.mojom;
6 6
7 import "third_party/WebKit/public/platform/modules/permissions/permission_status .mojom"; 7 import "third_party/WebKit/public/platform/modules/permissions/permission_status .mojom";
8 8
9 enum PermissionName { 9 enum PermissionName {
10 GEOLOCATION, 10 GEOLOCATION,
11 NOTIFICATIONS, 11 NOTIFICATIONS,
12 PUSH_NOTIFICATIONS, 12 PUSH_NOTIFICATIONS,
13 MIDI, 13 MIDI,
14 MIDI_SYSEX, 14 MIDI_SYSEX,
15 PROTECTED_MEDIA_IDENTIFIER, 15 PROTECTED_MEDIA_IDENTIFIER,
16 DURABLE_STORAGE, 16 DURABLE_STORAGE,
17 AUDIO_CAPTURE, 17 AUDIO_CAPTURE,
18 VIDEO_CAPTURE, 18 VIDEO_CAPTURE,
19 BACKGROUND_SYNC, 19 BACKGROUND_SYNC,
20 }; 20 };
21 21
22 // The Permission service provides permission handling capabilities by exposing 22 // The Permission service provides permission handling capabilities by exposing
23 // methods to check, request, and revoke permissions. It also allows a client to 23 // methods to check, request, and revoke permissions. It also allows a client to
24 // start listening to permission changes. 24 // start listening to permission changes.
25 interface PermissionService { 25 interface PermissionService {
26 HasPermission(PermissionName permission, string origin) 26 HasPermission(PermissionName permission, string origin)
27 => (PermissionStatus status); 27 => (PermissionStatus status);
28 RequestPermission(PermissionName permission, string origin) 28 RequestPermission(PermissionName permission, string origin, bool user_gesture)
29 => (PermissionStatus status); 29 => (PermissionStatus status);
30 RequestPermissions(array<PermissionName> permission, string origin) 30 RequestPermissions(array<PermissionName> permission, string origin,
31 bool user_gesture)
31 => (array<PermissionStatus> statuses); 32 => (array<PermissionStatus> statuses);
32 RevokePermission(PermissionName permission, string origin) 33 RevokePermission(PermissionName permission, string origin)
33 => (PermissionStatus status); 34 => (PermissionStatus status);
34 35
35 // Runs the callback next time there is a permission status change for the 36 // Runs the callback next time there is a permission status change for the
36 // given { permission, origin }. Callers of this method will have to call it 37 // given { permission, origin }. Callers of this method will have to call it
37 // again if they want to keep listening to the changes. To prevent race 38 // again if they want to keep listening to the changes. To prevent race
38 // conditions, the caller must pass the last known value. 39 // conditions, the caller must pass the last known value.
39 GetNextPermissionChange(PermissionName permission, 40 GetNextPermissionChange(PermissionName permission,
40 string origin, 41 string origin,
41 PermissionStatus last_known_status) 42 PermissionStatus last_known_status)
42 => (PermissionStatus status); 43 => (PermissionStatus status);
43 }; 44 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/geolocation/Geolocation.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698