diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2020-04-10 15:30:13 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2020-04-19 20:29:14 -0700 |
commit | 1b07b7732327852240c6c0b130f3923f3067193f (patch) | |
tree | f308401bc65299cebc134c59570f685f496e04df /components/script/dom/xrray.rs | |
parent | f1d6a89150dbfddef5eed6c7d9085f5eec25b532 (diff) | |
download | servo-1b07b7732327852240c6c0b130f3923f3067193f.tar.gz servo-1b07b7732327852240c6c0b130f3923f3067193f.zip |
Add XRSession::requestHitTestSource()
Diffstat (limited to 'components/script/dom/xrray.rs')
-rw-r--r-- | components/script/dom/xrray.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/xrray.rs b/components/script/dom/xrray.rs index 6f50820c6f0..37262732c3a 100644 --- a/components/script/dom/xrray.rs +++ b/components/script/dom/xrray.rs @@ -82,6 +82,10 @@ impl XRRay { Ok(Self::new(&window.global(), Ray { origin, direction })) } + + pub fn ray(&self) -> Ray<ApiSpace> { + self.ray + } } impl XRRayMethods for XRRay { |