Fill in XR.requestSession

This commit is contained in:
Manish Goregaokar 2018-12-19 17:33:52 -08:00
parent 520bb23048
commit d5911816e1
5 changed files with 104 additions and 25 deletions

View file

@ -6,8 +6,8 @@
[SecureContext, Exposed=Window]
interface XR: EventTarget {
// Methods
// Promise<void> supportsSessionMode(XRSessionMode mode);
// Promise<XRSession> requestSession(optional XRSessionCreationOptions parameters);
Promise<void> supportsSessionMode(XRSessionMode mode);
Promise<XRSession> requestSession(optional XRSessionCreationOptions parameters);
// Events
// attribute EventHandler ondevicechange;

View file

@ -12,12 +12,12 @@ enum XREnvironmentBlendMode {
[SecureContext, Exposed=Window] interface XRSession : EventTarget {
// // Attributes
// readonly attribute XRSessionMode mode;
readonly attribute XRSessionMode mode;
// readonly attribute XRPresentationContext outputContext;
// readonly attribute XREnvironmentBlendMode environmentBlendMode;
// attribute double depthNear;
// attribute double depthFar;
attribute double depthNear;
attribute double depthFar;
// attribute XRLayer baseLayer;
// // Methods