mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update xr.requestSession() arguments
This commit is contained in:
parent
73f1bdac06
commit
df1f865cb2
5 changed files with 16 additions and 15 deletions
|
@ -6,8 +6,8 @@
|
|||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
interface XR: EventTarget {
|
||||
// Methods
|
||||
Promise<void> supportsSessionMode(XRSessionMode mode);
|
||||
Promise<XRSession> requestSession(optional XRSessionCreationOptions parameters = {});
|
||||
Promise<void> supportsSession(XRSessionMode mode);
|
||||
Promise<XRSession> requestSession(XRSessionMode mode, optional XRSessionInit parameters = {});
|
||||
|
||||
// Events
|
||||
// attribute EventHandler ondevicechange;
|
||||
|
@ -24,9 +24,9 @@ enum XRSessionMode {
|
|||
"immersive-ar"
|
||||
};
|
||||
|
||||
dictionary XRSessionCreationOptions {
|
||||
XRSessionMode mode = "inline";
|
||||
// XRPresentationContext outputContext;
|
||||
dictionary XRSessionInit {
|
||||
sequence<DOMString> requiredFeatures;
|
||||
sequence<DOMString> optionalFeatures;
|
||||
};
|
||||
|
||||
partial interface XR {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue