Skip to content

Commit

Permalink
Sync interfaces/ with @webref/idl 3.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wpt-pr-bot authored Apr 12, 2023
1 parent f69cc2c commit c7f7780
Show file tree
Hide file tree
Showing 57 changed files with 453 additions and 478 deletions.
20 changes: 0 additions & 20 deletions interfaces/EXT_clip_cull_distance.idl

This file was deleted.

62 changes: 24 additions & 38 deletions interfaces/FedCM.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
// (https://github.com/w3c/webref)
// Source: Federated Credential Management API (https://fedidcg.github.io/FedCM/)

[Exposed=Window, SecureContext]
interface IdentityCredential : Credential {
readonly attribute USVString? token;
};

partial dictionary CredentialRequestOptions {
IdentityCredentialRequestOptions identity;
};

dictionary IdentityCredentialRequestOptions {
sequence<IdentityProviderConfig> providers;
};

dictionary IdentityProviderConfig {
required USVString configURL;
required USVString clientId;
USVString nonce;
};

dictionary IdentityProviderWellKnown {
required sequence<USVString> provider_urls;
};
Expand All @@ -16,6 +35,7 @@ dictionary IdentityProviderBranding {
USVString background_color;
USVString color;
sequence<IdentityProviderIcon> icons;
USVString name;
};

dictionary IdentityProviderAPIConfig {
Expand All @@ -30,52 +50,18 @@ dictionary IdentityProviderAccount {
required USVString name;
required USVString email;
USVString given_name;
USVString picture;
sequence<USVString> approved_clients;
};
dictionary IdentityProviderAccountList {
sequence<IdentityProviderAccount> accounts;
};

dictionary IdentityProviderClientMetadata {
USVString privacy_policy_url;
USVString terms_of_service_url;
};

dictionary IdentityProviderToken {
required USVString token;
};

[Exposed=Window, SecureContext]
interface IdentityCredential : Credential {
readonly attribute USVString? token;
};

partial dictionary CredentialRequestOptions {
IdentityCredentialRequestOptions identity;
};

dictionary IdentityCredentialRequestOptions {
sequence<IdentityProviderConfig> providers;
};

dictionary IdentityProviderConfig {
required USVString configURL;
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();
dictionary IdentityProviderClientMetadata {
USVString privacy_policy_url;
USVString terms_of_service_url;
};
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: 2 additions & 0 deletions interfaces/anchors.idl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ partial interface XRFrame {
};

partial interface XRSession {
readonly attribute FrozenArray<DOMString> persistentAnchors;

Promise<XRAnchor> restorePersistentAnchor(DOMString uuid);
Promise<undefined> deletePersistentAnchor(DOMString uuid);
};
Expand Down
10 changes: 3 additions & 7 deletions interfaces/badging.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
// (https://github.com/w3c/webref)
// Source: Badging API (https://w3c.github.io/badging/)

[SecureContext]
partial interface Navigator {
Promise<undefined> setClientBadge(optional [EnforceRange] unsigned long long contents);
Promise<undefined> clearClientBadge();
};

[SecureContext]
interface mixin NavigatorBadge {
Promise<undefined> setAppBadge(optional [EnforceRange] unsigned long long contents);
Promise<undefined> setAppBadge(
optional [EnforceRange] unsigned long long contents
);
Promise<undefined> clearAppBadge();
};

Expand Down
10 changes: 8 additions & 2 deletions interfaces/compression.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
// (https://github.com/w3c/webref)
// Source: Compression Streams (https://wicg.github.io/compression/)

enum CompressionFormat {
"deflate",
"deflate-raw",
"gzip",
};

[Exposed=*]
interface CompressionStream {
constructor(DOMString format);
constructor(CompressionFormat format);
};
CompressionStream includes GenericTransformStream;

[Exposed=*]
interface DecompressionStream {
constructor(DOMString format);
constructor(CompressionFormat format);
};
DecompressionStream includes GenericTransformStream;
7 changes: 2 additions & 5 deletions interfaces/compute-pressure.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
// (https://github.com/w3c/webref)
// Source: Compute Pressure Level 1 (https://w3c.github.io/compute-pressure/)

enum PressureState { "nominal", "fair", "serious", "critical" };
enum PressureSource { "thermals", "cpu" };

enum PressureFactor { "thermal", "power-supply" };
enum PressureState { "nominal", "fair", "serious", "critical" };

callback PressureUpdateCallback = undefined (
sequence<PressureRecord> changes,
PressureObserver observer
);

enum PressureSource { "cpu" };

[Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
interface PressureObserver {
constructor(PressureUpdateCallback callback, optional PressureObserverOptions options = {});
Expand All @@ -30,7 +28,6 @@ interface PressureObserver {
interface PressureRecord {
readonly attribute PressureSource source;
readonly attribute PressureState state;
readonly attribute FrozenArray<PressureFactor> factors;
readonly attribute DOMHighResTimeStamp time;
[Default] object toJSON();
};
Expand Down
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
4 changes: 2 additions & 2 deletions interfaces/cookie-store.idl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ enum CookieSameSite {
dictionary CookieInit {
required USVString name;
required USVString value;
EpochTimeStamp? expires = null;
DOMHighResTimeStamp? expires = null;
USVString? domain = null;
USVString path = "/";
CookieSameSite sameSite = "strict";
Expand All @@ -53,7 +53,7 @@ dictionary CookieListItem {
USVString value;
USVString? domain;
USVString path;
EpochTimeStamp? expires;
DOMHighResTimeStamp? expires;
boolean secure;
CookieSameSite sameSite;
};
Expand Down
10 changes: 10 additions & 0 deletions interfaces/css-cascade-6.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: CSS Cascading and Inheritance Level 6 (https://drafts.csswg.org/css-cascade-6/)

[Exposed=Window]
interface CSSScopeRule : CSSGroupingRule {
readonly attribute CSSOMString start;
readonly attribute CSSOMString end;
};
6 changes: 3 additions & 3 deletions interfaces/css-contain.idl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// Source: CSS Containment Module Level 2 (https://drafts.csswg.org/css-contain-2/)

[Exposed=Window]
interface ContentVisibilityAutoStateChangedEvent : Event {
constructor(DOMString type, optional ContentVisibilityAutoStateChangedEventInit eventInitDict = {});
interface ContentVisibilityAutoStateChangeEvent : Event {
constructor(DOMString type, optional ContentVisibilityAutoStateChangeEventInit eventInitDict = {});
readonly attribute boolean skipped;
};
dictionary ContentVisibilityAutoStateChangedEventInit : EventInit {
dictionary ContentVisibilityAutoStateChangeEventInit : EventInit {
boolean skipped = false;
};
4 changes: 1 addition & 3 deletions interfaces/css-typed-om.idl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ interface CSSStyleValue {
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
interface StylePropertyMapReadOnly {
iterable<USVString, sequence<CSSStyleValue>>;
any get(USVString property);
/* 'any' means (undefined or CSSStyleValue) here,
see https://github.com/heycam/webidl/issues/60 */
(undefined or CSSStyleValue) get(USVString property);
sequence<CSSStyleValue> getAll(USVString property);
boolean has(USVString property);
readonly attribute unsigned long size;
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();
};
3 changes: 1 addition & 2 deletions interfaces/device-posture.idl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ interface DevicePosture : EventTarget {

enum DevicePostureType {
"continuous",
"folded",
"folded-over"
"folded"
};
2 changes: 1 addition & 1 deletion interfaces/dom.idl
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ callback interface XPathNSResolver {

interface mixin XPathEvaluatorBase {
[NewObject] XPathExpression createExpression(DOMString expression, optional XPathNSResolver? resolver = null);
XPathNSResolver createNSResolver(Node nodeResolver);
Node createNSResolver(Node nodeResolver); // legacy
// XPathResult.ANY_TYPE = 0
XPathResult evaluate(DOMString expression, Node contextNode, optional XPathNSResolver? resolver = null, optional unsigned short type = 0, optional XPathResult? result = null);
};
Expand Down
Loading

0 comments on commit c7f7780

Please sign in to comment.