These no longer serve any purpose now that we run the IDLGenerator on all of these files at once.
19 lines
557 B
Text
19 lines
557 B
Text
[Experimental, SecureContext, Exposed=Window] interface XRSystem : EventTarget {
|
|
// Methods
|
|
Promise<boolean> isSessionSupported(XRSessionMode mode);
|
|
[NewObject] Promise<XRSession> requestSession(XRSessionMode mode, optional XRSessionInit options = {});
|
|
|
|
// Events
|
|
[FIXME] attribute EventHandler ondevicechange;
|
|
};
|
|
|
|
[Experimental] enum XRSessionMode {
|
|
"inline",
|
|
"immersive-vr",
|
|
"immersive-ar"
|
|
};
|
|
|
|
[Experimental] dictionary XRSessionInit {
|
|
sequence<DOMString> requiredFeatures;
|
|
sequence<DOMString> optionalFeatures;
|
|
};
|