OLD | NEW |
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 content.mojom; | 5 module blink.mojom; |
6 | 6 |
7 import "content/public/common/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, |
(...skipping 16 matching lines...) Expand all Loading... |
34 | 34 |
35 // Runs the callback next time there is a permission status change for the | 35 // 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 | 36 // 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 | 37 // again if they want to keep listening to the changes. To prevent race |
38 // conditions, the caller must pass the last known value. | 38 // conditions, the caller must pass the last known value. |
39 GetNextPermissionChange(PermissionName permission, | 39 GetNextPermissionChange(PermissionName permission, |
40 string origin, | 40 string origin, |
41 PermissionStatus last_known_status) | 41 PermissionStatus last_known_status) |
42 => (PermissionStatus status); | 42 => (PermissionStatus status); |
43 }; | 43 }; |
OLD | NEW |