mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fill in XR.requestSession
This commit is contained in:
parent
520bb23048
commit
d5911816e1
5 changed files with 104 additions and 25 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue