mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 20424e735a5e6ac7a474ae35d86c714272aea0e8
This commit is contained in:
parent
eac2607a06
commit
39f4d8b931
94 changed files with 1332 additions and 233 deletions
|
@ -11,16 +11,13 @@ enum WakeLockType { "screen", "system" };
|
|||
|
||||
[Constructor(WakeLockType type), SecureContext, Exposed=(DedicatedWorker,Window)]
|
||||
interface WakeLock : EventTarget {
|
||||
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
|
||||
readonly attribute WakeLockType type;
|
||||
readonly attribute boolean active;
|
||||
attribute EventHandler onactivechange;
|
||||
Promise<void> request(optional WakeLockRequestOptions options);
|
||||
Promise<void> request();
|
||||
void abort();
|
||||
static sequence<WakeLock> query(optional WakeLockQueryFilter filter);
|
||||
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
|
||||
};
|
||||
|
||||
dictionary WakeLockRequestOptions {
|
||||
AbortSignal? signal;
|
||||
};
|
||||
|
||||
dictionary WakeLockQueryFilter {
|
||||
|
|
|
@ -10,12 +10,18 @@ partial interface Navigator {
|
|||
[SecureContext, Exposed=Window] interface XR : EventTarget {
|
||||
// Methods
|
||||
Promise<void> supportsSessionMode(XRSessionMode mode);
|
||||
Promise<XRSession> requestSession(optional XRSessionCreationOptions parameters);
|
||||
Promise<XRSession> requestSession(XRSessionMode mode);
|
||||
|
||||
// Events
|
||||
attribute EventHandler ondevicechange;
|
||||
};
|
||||
|
||||
enum XRSessionMode {
|
||||
"inline",
|
||||
"immersive-vr",
|
||||
"immersive-ar"
|
||||
};
|
||||
|
||||
enum XREnvironmentBlendMode {
|
||||
"opaque",
|
||||
"additive",
|
||||
|
@ -50,19 +56,10 @@ enum XREnvironmentBlendMode {
|
|||
attribute EventHandler onselectend;
|
||||
};
|
||||
|
||||
enum XRSessionMode {
|
||||
"inline",
|
||||
"immersive-vr",
|
||||
"immersive-ar"
|
||||
};
|
||||
|
||||
dictionary XRSessionCreationOptions {
|
||||
XRSessionMode mode = "inline";
|
||||
};
|
||||
|
||||
dictionary XRRenderStateInit {
|
||||
double depthNear;
|
||||
double depthFar;
|
||||
double inlineVerticalFieldOfView;
|
||||
XRLayer? baseLayer;
|
||||
XRPresentationContext? outputContext;
|
||||
};
|
||||
|
@ -70,6 +67,7 @@ dictionary XRRenderStateInit {
|
|||
[SecureContext, Exposed=Window] interface XRRenderState {
|
||||
readonly attribute double depthNear;
|
||||
readonly attribute double depthFar;
|
||||
readonly attribute double? inlineVerticalFieldOfView;
|
||||
readonly attribute XRLayer? baseLayer;
|
||||
readonly attribute XRPresentationContext? outputContext;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue