mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Basic XRSession interface
This commit is contained in:
parent
376426a936
commit
ebf9ccc9de
4 changed files with 74 additions and 1 deletions
41
components/script/dom/webidls/XRSession.webidl
Normal file
41
components/script/dom/webidls/XRSession.webidl
Normal file
|
@ -0,0 +1,41 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://immersive-web.github.io/webxr/#xrsession-interface
|
||||
|
||||
enum XREnvironmentBlendMode {
|
||||
"opaque",
|
||||
"additive",
|
||||
"alpha-blend",
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRSession : EventTarget {
|
||||
// // Attributes
|
||||
// readonly attribute XRSessionMode mode;
|
||||
// readonly attribute XRPresentationContext outputContext;
|
||||
// readonly attribute XREnvironmentBlendMode environmentBlendMode;
|
||||
|
||||
// attribute double depthNear;
|
||||
// attribute double depthFar;
|
||||
// attribute XRLayer baseLayer;
|
||||
|
||||
// // Methods
|
||||
// Promise<XRReferenceSpace> requestReferenceSpace(XRReferenceSpaceType type, optional XRReferenceSpaceOptions options);
|
||||
|
||||
// FrozenArray<XRInputSource> getInputSources();
|
||||
|
||||
// long requestAnimationFrame(XRFrameRequestCallback callback);
|
||||
// void cancelAnimationFrame(long handle);
|
||||
|
||||
// Promise<void> end();
|
||||
|
||||
// // Events
|
||||
// attribute EventHandler onblur;
|
||||
// attribute EventHandler onfocus;
|
||||
// attribute EventHandler onend;
|
||||
// attribute EventHandler onselect;
|
||||
// attribute EventHandler oninputsourceschange;
|
||||
// attribute EventHandler onselectstart;
|
||||
// attribute EventHandler onselectend;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue