diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-07-08 17:17:13 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-07-11 11:12:59 -0700 |
commit | 8780edb16563ac7d519091023a9ecf894c21fd0f (patch) | |
tree | 0768b81fc7feaadbe8351d187335dfe87790e313 /components/script/dom/xrinputsource.rs | |
parent | 104a712a28beef693d727170bf25684bb618e5aa (diff) | |
download | servo-8780edb16563ac7d519091023a9ecf894c21fd0f.tar.gz servo-8780edb16563ac7d519091023a9ecf894c21fd0f.zip |
Hook webxr data into XRFrame/XRView/XRSpace
Diffstat (limited to 'components/script/dom/xrinputsource.rs')
-rw-r--r-- | components/script/dom/xrinputsource.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/xrinputsource.rs b/components/script/dom/xrinputsource.rs index 2b623864d56..108ca16b9fc 100644 --- a/components/script/dom/xrinputsource.rs +++ b/components/script/dom/xrinputsource.rs @@ -10,10 +10,10 @@ use crate::dom::bindings::codegen::Bindings::XRInputSourceBinding::{ use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector}; use crate::dom::bindings::root::{Dom, DomRoot, MutNullableDom}; use crate::dom::globalscope::GlobalScope; -use crate::dom::xrsession::XRSession; +use crate::dom::xrsession::{ApiPose, XRSession}; use crate::dom::xrspace::XRSpace; use dom_struct::dom_struct; -use webvr_traits::{WebVRGamepadData, WebVRGamepadHand, WebVRGamepadState, WebVRPose}; +use webvr_traits::{WebVRGamepadData, WebVRGamepadHand, WebVRGamepadState}; #[dom_struct] pub struct XRInputSource { @@ -58,8 +58,8 @@ impl XRInputSource { *self.state.borrow_mut() = state; } - pub fn pose(&self) -> WebVRPose { - self.state.borrow().pose + pub fn pose(&self) -> ApiPose { + unimplemented!() } } |