Add spec links

This commit is contained in:
Manish Goregaokar 2018-12-22 22:23:40 -08:00
parent 241d93340b
commit c6c6b518cb
9 changed files with 28 additions and 2 deletions

View file

@ -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 {