Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions interfaces/clipboard-apis.idl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ interface ClipboardEvent : Event {
readonly attribute DataTransfer? clipboardData;
};

dictionary ClipboardChangeEventInit : EventInit {
sequence<DOMString> types = [];
bigint changeId = 0;
};

[Exposed=Window]
interface ClipboardChangeEvent : Event {
constructor(DOMString type, optional ClipboardChangeEventInit eventInitDict = {});
readonly attribute FrozenArray<DOMString> types;
readonly attribute bigint changeId;
};

partial interface Navigator {
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
};
Expand Down
2 changes: 1 addition & 1 deletion interfaces/crash-reporting.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ dictionary CrashReportBody : ReportBody {
DOMString reason;
DOMString stack;
boolean is_top_level;
DocumentVisibilityState page_visibility;
DocumentVisibilityState visibility_state;
};
2 changes: 1 addition & 1 deletion interfaces/css-view-transitions.idl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface ViewTransition {
readonly attribute Promise<undefined> ready;
readonly attribute Promise<undefined> finished;
undefined skipTransition();
attribute ViewTransitionTypeSet types;
[SameObject] attribute ViewTransitionTypeSet types;
readonly attribute Element transitionRoot;
undefined waitUntil(Promise<any> promise);
};
Expand Down
4 changes: 2 additions & 2 deletions interfaces/dom.idl
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ interface Document : Node {
interface XMLDocument : Document {};

dictionary ElementCreationOptions {
CustomElementRegistry customElementRegistry;
CustomElementRegistry? customElementRegistry;
DOMString is;
};

Expand Down Expand Up @@ -412,7 +412,7 @@ dictionary ShadowRootInit {
SlotAssignmentMode slotAssignment = "named";
boolean clonable = false;
boolean serializable = false;
CustomElementRegistry? customElementRegistry = null;
CustomElementRegistry? customElementRegistry;
};

[Exposed=Window,
Expand Down
2 changes: 1 addition & 1 deletion interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ OffscreenCanvasRenderingContext2D includes CanvasPathDrawingStyles;
OffscreenCanvasRenderingContext2D includes CanvasTextDrawingStyles;
OffscreenCanvasRenderingContext2D includes CanvasPath;

enum PredefinedColorSpace { "srgb", "display-p3" };
enum PredefinedColorSpace { "srgb", "srgb-linear", "display-p3", "display-p3-linear" };

[Exposed=Window]
interface CustomElementRegistry {
Expand Down
4 changes: 2 additions & 2 deletions interfaces/privacy-preserving-attribution.idl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ partial interface Navigator {
[SecureContext, SameObject] readonly attribute Attribution attribution;
};

enum AttributionAggregationProtocol { "dap-15-histogram", "tee-00" };
enum AttributionAggregationProtocol { "dap-15-histogram" };

dictionary AttributionAggregationService {
required DOMString protocol;
required AttributionAggregationProtocol protocol;
};

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

enum RunAt {
"document_start",
"document_end",
"document_idle"
};

enum ExecutionWorld {
"ISOLATED",
"MAIN"
};
6 changes: 6 additions & 0 deletions interfaces/webgpu.idl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ interface GPUSupportedLimits {
readonly attribute unsigned long maxSampledTexturesPerShaderStage;
readonly attribute unsigned long maxSamplersPerShaderStage;
readonly attribute unsigned long maxStorageBuffersPerShaderStage;
readonly attribute unsigned long maxStorageBuffersInVertexStage;
readonly attribute unsigned long maxStorageBuffersInFragmentStage;
readonly attribute unsigned long maxStorageTexturesPerShaderStage;
readonly attribute unsigned long maxStorageTexturesInVertexStage;
readonly attribute unsigned long maxStorageTexturesInFragmentStage;
readonly attribute unsigned long maxUniformBuffersPerShaderStage;
readonly attribute unsigned long long maxUniformBufferBindingSize;
readonly attribute unsigned long long maxStorageBufferBindingSize;
Expand Down Expand Up @@ -229,6 +233,7 @@ interface GPUTexture {
readonly attribute GPUTextureDimension dimension;
readonly attribute GPUTextureFormat format;
readonly attribute GPUFlagsConstant usage;
readonly attribute (GPUTextureViewDimension or undefined) textureBindingViewDimension;
};
GPUTexture includes GPUObjectBase;

Expand All @@ -241,6 +246,7 @@ dictionary GPUTextureDescriptor
required GPUTextureFormat format;
required GPUTextureUsageFlags usage;
sequence<GPUTextureFormat> viewFormats = [];
GPUTextureViewDimension textureBindingViewDimension;
};

enum GPUTextureDimension {
Expand Down
13 changes: 2 additions & 11 deletions interfaces/webrtc-encoded-transform.idl
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ dictionary RTCEncodedFrameMetadata {
DOMString mimeType;
};

// New enum for video frame types. Will eventually re-use the equivalent defined
// by WebCodecs.
enum RTCEncodedVideoFrameType {
"empty",
"key",
"delta",
};

dictionary RTCEncodedVideoFrameMetadata : RTCEncodedFrameMetadata {
unsigned long long frameId;
sequence<unsigned long long> dependencies;
Expand All @@ -109,12 +101,11 @@ dictionary RTCEncodedVideoFrameOptions {
RTCEncodedVideoFrameMetadata metadata;
};

// New interfaces to define encoded video and audio frames. Will eventually
// re-use or extend the equivalent defined in WebCodecs.
// New interfaces to define RTC specific encoded video and audio frames used by RTCRtpScriptTransform.
[Exposed=(Window,DedicatedWorker), Serializable]
interface RTCEncodedVideoFrame {
constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {});
readonly attribute RTCEncodedVideoFrameType type;
readonly attribute EncodedVideoChunkType type;
attribute ArrayBuffer data;
RTCEncodedVideoFrameMetadata getMetadata();
};
Expand Down
2 changes: 1 addition & 1 deletion interfaces/webxr-plane-detection.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: WebXR Plane Detection Module (https://immersive-web.github.io/real-world-geometry/plane-detection.html)
// Source: WebXR Plane Detection Module (https://immersive-web.github.io/plane-detection/)

enum XRPlaneOrientation {
"horizontal",
Expand Down
4 changes: 1 addition & 3 deletions interfaces/webxrlayers.idl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ dictionary XRProjectionLayerInit {

dictionary XRLayerInit {
required XRSpace space;
XRTextureType textureType = "texture";
GLenum colorFormat = 0x1908; // RGBA
GLenum? depthFormat;
unsigned long mipLevels = 1;
Expand All @@ -129,22 +130,19 @@ dictionary XRLayerInit {
};

dictionary XRQuadLayerInit : XRLayerInit {
XRTextureType textureType = "texture";
XRRigidTransform? transform;
float width = 1.0;
float height = 1.0;
};

dictionary XRCylinderLayerInit : XRLayerInit {
XRTextureType textureType = "texture";
XRRigidTransform? transform;
float radius = 2.0;
float centralAngle = 0.78539;
float aspectRatio = 2.0;
};

dictionary XREquirectLayerInit : XRLayerInit {
XRTextureType textureType = "texture";
XRRigidTransform? transform;
float radius = 0;
float centralHorizontalAngle = 6.28318;
Expand Down