Skip to content

Commit

Permalink
Sync interfaces/ with @webref/idl 3.55.4 (#48970)
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 Nov 5, 2024
1 parent a8f6d07 commit b0c05ab
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 77 deletions.
5 changes: 5 additions & 0 deletions interfaces/fenced-frame.idl
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ interface Fence {
undefined reportEvent(optional ReportEventType event = {});
undefined setReportEventDataForAutomaticBeacons(optional FenceEvent event = {});
sequence<FencedFrameConfig> getNestedConfigs();
undefined notifyEvent(Event event);
};

partial interface Window {
// Collection of fenced frame APIs
readonly attribute Fence? fence;
};

partial interface mixin GlobalEventHandlers {
attribute EventHandler onfencedtreeclick;
};
2 changes: 2 additions & 0 deletions interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,12 @@ interface HTMLInputElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute DOMString accept;
[CEReactions] attribute boolean alpha;
[CEReactions] attribute DOMString alt;
[CEReactions] attribute DOMString autocomplete;
[CEReactions] attribute boolean defaultChecked;
attribute boolean checked;
[CEReactions] attribute DOMString colorSpace;
[CEReactions] attribute DOMString dirName;
[CEReactions] attribute boolean disabled;
readonly attribute HTMLFormElement? form;
Expand Down
52 changes: 0 additions & 52 deletions interfaces/private-aggregation-api.idl
Original file line number Diff line number Diff line change
Expand Up @@ -19,55 +19,3 @@ dictionary PAHistogramContribution {
dictionary PADebugModeOptions {
required bigint debugKey;
};

partial interface InterestGroupScriptRunnerGlobalScope {
readonly attribute PrivateAggregation privateAggregation;
};

dictionary PASignalValue {
required DOMString baseValue;
double scale;
(bigint or long) offset;
};

dictionary PAExtendedHistogramContribution {
required (PASignalValue or bigint) bucket;
required (PASignalValue or long) value;
bigint filteringId = 0;
};

[Exposed=InterestGroupScriptRunnerGlobalScope, SecureContext]
partial interface PrivateAggregation {
undefined contributeToHistogramOnEvent(
DOMString event, PAExtendedHistogramContribution contribution);
};

dictionary AuctionReportBuyersConfig {
required bigint bucket;
required double scale;
};

dictionary AuctionReportBuyerDebugModeConfig {
boolean enabled = false;

// Must only be provided if `enabled` is true.
bigint? debugKey;
};

partial dictionary AuctionAdConfig {
sequence<bigint> auctionReportBuyerKeys;
record<DOMString, AuctionReportBuyersConfig> auctionReportBuyers;
AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig;
};

dictionary ProtectedAudiencePrivateAggregationConfig {
USVString aggregationCoordinatorOrigin;
};

partial dictionary AuctionAdConfig {
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
};

partial dictionary AuctionAdInterestGroup {
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
};
1 change: 1 addition & 0 deletions interfaces/resource-timing.idl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface PerformanceResourceTiming : PerformanceEntry {
readonly attribute DOMHighResTimeStamp connectEnd;
readonly attribute DOMHighResTimeStamp secureConnectionStart;
readonly attribute DOMHighResTimeStamp requestStart;
readonly attribute DOMHighResTimeStamp finalResponseHeadersStart;
readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
readonly attribute DOMHighResTimeStamp responseStart;
readonly attribute DOMHighResTimeStamp responseEnd;
Expand Down
54 changes: 54 additions & 0 deletions interfaces/turtledove.idl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,16 @@ dictionary GenerateBidInterestGroup {
record<DOMString, sequence<DOMString>> sizeGroups;
};

dictionary ProtectedAudiencePrivateAggregationConfig {
USVString aggregationCoordinatorOrigin;
};

dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
double priority = 0.0;
record<DOMString, double> prioritySignalsOverrides;
required double lifetimeMs;
DOMString additionalBidKey;
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;
};

[SecureContext]
Expand All @@ -77,6 +82,18 @@ partial interface Navigator {
readonly attribute boolean deprecatedRunAdAuctionEnforcesKAnonymity;
};

dictionary AuctionReportBuyersConfig {
required bigint bucket;
required double scale;
};

dictionary AuctionReportBuyerDebugModeConfig {
boolean enabled = false;

// Must only be provided if `enabled` is true.
bigint? debugKey;
};

dictionary AuctionRealTimeReportingConfig {
required DOMString type;
};
Expand Down Expand Up @@ -104,7 +121,13 @@ dictionary AuctionAdConfig {
record<USVString, unsigned short> perBuyerGroupLimits;
record<USVString, unsigned short> perBuyerExperimentGroupIds;
record<USVString, record<USVString, double>> perBuyerPrioritySignals;

sequence<bigint> auctionReportBuyerKeys;
record<DOMString, AuctionReportBuyersConfig> auctionReportBuyers;
AuctionReportBuyerDebugModeConfig auctionReportBuyerDebugModeConfig;
sequence<DOMString> requiredSellerCapabilities;
ProtectedAudiencePrivateAggregationConfig privateAggregationConfig;

record<DOMString, DOMString> requestedSize;
sequence<record<DOMString, DOMString>> allSlotsRequestedSizes;
Promise<undefined> additionalBids;
Expand Down Expand Up @@ -145,13 +168,44 @@ dictionary AdAuctionDataBuyerConfig {
unsigned long targetSize;
};

dictionary StorageInterestGroup : AuctionAdInterestGroup {
unsigned long long joinCount;
unsigned long long bidCount;
sequence<PreviousWin> prevWinsMs;
USVString joiningOrigin;
long long timeSinceGroupJoinedMs;
long long lifetimeRemainingMs;
long long timeSinceLastUpdateMs;
long long timeUntilNextUpdateMs;
unsigned long long estimatedSize;
};

[SecureContext]
partial interface Navigator {
Promise<DOMString> createAuctionNonce();
};

[Exposed=InterestGroupScriptRunnerGlobalScope]
interface InterestGroupScriptRunnerGlobalScope {
readonly attribute PrivateAggregation? privateAggregation;
};

dictionary PASignalValue {
required DOMString baseValue;
double scale;
(bigint or long) offset;
};

dictionary PAExtendedHistogramContribution {
required (PASignalValue or bigint) bucket;
required (PASignalValue or long) value;
bigint filteringId = 0;
};

[Exposed=InterestGroupScriptRunnerGlobalScope]
partial interface PrivateAggregation {
undefined contributeToHistogramOnEvent(
DOMString event, PAExtendedHistogramContribution contribution);
};

[Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
Expand Down
2 changes: 1 addition & 1 deletion interfaces/user-timing.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: User Timing Level 3 (https://w3c.github.io/user-timing/)
// Source: User Timing (https://w3c.github.io/user-timing/)

dictionary PerformanceMarkOptions {
any detail;
Expand Down
1 change: 1 addition & 0 deletions interfaces/web-animations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ dictionary KeyframeAnimationOptions : KeyframeEffectOptions {

dictionary GetAnimationsOptions {
boolean subtree = false;
CSSOMString? pseudoElement = null;
};

partial interface Document {
Expand Down
8 changes: 8 additions & 0 deletions interfaces/webcodecs.idl
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ interface VideoFrame {
readonly attribute unsigned long codedHeight;
readonly attribute DOMRectReadOnly? codedRect;
readonly attribute DOMRectReadOnly? visibleRect;
readonly attribute double rotation;
readonly attribute boolean flip;
readonly attribute unsigned long displayWidth;
readonly attribute unsigned long displayHeight;
readonly attribute unsigned long long? duration; // microseconds
Expand Down Expand Up @@ -344,6 +346,9 @@ dictionary VideoFrameInit {
// aspect ratio unless an explicit displayWidth and displayHeight are given.
DOMRectInit visibleRect;

double rotation = 0;
boolean flip = false;

// Default matches image unless visibleRect is provided.
[EnforceRange] unsigned long displayWidth;
[EnforceRange] unsigned long displayHeight;
Expand All @@ -364,6 +369,9 @@ dictionary VideoFrameBufferInit {
// Default visible rect is coded size positioned at (0,0)
DOMRectInit visibleRect;

double rotation = 0;
boolean flip = false;

// Default display dimensions match visibleRect.
[EnforceRange] unsigned long displayWidth;
[EnforceRange] unsigned long displayHeight;
Expand Down
51 changes: 30 additions & 21 deletions interfaces/webgpu.idl
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ GPUPipelineLayout includes GPUObjectBase;

dictionary GPUPipelineLayoutDescriptor
: GPUObjectDescriptorBase {
required sequence<GPUBindGroupLayout> bindGroupLayouts;
required sequence<GPUBindGroupLayout?> bindGroupLayouts;
};

[Exposed=(Window, Worker), SecureContext]
Expand Down Expand Up @@ -810,22 +810,31 @@ enum GPUIndexFormat {
};

enum GPUVertexFormat {
"uint8",
"uint8x2",
"uint8x4",
"sint8",
"sint8x2",
"sint8x4",
"unorm8",
"unorm8x2",
"unorm8x4",
"snorm8",
"snorm8x2",
"snorm8x4",
"uint16",
"uint16x2",
"uint16x4",
"sint16",
"sint16x2",
"sint16x4",
"unorm16",
"unorm16x2",
"unorm16x4",
"snorm16",
"snorm16x2",
"snorm16x4",
"float16",
"float16x2",
"float16x4",
"float32",
Expand All @@ -841,6 +850,7 @@ enum GPUVertexFormat {
"sint32x3",
"sint32x4",
"unorm10-10-10-2",
"unorm8x4-bgra",
};

enum GPUVertexStepMode {
Expand All @@ -866,26 +876,26 @@ dictionary GPUVertexAttribute {
required GPUIndex32 shaderLocation;
};

dictionary GPUImageDataLayout {
dictionary GPUTexelCopyBufferLayout {
GPUSize64 offset = 0;
GPUSize32 bytesPerRow;
GPUSize32 rowsPerImage;
};

dictionary GPUImageCopyBuffer
: GPUImageDataLayout {
dictionary GPUTexelCopyBufferInfo
: GPUTexelCopyBufferLayout {
required GPUBuffer buffer;
};

dictionary GPUImageCopyTexture {
dictionary GPUTexelCopyTextureInfo {
required GPUTexture texture;
GPUIntegerCoordinate mipLevel = 0;
GPUOrigin3D origin = {};
GPUTextureAspect aspect = "all";
};

dictionary GPUImageCopyTextureTagged
: GPUImageCopyTexture {
dictionary GPUCopyExternalImageDestInfo
: GPUTexelCopyTextureInfo {
PredefinedColorSpace colorSpace = "srgb";
boolean premultipliedAlpha = false;
};
Expand All @@ -896,10 +906,10 @@ typedef (ImageBitmap or
HTMLVideoElement or
VideoFrame or
HTMLCanvasElement or
OffscreenCanvas) GPUImageCopyExternalImageSource;
OffscreenCanvas) GPUCopyExternalImageSource;

dictionary GPUImageCopyExternalImage {
required GPUImageCopyExternalImageSource source;
dictionary GPUCopyExternalImageSourceInfo {
required GPUCopyExternalImageSource source;
GPUOrigin2D origin = {};
boolean flipY = false;
};
Expand Down Expand Up @@ -929,18 +939,18 @@ interface GPUCommandEncoder {
GPUSize64 size);

undefined copyBufferToTexture(
GPUImageCopyBuffer source,
GPUImageCopyTexture destination,
GPUTexelCopyBufferInfo source,
GPUTexelCopyTextureInfo destination,
GPUExtent3D copySize);

undefined copyTextureToBuffer(
GPUImageCopyTexture source,
GPUImageCopyBuffer destination,
GPUTexelCopyTextureInfo source,
GPUTexelCopyBufferInfo destination,
GPUExtent3D copySize);

undefined copyTextureToTexture(
GPUImageCopyTexture source,
GPUImageCopyTexture destination,
GPUTexelCopyTextureInfo source,
GPUTexelCopyTextureInfo destination,
GPUExtent3D copySize);

undefined clearBuffer(
Expand Down Expand Up @@ -1145,14 +1155,14 @@ interface GPUQueue {
optional GPUSize64 size);

undefined writeTexture(
GPUImageCopyTexture destination,
GPUTexelCopyTextureInfo destination,
AllowSharedBufferSource data,
GPUImageDataLayout dataLayout,
GPUTexelCopyBufferLayout dataLayout,
GPUExtent3D size);

undefined copyExternalImageToTexture(
GPUImageCopyExternalImage source,
GPUImageCopyTextureTagged destination,
GPUCopyExternalImageSourceInfo source,
GPUCopyExternalImageDestInfo destination,
GPUExtent3D copySize);
};
GPUQueue includes GPUObjectBase;
Expand Down Expand Up @@ -1275,7 +1285,6 @@ dictionary GPUUncapturedErrorEventInit : EventInit {
};

partial interface GPUDevice {
[Exposed=(Window, Worker)]
attribute EventHandler onuncapturederror;
};

Expand Down
Loading

0 comments on commit b0c05ab

Please sign in to comment.