mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add spec links
This commit is contained in:
parent
241d93340b
commit
c6c6b518cb
9 changed files with 28 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue