Skip to content

Commit

Permalink
Sync interfaces/ with @webref/idl 3.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wpt-pr-bot authored Feb 18, 2023
1 parent 5ff3ad8 commit 8a3beb2
Show file tree
Hide file tree
Showing 17 changed files with 95 additions and 55 deletions.
20 changes: 0 additions & 20 deletions interfaces/EXT_clip_cull_distance.idl

This file was deleted.

17 changes: 1 addition & 16 deletions interfaces/FedCM.idl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dictionary IdentityProviderAccount {
required USVString name;
required USVString email;
USVString given_name;
USVString picture;
sequence<USVString> approved_clients;
};
dictionary IdentityProviderAccountList {
Expand Down Expand Up @@ -63,19 +64,3 @@ dictionary IdentityProviderConfig {
required USVString clientId;
USVString nonce;
};

dictionary IdentityCredentialLogoutRPsRequest {
required USVString url;
required USVString accountId;
};

[Exposed=Window, SecureContext]
partial interface IdentityCredential {
static Promise<undefined> logoutRPs(sequence<IdentityCredentialLogoutRPsRequest> logoutRequests);
};

[Exposed=Window, SecureContext]
interface IdentityProvider {
static undefined login();
static undefined logout();
};
20 changes: 20 additions & 0 deletions interfaces/WEBGL_clip_cull_distance.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: WebGL WEBGL_clip_cull_distance Extension Draft Specification (https://registry.khronos.org/webgl/extensions/WEBGL_clip_cull_distance/)

[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface WEBGL_clip_cull_distance {
const GLenum MAX_CLIP_DISTANCES_WEBGL = 0x0D32;
const GLenum MAX_CULL_DISTANCES_WEBGL = 0x82F9;
const GLenum MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL = 0x82FA;

const GLenum CLIP_DISTANCE0_WEBGL = 0x3000;
const GLenum CLIP_DISTANCE1_WEBGL = 0x3001;
const GLenum CLIP_DISTANCE2_WEBGL = 0x3002;
const GLenum CLIP_DISTANCE3_WEBGL = 0x3003;
const GLenum CLIP_DISTANCE4_WEBGL = 0x3004;
const GLenum CLIP_DISTANCE5_WEBGL = 0x3005;
const GLenum CLIP_DISTANCE6_WEBGL = 0x3006;
const GLenum CLIP_DISTANCE7_WEBGL = 0x3007;
};
13 changes: 13 additions & 0 deletions interfaces/WEBGL_provoking_vertex.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: WebGL WEBGL_provoking_vertex Extension Specification (https://registry.khronos.org/webgl/extensions/WEBGL_provoking_vertex/)

[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface WEBGL_provoking_vertex {
const GLenum FIRST_VERTEX_CONVENTION_WEBGL = 0x8E4D;
const GLenum LAST_VERTEX_CONVENTION_WEBGL = 0x8E4E; // default
const GLenum PROVOKING_VERTEX_WEBGL = 0x8E4F;

undefined provokingVertexWEBGL(GLenum provokeMode);
};
2 changes: 1 addition & 1 deletion interfaces/contact-picker.idl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Contact Picker API (https://w3c.github.io/contact-picker/spec/)
// Source: Contact Picker API (https://w3c.github.io/contact-picker/)

[Exposed=Window]
partial interface Navigator {
Expand Down
8 changes: 4 additions & 4 deletions interfaces/css-view-transitions.idl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
// Source: CSS View Transitions Module Level 1 (https://drafts.csswg.org/css-view-transitions-1/)

partial interface Document {
ViewTransition startViewTransition(optional UpdateCallback? callback = null);
ViewTransition startViewTransition(optional UpdateCallback? updateCallback = null);
};

callback UpdateCallback = Promise<any> ();

[Exposed=Window]
interface ViewTransition {
undefined skipTransition();
readonly attribute Promise<undefined> finished;
readonly attribute Promise<undefined> ready;
readonly attribute Promise<undefined> updateCallbackDone;
readonly attribute Promise<undefined> ready;
readonly attribute Promise<undefined> finished;
undefined skipTransition();
};
1 change: 1 addition & 0 deletions interfaces/fetch.idl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface Headers {
undefined append(ByteString name, ByteString value);
undefined delete(ByteString name);
ByteString? get(ByteString name);
sequence<ByteString> getSetCookie();
boolean has(ByteString name);
undefined set(ByteString name, ByteString value);
iterable<ByteString, ByteString>;
Expand Down
10 changes: 10 additions & 0 deletions interfaces/gpc-spec.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Global Privacy Control (GPC) (https://privacycg.github.io/gpc-spec/)

interface mixin GlobalPrivacyControl {
readonly attribute boolean globalPrivacyControl;
};
Navigator includes GlobalPrivacyControl;
WorkerNavigator includes GlobalPrivacyControl;
26 changes: 26 additions & 0 deletions interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ interface HTMLElement : Element {
[CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText;

ElementInternals attachInternals();

// The popover API
undefined showPopover();
undefined hidePopover();
undefined togglePopover(optional boolean force);
[CEReactions] attribute DOMString? popover;
};

HTMLElement includes GlobalEventHandlers;
Expand Down Expand Up @@ -929,6 +935,7 @@ interface HTMLInputElement : HTMLElement {

// also has obsolete members
};
HTMLInputElement includes PopoverTargetElement;

[Exposed=Window]
interface HTMLButtonElement : HTMLElement {
Expand All @@ -954,6 +961,7 @@ interface HTMLButtonElement : HTMLElement {

readonly attribute NodeList labels;
};
HTMLButtonElement includes PopoverTargetElement;

[Exposed=Window]
interface HTMLSelectElement : HTMLElement {
Expand Down Expand Up @@ -1704,6 +1712,24 @@ dictionary DragEventInit : MouseEventInit {
DataTransfer? dataTransfer = null;
};

interface mixin PopoverTargetElement {
[CEReactions] attribute Element? popoverToggleTargetElement;
[CEReactions] attribute Element? popoverHideTargetElement;
[CEReactions] attribute Element? popoverShowTargetElement;
};

[Exposed=Window]
interface ToggleEvent : Event {
constructor(DOMString type, optional ToggleEventInit eventInitDict = {});
readonly attribute DOMString oldState;
readonly attribute DOMString newState;
};

dictionary ToggleEventInit : EventInit {
DOMString oldState = "";
DOMString newState = "";
};

[Global=Window,
Exposed=Window,
LegacyUnenumerableNamedProperties]
Expand Down
12 changes: 12 additions & 0 deletions interfaces/requestStorageAccessForOrigin.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: requestStorageAccessForOrigin API (https://privacycg.github.io/requestStorageAccessForOrigin/)

partial interface Document {
Promise<undefined> requestStorageAccessForOrigin(USVString origin);
};

dictionary TopLevelStorageAccessPermissionDescriptor : PermissionDescriptor {
USVString requestedOrigin = "";
};
7 changes: 0 additions & 7 deletions interfaces/secure-payment-confirmation.idl
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,3 @@ dictionary PaymentCredentialInstrument {
required USVString icon;
boolean iconMustBeShown = true;
};

enum TransactionAutomationMode {
"none",
"autoAccept",
"autoReject",
"autoOptOut"
};
1 change: 1 addition & 0 deletions interfaces/web-animations-2.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

[Exposed=Window]
partial interface AnimationTimeline {
readonly attribute CSSNumberish? currentTime;
readonly attribute CSSNumberish? duration;
Animation play (optional AnimationEffect? effect = null);
};
Expand Down
1 change: 0 additions & 1 deletion interfaces/web-animations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

[Exposed=Window]
interface AnimationTimeline {
readonly attribute double? currentTime;
};

dictionary DocumentTimelineOptions {
Expand Down
8 changes: 4 additions & 4 deletions interfaces/webcodecs.idl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Source: WebCodecs (https://w3c.github.io/webcodecs/)

[Exposed=(Window,DedicatedWorker), SecureContext]
interface AudioDecoder {
interface AudioDecoder : EventTarget {
constructor(AudioDecoderInit init);

readonly attribute CodecState state;
Expand All @@ -28,7 +28,7 @@ dictionary AudioDecoderInit {
callback AudioDataOutputCallback = undefined(AudioData output);

[Exposed=(Window,DedicatedWorker), SecureContext]
interface VideoDecoder {
interface VideoDecoder : EventTarget {
constructor(VideoDecoderInit init);

readonly attribute CodecState state;
Expand All @@ -52,7 +52,7 @@ dictionary VideoDecoderInit {
callback VideoFrameOutputCallback = undefined(VideoFrame output);

[Exposed=(Window,DedicatedWorker), SecureContext]
interface AudioEncoder {
interface AudioEncoder : EventTarget {
constructor(AudioEncoderInit init);

readonly attribute CodecState state;
Expand Down Expand Up @@ -82,7 +82,7 @@ dictionary EncodedAudioChunkMetadata {
};

[Exposed=(Window,DedicatedWorker), SecureContext]
interface VideoEncoder {
interface VideoEncoder : EventTarget {
constructor(VideoEncoderInit init);

readonly attribute CodecState state;
Expand Down
1 change: 0 additions & 1 deletion interfaces/webgpu.idl
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ enum GPUTextureFormat {

[Exposed=(Window, DedicatedWorker), SecureContext]
interface GPUExternalTexture {
readonly attribute boolean expired;
};
GPUExternalTexture includes GPUObjectBase;

Expand Down
1 change: 1 addition & 0 deletions interfaces/webrtc-encoded-transform.idl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ dictionary RTCEncodedAudioFrameMetadata {
unsigned long synchronizationSource;
octet payloadType;
sequence<unsigned long> contributingSources;
short sequenceNumber;
};

[Exposed=(Window,DedicatedWorker)]
Expand Down
2 changes: 1 addition & 1 deletion interfaces/xhr.idl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typedef (File or USVString) FormDataEntryValue;

[Exposed=(Window,Worker)]
interface FormData {
constructor(optional HTMLFormElement form);
constructor(optional HTMLFormElement form, optional HTMLElement? submitter = null);

undefined append(USVString name, USVString value);
undefined append(USVString name, Blob blobValue, optional USVString filename);
Expand Down

0 comments on commit 8a3beb2

Please sign in to comment.