mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content of this file was automatically extracted from the
|
|
// "Permissions" spec.
|
|
// See: https://w3c.github.io/permissions/
|
|
|
|
dictionary PermissionDescriptor {
|
|
required PermissionName name;
|
|
};
|
|
|
|
enum PermissionState {
|
|
"granted",
|
|
"denied",
|
|
"prompt",
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface PermissionStatus : EventTarget {
|
|
readonly attribute PermissionState state;
|
|
attribute EventHandler onchange;
|
|
};
|
|
|
|
[Exposed=(Window)]
|
|
partial interface Navigator {
|
|
readonly attribute Permissions permissions;
|
|
};
|
|
|
|
[Exposed=(Worker)]
|
|
partial interface WorkerNavigator {
|
|
readonly attribute Permissions permissions;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface Permissions {
|
|
Promise<PermissionStatus> query(object permissionDesc);
|
|
};
|
|
|
|
dictionary PushPermissionDescriptor : PermissionDescriptor {
|
|
boolean userVisibleOnly = false;
|
|
};
|
|
|
|
dictionary MidiPermissionDescriptor : PermissionDescriptor {
|
|
boolean sysex = false;
|
|
};
|
|
|
|
dictionary DevicePermissionDescriptor : PermissionDescriptor {
|
|
DOMString deviceId;
|
|
};
|
|
|
|
dictionary PermissionSetParameters {
|
|
required PermissionDescriptor descriptor;
|
|
required PermissionState state;
|
|
boolean oneRealm = false;
|
|
};
|