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
2 changes: 0 additions & 2 deletions interfaces/badging.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
// (https://github.com/w3c/webref)
// Source: Badging API (https://w3c.github.io/badging/)

// Methods only exposed on documents.
[SecureContext]
partial interface Navigator {
Promise<undefined> setClientBadge(optional [EnforceRange] unsigned long long contents);
Promise<undefined> clearClientBadge();
};

// Methods exposed on both documents and service workers.
[SecureContext]
interface mixin NavigatorBadge {
Promise<undefined> setAppBadge(optional [EnforceRange] unsigned long long contents);
Expand Down
4 changes: 1 addition & 3 deletions interfaces/compute-pressure.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: Compute Pressure Level 1 (https://wicg.github.io/compute-pressure/)
// Source: Compute Pressure Level 1 (https://w3c.github.io/compute-pressure/)

enum PressureState { "nominal", "fair", "serious", "critical" };

Expand All @@ -24,8 +24,6 @@ interface PressureObserver {
sequence<PressureRecord> takeRecords();

[SameObject] static readonly attribute FrozenArray<PressureSource> supportedSources;

[Exposed=Window] static Promise<PermissionState> requestPermission();
};

[Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
Expand Down
2 changes: 1 addition & 1 deletion interfaces/contact-api.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-api/spec/)
// Source: Contact Picker API (https://w3c.github.io/contact-picker/spec/)

[Exposed=Window]
partial interface Navigator {
Expand Down
2 changes: 2 additions & 0 deletions interfaces/css-animations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ interface CSSKeyframeRule : CSSRule {
interface CSSKeyframesRule : CSSRule {
attribute CSSOMString name;
readonly attribute CSSRuleList cssRules;
readonly attribute unsigned long length;

getter CSSKeyframeRule (unsigned long index);
undefined appendRule(CSSOMString rule);
undefined deleteRule(CSSOMString select);
CSSKeyframeRule? findRule(CSSOMString select);
Expand Down
14 changes: 5 additions & 9 deletions interfaces/css-view-transitions.idl
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@
// Source: CSS View Transitions Module Level 1 (https://drafts.csswg.org/css-view-transitions-1/)

partial interface Document {
ViewTransition createTransition(ViewTransitionInit init);
};

dictionary ViewTransitionInit {
required UpdateDOMCallback updateDOM;
ViewTransition startViewTransition(optional UpdateDOMCallback? callback = null);
};

callback UpdateDOMCallback = Promise<any> ();

[Exposed=Window]
interface ViewTransition {
undefined skipTransition();
readonly attribute Promise<undefined> finished;
readonly attribute Promise<undefined> ready;
readonly attribute Promise<undefined> domUpdated;
undefined skipTransition();
readonly attribute Promise<undefined> finished;
readonly attribute Promise<undefined> ready;
readonly attribute Promise<undefined> domUpdated;
};
1 change: 1 addition & 0 deletions interfaces/cssom-view.idl
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,5 @@ interface VisualViewport : EventTarget {

attribute EventHandler onresize;
attribute EventHandler onscroll;
attribute EventHandler onscrollend;
};
7 changes: 1 addition & 6 deletions interfaces/event-timing.idl
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ interface EventCounts {
readonly maplike<DOMString, unsigned long long>;
};

[Exposed=Window]
interface InteractionCounts {
readonly maplike<DOMString, unsigned long long>;
};

[Exposed=Window]
partial interface Performance {
[SameObject] readonly attribute EventCounts eventCounts;
[SameObject] readonly attribute InteractionCounts interactionCounts;
readonly attribute unsigned long long interactionCount;
};

partial dictionary PerformanceObserverInit {
Expand Down
2 changes: 2 additions & 0 deletions interfaces/fetch.idl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ dictionary RequestInit {
boolean keepalive;
AbortSignal? signal;
RequestDuplex duplex;
RequestPriority priority;
any window; // can only be set to null
};

Expand All @@ -80,6 +81,7 @@ enum RequestCredentials { "omit", "same-origin", "include" };
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
enum RequestRedirect { "follow", "error", "manual" };
enum RequestDuplex { "half" };
enum RequestPriority { "high", "low", "auto" };

[Exposed=(Window,Worker)]interface Response {
constructor(optional BodyInit? body = null, optional ResponseInit init = {});
Expand Down
25 changes: 24 additions & 1 deletion interfaces/gamepad-extensions.idl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,33 @@ enum GamepadHand {
[Exposed=Window]
interface GamepadHapticActuator {
readonly attribute GamepadHapticActuatorType type;
boolean canPlayEffectType(GamepadHapticEffectType type);
Promise<GamepadHapticsResult> playEffect(
GamepadHapticEffectType type,
optional GamepadEffectParameters params = {});
Promise<boolean> pulse(double value, double duration);
Promise<GamepadHapticsResult> reset();
};

enum GamepadHapticsResult {
"complete",
"preempted"
};

enum GamepadHapticActuatorType {
"vibration"
"vibration",
"dual-rumble"
};

enum GamepadHapticEffectType {
"dual-rumble"
};

dictionary GamepadEffectParameters {
double duration = 0.0;
double startDelay = 0.0;
double strongMagnitude = 0.0;
double weakMagnitude = 0.0;
};

[Exposed=Window]
Expand Down Expand Up @@ -45,4 +67,5 @@ partial interface Gamepad {
readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators;
readonly attribute GamepadPose? pose;
readonly attribute FrozenArray<GamepadTouch>? touchEvents;
[SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
};
2 changes: 1 addition & 1 deletion interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ interface HTMLInputElement : HTMLElement {
[CEReactions] attribute DOMString formTarget;
[CEReactions] attribute unsigned long height;
attribute boolean indeterminate;
readonly attribute HTMLElement? list;
readonly attribute HTMLDataListElement? list;
[CEReactions] attribute DOMString max;
[CEReactions] attribute long maxLength;
[CEReactions] attribute DOMString min;
Expand Down
15 changes: 0 additions & 15 deletions interfaces/manifest-incubations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,3 @@ partial interface Window {
attribute EventHandler onappinstalled;
attribute EventHandler onbeforeinstallprompt;
};

[Exposed=Window] interface LaunchParams {
readonly attribute DOMString? targetURL;
readonly attribute FrozenArray<FileSystemHandle> files;
};

callback LaunchConsumer = any (LaunchParams params);

partial interface Window {
readonly attribute LaunchQueue launchQueue;
};

[Exposed=Window] interface LaunchQueue {
undefined setConsumer(LaunchConsumer consumer);
};
11 changes: 1 addition & 10 deletions interfaces/payment-handler.idl
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,10 @@ partial interface ServiceWorkerGlobalScope {

[Exposed=ServiceWorker]
interface CanMakePaymentEvent : ExtendableEvent {
constructor(DOMString type, optional CanMakePaymentEventInit eventInitDict = {});
readonly attribute USVString topOrigin;
readonly attribute USVString paymentRequestOrigin;
readonly attribute FrozenArray<PaymentMethodData> methodData;
constructor(DOMString type);
undefined respondWith(Promise<boolean> canMakePaymentResponse);
};

dictionary CanMakePaymentEventInit : ExtendableEventInit {
USVString topOrigin;
USVString paymentRequestOrigin;
sequence<PaymentMethodData> methodData;
};

partial interface ServiceWorkerGlobalScope {
attribute EventHandler onpaymentrequest;
};
Expand Down
2 changes: 1 addition & 1 deletion interfaces/performance-timeline.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: Performance Timeline Level 2 (https://w3c.github.io/performance-timeline/)
// Source: Performance Timeline (https://w3c.github.io/performance-timeline/)

partial interface Performance {
PerformanceEntryList getEntries ();
Expand Down
1 change: 0 additions & 1 deletion interfaces/permissions.idl
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ enum PermissionState {
dictionary PermissionSetParameters {
required PermissionDescriptor descriptor;
required PermissionState state;
boolean oneRealm = false;
};
10 changes: 0 additions & 10 deletions interfaces/priority-hints.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@
// (https://github.com/w3c/webref)
// Source: Priority Hints (https://wicg.github.io/priority-hints/)

enum FetchPriority { "high", "low", "auto" };

partial interface Request {
readonly attribute FetchPriority priority;
};

partial dictionary RequestInit {
FetchPriority priority;
};

partial interface HTMLImageElement {
[CEReactions] attribute DOMString fetchPriority;
};
Expand Down
2 changes: 1 addition & 1 deletion interfaces/resource-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: Resource Timing Level 2 (https://w3c.github.io/resource-timing/)
// Source: Resource Timing (https://w3c.github.io/resource-timing/)

[Exposed=(Window,Worker)]
interface PerformanceResourceTiming : PerformanceEntry {
Expand Down
1 change: 1 addition & 0 deletions interfaces/screen-capture.idl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ partial dictionary MediaTrackSettings {
boolean logicalSurface;
DOMString cursor;
boolean restrictOwnAudio;
boolean suppressLocalAudioPlayback;
};

partial dictionary MediaTrackCapabilities {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/screen-orientation.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: The Screen Orientation API (https://w3c.github.io/screen-orientation/)
// Source: Screen Orientation (https://w3c.github.io/screen-orientation/)

partial interface Screen {
[SameObject] readonly attribute ScreenOrientation orientation;
Expand Down
3 changes: 1 addition & 2 deletions interfaces/scroll-animations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ interface ViewTimeline : ScrollTimeline {
};

[Exposed=Window]
interface AnimationTimeline {
readonly attribute CSSNumberish? currentTime;
partial interface AnimationTimeline {
CSSNumericValue? getCurrentTime(optional CSSOMString rangeName);
};
6 changes: 4 additions & 2 deletions interfaces/secure-payment-confirmation.idl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dictionary SecurePaymentConfirmationRequest {
USVString payeeOrigin;
AuthenticationExtensionsClientInputs extensions;
sequence<USVString> locale;
boolean showOptOut;
};

partial dictionary AuthenticationExtensionsClientInputs {
Expand Down Expand Up @@ -52,6 +53,7 @@ dictionary PaymentCredentialInstrument {

enum TransactionAutomationMode {
"none",
"autoaccept",
"autoreject"
"autoAccept",
"autoReject",
"autoOptOut"
};
1 change: 1 addition & 0 deletions interfaces/selection-api.idl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface Selection {
undefined removeRange(Range range);
undefined removeAllRanges();
undefined empty();
StaticRange getComposedRange(ShadowRoot... shadowRoots);
undefined collapse(Node? node, optional unsigned long offset = 0);
undefined setPosition(Node? node, optional unsigned long offset = 0);
undefined collapseToStart();
Expand Down
5 changes: 5 additions & 0 deletions interfaces/web-animations.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
// (https://github.com/w3c/webref)
// Source: Web Animations (https://drafts.csswg.org/web-animations-1/)

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

dictionary DocumentTimelineOptions {
DOMHighResTimeStamp originTime = 0;
};
Expand Down
19 changes: 19 additions & 0 deletions interfaces/web-app-launch.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Web App Launch Handler API (https://wicg.github.io/web-app-launch/)

[Exposed=Window] interface LaunchParams {
readonly attribute DOMString? targetURL;
readonly attribute FrozenArray<FileSystemHandle> files;
};

callback LaunchConsumer = any (LaunchParams params);

partial interface Window {
readonly attribute LaunchQueue launchQueue;
};

[Exposed=Window] interface LaunchQueue {
undefined setConsumer(LaunchConsumer consumer);
};
Loading