LibWeb: Mark WebXR IDL definitions as experimental
This commit is contained in:
parent
f4a86c8466
commit
a83d887357
6 changed files with 12 additions and 12 deletions
|
|
@ -1,3 +1,3 @@
|
|||
// https://immersive-web.github.io/webxr/#xrlayer-interface
|
||||
[SecureContext, Exposed=Window]
|
||||
[Experimental, SecureContext, Exposed=Window]
|
||||
interface XRLayer : EventTarget {};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// https://immersive-web.github.io/webxr/#xrrenderstate-interface
|
||||
|
||||
dictionary XRRenderStateInit {
|
||||
[Experimental] dictionary XRRenderStateInit {
|
||||
double depthNear;
|
||||
double depthFar;
|
||||
boolean passthroughFullyObscured;
|
||||
|
|
@ -9,7 +9,7 @@ dictionary XRRenderStateInit {
|
|||
// FIXME: sequence<XRLayer>? layers;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRRenderState {
|
||||
[Experimental, SecureContext, Exposed=Window] interface XRRenderState {
|
||||
[FIXME] readonly attribute double depthNear;
|
||||
[FIXME] readonly attribute double depthFar;
|
||||
[FIXME] readonly attribute boolean? passthroughFullyObscured;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
#import <WebXR/XRRenderState.idl>
|
||||
|
||||
enum XRVisibilityState {
|
||||
[Experimental] enum XRVisibilityState {
|
||||
"visible",
|
||||
"visible-blurred",
|
||||
"hidden",
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRSession : EventTarget {
|
||||
[Experimental, SecureContext, Exposed=Window] interface XRSession : EventTarget {
|
||||
// Attributes
|
||||
[FIXME] readonly attribute XRVisibilityState visibilityState;
|
||||
[FIXME] readonly attribute float? frameRate;
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
#import <WebXR/XRSession.idl>
|
||||
|
||||
// https://immersive-web.github.io/webxr/#xrsessionevent-interface
|
||||
[SecureContext, Exposed=Window]
|
||||
[Experimental, SecureContext, Exposed=Window]
|
||||
interface XRSessionEvent : Event {
|
||||
constructor(DOMString type, XRSessionEventInit eventInitDict);
|
||||
[SameObject] readonly attribute XRSession session;
|
||||
};
|
||||
|
||||
dictionary XRSessionEventInit : EventInit {
|
||||
[Experimental] dictionary XRSessionEventInit : EventInit {
|
||||
required XRSession session;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRSystem : EventTarget {
|
||||
[Experimental, SecureContext, Exposed=Window] interface XRSystem : EventTarget {
|
||||
// Methods
|
||||
Promise<boolean> isSessionSupported(XRSessionMode mode);
|
||||
[NewObject] Promise<XRSession> requestSession(XRSessionMode mode, optional XRSessionInit options = {});
|
||||
|
|
@ -9,13 +9,13 @@
|
|||
[FIXME] attribute EventHandler ondevicechange;
|
||||
};
|
||||
|
||||
enum XRSessionMode {
|
||||
[Experimental] enum XRSessionMode {
|
||||
"inline",
|
||||
"immersive-vr",
|
||||
"immersive-ar"
|
||||
};
|
||||
|
||||
dictionary XRSessionInit {
|
||||
[Experimental] dictionary XRSessionInit {
|
||||
sequence<DOMString> requiredFeatures;
|
||||
sequence<DOMString> optionalFeatures;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
typedef (WebGLRenderingContext or
|
||||
WebGL2RenderingContext) XRWebGLRenderingContext;
|
||||
|
||||
dictionary XRWebGLLayerInit {
|
||||
[Experimental] dictionary XRWebGLLayerInit {
|
||||
boolean antialias = true;
|
||||
boolean depth = true;
|
||||
boolean stencil = false;
|
||||
|
|
@ -14,7 +14,7 @@ dictionary XRWebGLLayerInit {
|
|||
double framebufferScaleFactor = 1.0;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window]
|
||||
[Experimental, SecureContext, Exposed=Window]
|
||||
interface XRWebGLLayer: XRLayer {
|
||||
constructor(XRSession session,
|
||||
XRWebGLRenderingContext context,
|
||||
|
|
|
|||
Loading…
Reference in a new issue