mirror of
https://github.com/servo/servo.git
synced 2025-06-16 20:34:30 +00:00
* Initial interface implementation Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add event handler Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update FakeXRDevice interface Signed-off-by: Daniel Adams <msub2official@gmail.com> * Implement reset event Signed-off-by: Daniel Adams <msub2official@gmail.com> * Downcast bounded spaces Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update webxr commit Signed-off-by: Daniel Adams <msub2official@gmail.com> * fmt Signed-off-by: Daniel Adams <msub2official@gmail.com> * Adjust DomRoot usage Signed-off-by: Daniel Adams <msub2official@gmail.com> * fmt Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update manifest Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
20 lines
604 B
Text
20 lines
604 B
Text
/* 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/#xrreferencespace-interface
|
|
|
|
enum XRReferenceSpaceType {
|
|
"viewer",
|
|
"local",
|
|
"local-floor",
|
|
"bounded-floor",
|
|
"unbounded"
|
|
};
|
|
|
|
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
|
interface XRReferenceSpace : XRSpace {
|
|
[NewObject] XRReferenceSpace getOffsetReferenceSpace(XRRigidTransform originOffset);
|
|
|
|
attribute EventHandler onreset;
|
|
};
|