Skip to content

Commit

Permalink
Sync interfaces/ with @webref/idl 3.52.1 (web-platform-tests#47072)
Browse files Browse the repository at this point in the history
Co-authored-by: wpt-pr-bot <[email protected]>
  • Loading branch information
github-actions[bot] and wpt-pr-bot authored Aug 9, 2024
1 parent 805ad94 commit 52b5b5e
Show file tree
Hide file tree
Showing 23 changed files with 220 additions and 164 deletions.
2 changes: 1 addition & 1 deletion interfaces/EXT_disjoint_timer_query.idl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface EXT_disjoint_timer_query {
const GLenum TIMESTAMP_EXT = 0x8E28;
const GLenum GPU_DISJOINT_EXT = 0x8FBB;

WebGLTimerQueryEXT? createQueryEXT();
WebGLTimerQueryEXT createQueryEXT();
undefined deleteQueryEXT(WebGLTimerQueryEXT? query);
[WebGLHandlesContextLoss] boolean isQueryEXT(WebGLTimerQueryEXT? query);
undefined beginQueryEXT(GLenum target, WebGLTimerQueryEXT query);
Expand Down
2 changes: 1 addition & 1 deletion interfaces/OES_vertex_array_object.idl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface WebGLVertexArrayObjectOES : WebGLObject {
interface OES_vertex_array_object {
const GLenum VERTEX_ARRAY_BINDING_OES = 0x85B5;

WebGLVertexArrayObjectOES? createVertexArrayOES();
WebGLVertexArrayObjectOES createVertexArrayOES();
undefined deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
[WebGLHandlesContextLoss] GLboolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
undefined bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
Expand Down
4 changes: 2 additions & 2 deletions interfaces/css-anchor-position.idl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ interface CSSPositionTryDescriptors : CSSStyleDeclaration {
attribute CSSOMString justify-self;
attribute CSSOMString positionAnchor;
attribute CSSOMString position-anchor;
attribute CSSOMString insetArea;
attribute CSSOMString inset-area;
attribute CSSOMString positionArea;
attribute CSSOMString position-area;
};
2 changes: 2 additions & 0 deletions interfaces/css-conditional.idl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ interface CSSConditionRule : CSSGroupingRule {
[Exposed=Window]
interface CSSMediaRule : CSSConditionRule {
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
readonly attribute boolean matches;
};

[Exposed=Window]
interface CSSSupportsRule : CSSConditionRule {
readonly attribute boolean matches;
};

partial namespace CSS {
Expand Down
2 changes: 0 additions & 2 deletions interfaces/css-font-loading.idl
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };

[Exposed=(Window,Worker)]
interface FontFaceSet : EventTarget {
constructor(sequence<FontFace> initialFaces);

setlike<FontFace>;
FontFaceSet add(FontFace font);
boolean delete(FontFace font);
Expand Down
7 changes: 7 additions & 0 deletions interfaces/css-mixins.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: CSS Functions and Mixins Module (https://drafts.csswg.org/css-mixins-1/)

[Exposed=Window]
interface CSSFunctionRule : CSSGroupingRule { };
4 changes: 0 additions & 4 deletions interfaces/css-view-transitions-2.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
// (https://github.com/w3c/webref)
// Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/)

partial interface CSSRule {
const unsigned short VIEW_TRANSITION_RULE = 15;
};

enum ViewTransitionNavigation { "auto", "none" };

[Exposed=Window]
Expand Down
3 changes: 2 additions & 1 deletion interfaces/cssom.idl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ interface CSSPageDescriptors : CSSStyleDeclaration {
attribute [LegacyNullToEmptyString] CSSOMString margin-bottom;
attribute [LegacyNullToEmptyString] CSSOMString margin-left;
attribute [LegacyNullToEmptyString] CSSOMString size;
attribute [LegacyNullToEmptyString] CSSOMString orientation;
attribute [LegacyNullToEmptyString] CSSOMString pageOrientation;
attribute [LegacyNullToEmptyString] CSSOMString page-orientation;
attribute [LegacyNullToEmptyString] CSSOMString marks;
attribute [LegacyNullToEmptyString] CSSOMString bleed;
};
Expand Down
2 changes: 0 additions & 2 deletions interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -1411,8 +1411,6 @@ interface mixin CanvasDrawPath {
interface mixin CanvasUserInterface {
undefined drawFocusIfNeeded(Element element);
undefined drawFocusIfNeeded(Path2D path, Element element);
undefined scrollPathIntoView();
undefined scrollPathIntoView(Path2D path);
};

interface mixin CanvasText {
Expand Down
3 changes: 2 additions & 1 deletion interfaces/mediasession.idl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ enum MediaSessionAction {
"hangup",
"previousslide",
"nextslide",
"enterpictureinpicture"
"enterpictureinpicture",
"voiceactivity"
};

callback MediaSessionActionHandler = undefined(MediaSessionActionDetails details);
Expand Down
2 changes: 1 addition & 1 deletion interfaces/payment-request.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: Payment Request API 1.1 (https://w3c.github.io/payment-request/)
// Source: Payment Request API (https://w3c.github.io/payment-request/)

[SecureContext, Exposed=Window]
interface PaymentRequest : EventTarget {
Expand Down
8 changes: 7 additions & 1 deletion interfaces/shared-storage.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

typedef (USVString or FencedFrameConfig) SharedStorageResponse;

enum SharedStorageDataOrigin { "context-origin", "script-origin" };

[Exposed=(Window)]
interface SharedStorageWorklet : Worklet {
Promise<SharedStorageResponse> selectURL(DOMString name,
Expand Down Expand Up @@ -52,7 +54,7 @@ interface WindowSharedStorage : SharedStorage {
Promise<any> run(DOMString name,
optional SharedStorageRunOperationMethodOptions options = {});

Promise<SharedStorageWorklet> createWorklet(USVString moduleURL, optional WorkletOptions options = {});
Promise<SharedStorageWorklet> createWorklet(USVString moduleURL, optional SharedStorageWorkletOptions options = {});

readonly attribute SharedStorageWorklet worklet;
};
Expand All @@ -63,6 +65,10 @@ dictionary SharedStorageRunOperationMethodOptions {
boolean keepAlive = false;
};

dictionary SharedStorageWorkletOptions : WorkletOptions {
SharedStorageDataOrigin dataOrigin = "context-origin";
};

partial interface Window {
[SecureContext] readonly attribute WindowSharedStorage? sharedStorage;
};
Expand Down
6 changes: 3 additions & 3 deletions interfaces/touch-events.idl
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ interface TouchList {
};

dictionary TouchEventInit : EventModifierInit {
sequence<Touch> touches = [];
sequence<Touch> targetTouches = [];
sequence<Touch> changedTouches = [];
sequence<Touch> touches = [];
sequence<Touch> targetTouches = [];
sequence<Touch> changedTouches = [];
};

[Exposed=Window]
Expand Down
21 changes: 20 additions & 1 deletion interfaces/turtledove.idl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ partial interface Navigator {
readonly attribute boolean deprecatedRunAdAuctionEnforcesKAnonymity;
};

dictionary AuctionRealTimeReportingConfig {
required DOMString type;
};

dictionary AuctionAdConfig {
required USVString seller;
required USVString decisionLogicURL;
Expand Down Expand Up @@ -95,6 +99,8 @@ dictionary AuctionAdConfig {
sequence<record<DOMString, DOMString>> allSlotsRequestedSizes;
Promise<undefined> additionalBids;
DOMString auctionNonce;
AuctionRealTimeReportingConfig sellerRealTimeReportingConfig;
record<USVString, AuctionRealTimeReportingConfig> perBuyerRealTimeReportingConfig;
sequence<AuctionAdConfig> componentAuctions = [];
AbortSignal? signal;
Promise<boolean> resolveToConfig;
Expand All @@ -120,11 +126,22 @@ interface ForDebuggingOnly {
undefined reportAdAuctionLoss(USVString url);
};

[Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
interface RealTimeReporting {
undefined contributeToHistogram(RealTimeContribution contribution);
};

dictionary RealTimeContribution {
required long bucket;
required double priorityWeight;
long latencyThreshold;
};

[Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope,
Global=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
interface InterestGroupBiddingAndScoringScriptRunnerGlobalScope : InterestGroupScriptRunnerGlobalScope {

readonly attribute ForDebuggingOnly forDebuggingOnly;
readonly attribute RealTimeReporting realTimeReporting;
};

[Exposed=InterestGroupBiddingScriptRunnerGlobalScope,
Expand Down Expand Up @@ -215,6 +232,7 @@ dictionary BiddingBrowserSignals {
sequence<PreviousWin> prevWinsMs;
object wasmHelper;
unsigned long dataVersion;
unsigned long crossOriginDataVersion;
boolean forDebuggingOnlyInCooldownOrLockout = false;
};

Expand All @@ -227,6 +245,7 @@ dictionary ScoringBrowserSignals {

record<DOMString, DOMString> renderSize;
unsigned long dataVersion;
unsigned long crossOriginDataVersion;
sequence<USVString> adComponents;
boolean forDebuggingOnlyInCooldownOrLockout = false;
};
Expand Down
1 change: 1 addition & 0 deletions interfaces/webaudio.idl
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ interface AudioContext : BaseAudioContext {
[SecureContext] readonly attribute (DOMString or AudioSinkInfo) sinkId;
[SecureContext] readonly attribute AudioRenderCapacity renderCapacity;
attribute EventHandler onsinkchange;
attribute EventHandler onerror;
AudioTimestamp getOutputTimestamp ();
Promise<undefined> resume ();
Promise<undefined> suspend ();
Expand Down
3 changes: 2 additions & 1 deletion interfaces/webauthn.idl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dictionary AuthenticatorAttestationResponseJSON {
// algorithm then the public key must be parsed directly from
// attestationObject or authenticatorData.
Base64URLString publicKey;
required long long publicKeyAlgorithm;
required COSEAlgorithmIdentifier publicKeyAlgorithm;
// This value contains copies of some of the fields above. See
// section “Easily accessing credential data”.
required Base64URLString attestationObject;
Expand Down Expand Up @@ -272,6 +272,7 @@ enum ClientCapability {
"hybridTransport",
"passkeyPlatformAuthenticator",
"userVerifyingPlatformAuthenticator",
"relatedOrigins"
};

enum PublicKeyCredentialHints {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/webcodecs.idl
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ interface ImageDecoder {
static Promise<boolean> isTypeSupported(DOMString type);
};

typedef (BufferSource or ReadableStream) ImageBufferSource;
typedef (AllowSharedBufferSource or ReadableStream) ImageBufferSource;
dictionary ImageDecoderInit {
required DOMString type;
required ImageBufferSource data;
Expand Down
10 changes: 5 additions & 5 deletions interfaces/webgl1.idl
Original file line number Diff line number Diff line change
Expand Up @@ -561,12 +561,12 @@ interface mixin WebGLRenderingContextBase
undefined copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint x, GLint y, GLsizei width, GLsizei height);

WebGLBuffer? createBuffer();
WebGLFramebuffer? createFramebuffer();
WebGLProgram? createProgram();
WebGLRenderbuffer? createRenderbuffer();
WebGLBuffer createBuffer();
WebGLFramebuffer createFramebuffer();
WebGLProgram createProgram();
WebGLRenderbuffer createRenderbuffer();
WebGLShader? createShader(GLenum type);
WebGLTexture? createTexture();
WebGLTexture createTexture();

undefined cullFace(GLenum mode);

Expand Down
8 changes: 4 additions & 4 deletions interfaces/webgl2.idl
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ interface mixin WebGL2RenderingContextBase
undefined clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);

/* Query Objects */
WebGLQuery? createQuery();
WebGLQuery createQuery();
undefined deleteQuery(WebGLQuery? query);
[WebGLHandlesContextLoss] GLboolean isQuery(WebGLQuery? query);
undefined beginQuery(GLenum target, WebGLQuery query);
Expand All @@ -432,7 +432,7 @@ interface mixin WebGL2RenderingContextBase
any getQueryParameter(WebGLQuery query, GLenum pname);

/* Sampler Objects */
WebGLSampler? createSampler();
WebGLSampler createSampler();
undefined deleteSampler(WebGLSampler? sampler);
[WebGLHandlesContextLoss] GLboolean isSampler(WebGLSampler? sampler);
undefined bindSampler(GLuint unit, WebGLSampler? sampler);
Expand All @@ -449,7 +449,7 @@ interface mixin WebGL2RenderingContextBase
any getSyncParameter(WebGLSync sync, GLenum pname);

/* Transform Feedback */
WebGLTransformFeedback? createTransformFeedback();
WebGLTransformFeedback createTransformFeedback();
undefined deleteTransformFeedback(WebGLTransformFeedback? tf);
[WebGLHandlesContextLoss] GLboolean isTransformFeedback(WebGLTransformFeedback? tf);
undefined bindTransformFeedback (GLenum target, WebGLTransformFeedback? tf);
Expand All @@ -472,7 +472,7 @@ interface mixin WebGL2RenderingContextBase
undefined uniformBlockBinding(WebGLProgram program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);

/* Vertex Array Objects */
WebGLVertexArrayObject? createVertexArray();
WebGLVertexArrayObject createVertexArray();
undefined deleteVertexArray(WebGLVertexArrayObject? vertexArray);
[WebGLHandlesContextLoss] GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
undefined bindVertexArray(WebGLVertexArrayObject? array);
Expand Down
1 change: 1 addition & 0 deletions interfaces/webgpu.idl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ enum GPUFeatureName {
"depth-clip-control",
"depth32float-stencil8",
"texture-compression-bc",
"texture-compression-bc-sliced-3d",
"texture-compression-etc2",
"texture-compression-astc",
"timestamp-query",
Expand Down
16 changes: 8 additions & 8 deletions interfaces/webmidi.idl
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ dictionary MIDIOptions {
boolean software;
};

[SecureContext, Exposed=Window] interface MIDIInputMap {
[SecureContext, Exposed=(Window,Worker)] interface MIDIInputMap {
readonly maplike <DOMString, MIDIInput>;
};

[SecureContext, Exposed=Window] interface MIDIOutputMap {
[SecureContext, Exposed=(Window,Worker)] interface MIDIOutputMap {
readonly maplike <DOMString, MIDIOutput>;
};

[SecureContext, Exposed=Window] interface MIDIAccess: EventTarget {
[SecureContext, Exposed=(Window,Worker), Transferable] interface MIDIAccess: EventTarget {
readonly attribute MIDIInputMap inputs;
readonly attribute MIDIOutputMap outputs;
attribute EventHandler onstatechange;
readonly attribute boolean sysexEnabled;
};

[SecureContext, Exposed=Window] interface MIDIPort: EventTarget {
[SecureContext, Exposed=(Window,Worker)] interface MIDIPort: EventTarget {
readonly attribute DOMString id;
readonly attribute DOMString? manufacturer;
readonly attribute DOMString? name;
Expand All @@ -45,11 +45,11 @@ dictionary MIDIOptions {
Promise <MIDIPort> close();
};

[SecureContext, Exposed=Window] interface MIDIInput: MIDIPort {
[SecureContext, Exposed=(Window,Worker)] interface MIDIInput: MIDIPort {
attribute EventHandler onmidimessage;
};

[SecureContext, Exposed=Window] interface MIDIOutput : MIDIPort {
[SecureContext, Exposed=(Window,Worker)] interface MIDIOutput : MIDIPort {
undefined send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
undefined clear();
};
Expand All @@ -70,7 +70,7 @@ enum MIDIPortConnectionState {
"pending",
};

[SecureContext, Exposed=Window]
[SecureContext, Exposed=(Window,Worker)]
interface MIDIMessageEvent : Event {
constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {});
readonly attribute Uint8Array? data;
Expand All @@ -80,7 +80,7 @@ dictionary MIDIMessageEventInit: EventInit {
Uint8Array data;
};

[SecureContext, Exposed=Window]
[SecureContext, Exposed=(Window,Worker)]
interface MIDIConnectionEvent : Event {
constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {});
readonly attribute MIDIPort? port;
Expand Down
Loading

0 comments on commit 52b5b5e

Please sign in to comment.