Skip to content

Commit

Permalink
Sync interfaces/ with @webref/idl 3.60.0 (#50799)
Browse files Browse the repository at this point in the history
Co-authored-by: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and wpt-pr-bot authored Feb 19, 2025
1 parent bbb5c43 commit c42888a
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 21 deletions.
2 changes: 1 addition & 1 deletion interfaces/fedcm.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dictionary IdentityCredentialDisconnectOptions : IdentityProviderConfig {

[Exposed=Window, SecureContext]
interface IdentityCredential : Credential {
static Promise<undefined> disconnect(optional IdentityCredentialDisconnectOptions options = {});
static Promise<undefined> disconnect(IdentityCredentialDisconnectOptions options);
readonly attribute USVString? token;
readonly attribute boolean isAutoSelected;
};
Expand Down
9 changes: 0 additions & 9 deletions interfaces/gamepad-extensions.idl
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,10 @@ interface GamepadPose {
readonly attribute Float32Array? angularAcceleration;
};

[Exposed=Window, SecureContext]
interface GamepadTouch {
readonly attribute unsigned long touchId;
readonly attribute octet surfaceId;
readonly attribute Float32Array position;
readonly attribute Uint32Array? surfaceDimensions;
};

partial interface Gamepad {
readonly attribute GamepadHand hand;
readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators;
readonly attribute GamepadPose? pose;
readonly attribute FrozenArray<GamepadTouch>? touchEvents;
};

[Exposed=Window]
Expand Down
8 changes: 8 additions & 0 deletions interfaces/gamepad.idl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface Gamepad {
readonly attribute GamepadMappingType mapping;
readonly attribute FrozenArray<double> axes;
readonly attribute FrozenArray<GamepadButton> buttons;
readonly attribute FrozenArray<GamepadTouch> touches;
[SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
};

Expand All @@ -22,6 +23,13 @@ interface GamepadButton {
readonly attribute double value;
};

dictionary GamepadTouch {
unsigned long touchId;
octet surfaceId;
DOMPointReadOnly position;
DOMRectReadOnly? surfaceDimensions;
};

enum GamepadMappingType {
"",
"standard",
Expand Down
2 changes: 1 addition & 1 deletion interfaces/media-capabilities.idl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ dictionary MediaCapabilitiesInfo {
};

dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
required MediaKeySystemAccess keySystemAccess;
required MediaKeySystemAccess? keySystemAccess;
MediaDecodingConfiguration configuration;
};

Expand Down
2 changes: 1 addition & 1 deletion interfaces/mediacapture-surface-control.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

partial interface CaptureController {
sequence<long> getSupportedZoomLevels();
long getZoomLevel();
readonly attribute long? zoomLevel;
Promise<undefined> increaseZoomLevel();
Promise<undefined> decreaseZoomLevel();
Promise<undefined> resetZoomLevel();
Expand Down
66 changes: 66 additions & 0 deletions interfaces/ppa.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Privacy-Preserving Attribution: Level 1 (https://w3c.github.io/ppa/)

partial interface Navigator {
[SecureContext, SameObject] readonly attribute PrivateAttribution privateAttribution;
};

enum PrivateAttributionProtocol { "dap-12-histogram", "tee-00" };

dictionary PrivateAttributionAggregationService {
required DOMString url;
required DOMString protocol;
};

[SecureContext, Exposed=Window]
interface PrivateAttributionAggregationServices {
readonly setlike<PrivateAttributionAggregationService>;
};

[SecureContext, Exposed=Window]
interface PrivateAttribution {
readonly attribute PrivateAttributionAggregationServices aggregationServices;
};

dictionary PrivateAttributionImpressionOptions {
required unsigned long histogramIndex;
required unsigned long filterData;
required DOMString conversionSite;
unsigned long lifetimeDays = 30;
};

[SecureContext, Exposed=Window]
partial interface PrivateAttribution {
undefined saveImpression(PrivateAttributionImpressionOptions options);
};

dictionary PrivateAttributionConversionOptions {
required DOMString aggregationService;
double epsilon = 1.0;

required unsigned long histogramSize;

PrivateAttributionLogic logic = "last-touch";
unsigned long value = 1;
unsigned long maxValue = 1;

unsigned long lookbackDays;
unsigned long filterData;
sequence<DOMString> impressionSites = [];
sequence<DOMString> intermediarySites = [];
};

dictionary PrivateAttributionConversionResult {
required Uint8Array report;
};

[SecureContext, Exposed=Window]
partial interface PrivateAttribution {
Promise<PrivateAttributionConversionResult> measureConversion(PrivateAttributionConversionOptions options);
};

enum PrivateAttributionLogic {
"last-touch",
};
4 changes: 2 additions & 2 deletions interfaces/speech-api.idl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ interface SpeechRecognition : EventTarget {
undefined start(MediaStreamTrack audioTrack);
undefined stop();
undefined abort();
boolean onDeviceWebSpeechAvailable(DOMString lang);
boolean installOnDeviceSpeechRecognition(DOMString lang);
static Promise<boolean> availableOnDevice(DOMString lang);
static Promise<boolean> installOnDevice(DOMString lang);

// event methods
attribute EventHandler onaudiostart;
Expand Down
7 changes: 0 additions & 7 deletions interfaces/webnn.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,13 @@ interface mixin NavigatorML {
Navigator includes NavigatorML;
WorkerNavigator includes NavigatorML;

enum MLDeviceType {
"cpu",
"gpu",
"npu"
};

enum MLPowerPreference {
"default",
"high-performance",
"low-power"
};

dictionary MLContextOptions {
MLDeviceType deviceType = "cpu";
MLPowerPreference powerPreference = "default";
};

Expand Down

0 comments on commit c42888a

Please sign in to comment.