aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrtest.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-07-16 16:14:26 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-07-16 22:17:22 -0700
commitffc943fec7cda035d4dacdec044409686e90bb86 (patch)
tree2c79c8c4687ce7d4a6871aa53697a970ac76a640 /components/script/dom/xrtest.rs
parentdf1f865cb2f1baaf398641a92542f5b015a3304e (diff)
downloadservo-ffc943fec7cda035d4dacdec044409686e90bb86.tar.gz
servo-ffc943fec7cda035d4dacdec044409686e90bb86.zip
Add stubs for session start/end
Diffstat (limited to 'components/script/dom/xrtest.rs')
-rw-r--r--components/script/dom/xrtest.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/xrtest.rs b/components/script/dom/xrtest.rs
index 8049b9ffa41..3e695bc1f5e 100644
--- a/components/script/dom/xrtest.rs
+++ b/components/script/dom/xrtest.rs
@@ -170,4 +170,12 @@ impl XRTestMethods for XRTest {
// XXXManishearth actually check for activation in XRSession
let _ = f.Call__(vec![], ExceptionHandling::Rethrow);
}
+
+ /// https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
+ fn DisconnectAllDevices(&self) -> Rc<Promise> {
+ // XXXManishearth implement device disconnection and session ending
+ let p = Promise::new(&self.global());
+ p.resolve_native(&());
+ p
+ }
}