mirror of
https://github.com/servo/servo.git
synced 2025-07-11 17:33:47 +01:00
53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
// 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;
|
|
};
|