diff options
Diffstat (limited to 'components/script/dom/xr.rs')
-rw-r--r-- | components/script/dom/xr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/xr.rs b/components/script/dom/xr.rs index 3f1e963666c..b381ef56aa1 100644 --- a/components/script/dom/xr.rs +++ b/components/script/dom/xr.rs @@ -58,6 +58,7 @@ impl Drop for XR { impl XRMethods for XR { #[allow(unrooted_must_root)] + /// https://immersive-web.github.io/webxr/#dom-xr-supportssessionmode fn SupportsSessionMode(&self, mode: XRSessionMode) -> Rc<Promise> { // XXXManishearth this should select an XR device first let promise = Promise::new(&self.global()); @@ -72,6 +73,7 @@ impl XRMethods for XR { } #[allow(unrooted_must_root)] + /// https://immersive-web.github.io/webxr/#dom-xr-requestsession fn RequestSession(&self, options: &XRSessionCreationOptions) -> Rc<Promise> { let promise = Promise::new(&self.global()); if options.mode != XRSessionMode::Immersive_vr { |