mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
webxr: Implement XRBoundedReferenceSpace (#33176)
* Implement XRBoundedReferenceSpace Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update interfaces Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing pref condition on IDL interface Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
parent
e0e562137c
commit
c028b5c299
15 changed files with 146 additions and 72 deletions
10
components/script/dom/webidls/XRBoundedReferenceSpace.webidl
Normal file
10
components/script/dom/webidls/XRBoundedReferenceSpace.webidl
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* 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/#xrboundedreferencespace-interface
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
interface XRBoundedReferenceSpace : XRReferenceSpace {
|
||||
readonly attribute /*FrozenArray<DOMPointReadOnly>*/ any boundsGeometry;
|
||||
};
|
|
@ -14,6 +14,7 @@ enum XRReferenceSpaceType {
|
|||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
interface XRReferenceSpace : XRSpace {
|
||||
XRReferenceSpace getOffsetReferenceSpace(XRRigidTransform originOffset);
|
||||
[NewObject] XRReferenceSpace getOffsetReferenceSpace(XRRigidTransform originOffset);
|
||||
|
||||
// attribute EventHandler onreset;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue