mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add empty XRPose interface
This commit is contained in:
parent
08079c4d28
commit
e1f0ad7b7c
3 changed files with 31 additions and 0 deletions
|
@ -537,6 +537,7 @@ pub mod xmlserializer;
|
|||
pub mod xr;
|
||||
pub mod xrframe;
|
||||
pub mod xrlayer;
|
||||
pub mod xrpose;
|
||||
pub mod xrreferencespace;
|
||||
pub mod xrrenderstate;
|
||||
pub mod xrrigidtransform;
|
||||
|
|
11
components/script/dom/webidls/XRPose.webidl
Normal file
11
components/script/dom/webidls/XRPose.webidl
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* 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/#xrpose-interface
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
interface XRPose {
|
||||
// readonly attribute XRRigidTransform transform;
|
||||
// readonly attribute boolean emulatedPosition;
|
||||
};
|
19
components/script/dom/xrpose.rs
Normal file
19
components/script/dom/xrpose.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* 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/. */
|
||||
|
||||
use crate::dom::bindings::reflector::Reflector;
|
||||
use dom_struct::dom_struct;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct XRPose {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
||||
impl XRPose {
|
||||
pub fn new_inherited() -> XRPose {
|
||||
XRPose {
|
||||
reflector_: Reflector::new(),
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue