aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrpose.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-04-03 10:39:34 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-04-03 23:55:33 -0700
commite1f0ad7b7ce2022d0e61c15bfa6b476e1a265605 (patch)
tree0f32cc6d88c6edc57ecd711331af1fbc028a77cf /components/script/dom/xrpose.rs
parent08079c4d2809785bd14359a9a484d5108f8467cb (diff)
downloadservo-e1f0ad7b7ce2022d0e61c15bfa6b476e1a265605.tar.gz
servo-e1f0ad7b7ce2022d0e61c15bfa6b476e1a265605.zip
Add empty XRPose interface
Diffstat (limited to 'components/script/dom/xrpose.rs')
-rw-r--r--components/script/dom/xrpose.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/components/script/dom/xrpose.rs b/components/script/dom/xrpose.rs
new file mode 100644
index 00000000000..98ab1914915
--- /dev/null
+++ b/components/script/dom/xrpose.rs
@@ -0,0 +1,19 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+
+use crate::dom::bindings::reflector::Reflector;
+use dom_struct::dom_struct;
+
+#[dom_struct]
+pub struct XRPose {
+ reflector_: Reflector,
+}
+
+impl XRPose {
+ pub fn new_inherited() -> XRPose {
+ XRPose {
+ reflector_: Reflector::new(),
+ }
+ }
+}