Chromium Code Reviews| 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; | 5 module blink.mojom; |
| 6 | 6 |
| 7 import "content/public/common/permission_status.mojom"; | 7 enum PermissionStatus { |
| 8 GRANTED, | |
| 9 DENIED, | |
| 10 ASK, | |
| 11 LAST = ASK | |
| 12 }; | |
|
mlamouri (slow - plz ping)
2016/03/12 06:27:31
Why did you change from import to included?
Sam McNally
2016/03/14 02:42:09
It seemed simpler. Taking another look, quite a fe
| |
| 8 | 13 |
| 9 enum PermissionName { | 14 enum PermissionName { |
| 10 GEOLOCATION, | 15 GEOLOCATION, |
| 11 NOTIFICATIONS, | 16 NOTIFICATIONS, |
| 12 PUSH_NOTIFICATIONS, | 17 PUSH_NOTIFICATIONS, |
| 13 MIDI, | 18 MIDI, |
| 14 MIDI_SYSEX, | 19 MIDI_SYSEX, |
| 15 PROTECTED_MEDIA_IDENTIFIER, | 20 PROTECTED_MEDIA_IDENTIFIER, |
| 16 DURABLE_STORAGE, | 21 DURABLE_STORAGE, |
| 17 AUDIO_CAPTURE, | 22 AUDIO_CAPTURE, |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 33 | 38 |
| 34 // Runs the callback next time there is a permission status change for the | 39 // Runs the callback next time there is a permission status change for the |
| 35 // given { permission, origin }. Callers of this method will have to call it | 40 // given { permission, origin }. Callers of this method will have to call it |
| 36 // again if they want to keep listening to the changes. To prevent race | 41 // again if they want to keep listening to the changes. To prevent race |
| 37 // conditions, the caller must pass the last known value. | 42 // conditions, the caller must pass the last known value. |
| 38 GetNextPermissionChange(PermissionName permission, | 43 GetNextPermissionChange(PermissionName permission, |
| 39 string origin, | 44 string origin, |
| 40 PermissionStatus last_known_status) | 45 PermissionStatus last_known_status) |
| 41 => (PermissionStatus status); | 46 => (PermissionStatus status); |
| 42 }; | 47 }; |
| OLD | NEW |