blob: 579019d5d63c79a1358d02786cf004b3f3a447b9 [file] [log] [blame]
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Permissions (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;
};