mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add stubs for session start/end
This commit is contained in:
parent
df1f865cb2
commit
ffc943fec7
4 changed files with 18 additions and 2 deletions
|
@ -288,6 +288,14 @@ impl XRSessionMethods for XRSession {
|
|||
.map(|x| DomRoot::from_ref(&**x))
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// https://immersive-web.github.io/webxr/#dom-xrsession-end
|
||||
fn End(&self) -> Rc<Promise> {
|
||||
// XXXManishearth implement device disconnection and session ending
|
||||
let p = Promise::new(&self.global());
|
||||
p.resolve_native(&());
|
||||
p
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue