diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2020-01-09 02:45:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 02:45:49 -0500 |
commit | dbee7f7d2764af0eb2c380f15b0bd3f4fc52920e (patch) | |
tree | 6b06769a296c068bf8ad2a76fc59988ab91b64fb /components/script/dom/xrviewerpose.rs | |
parent | 95e6c7157285368281c492888f1c0b92eddeec71 (diff) | |
parent | 94e8ce5739677db8bd4c0ffbe50d035b37fafe51 (diff) | |
download | servo-dbee7f7d2764af0eb2c380f15b0bd3f4fc52920e.tar.gz servo-dbee7f7d2764af0eb2c380f15b0bd3f4fc52920e.zip |
Auto merge of #25463 - Manishearth:input-mocking, r=asajeffrey
Add input mocking, input sources change event
Depends on https://github.com/servo/webxr/pull/118
Also fixes some bugs I found.
Wanted to finish and merge this before I started on hit testing since the transient hit test stuff might have overlap.
There are a bunch of missing mock pieces that I'll probably do in a separate PR.
Still need to run tests.
Some things I skipped:
- Doing handedness/target ray setting: See https://github.com/immersive-web/webxr-test-api/issues/46 , this would require making our impl support these changing
- Handling button initial state: Would require some mock changes, but I ran out of time
- Handling profiles/etc: We don't yet have impl support for these
r? @jdm
Diffstat (limited to 'components/script/dom/xrviewerpose.rs')
-rw-r--r-- | components/script/dom/xrviewerpose.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/xrviewerpose.rs b/components/script/dom/xrviewerpose.rs index 0e64613294b..6e11944b788 100644 --- a/components/script/dom/xrviewerpose.rs +++ b/components/script/dom/xrviewerpose.rs @@ -2,6 +2,7 @@ * 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::compartments::enter_realm; use crate::dom::bindings::codegen::Bindings::XRViewBinding::XREye; use crate::dom::bindings::codegen::Bindings::XRViewerPoseBinding; use crate::dom::bindings::codegen::Bindings::XRViewerPoseBinding::XRViewerPoseMethods; @@ -40,6 +41,7 @@ impl XRViewerPose { session: &XRSession, pose: ApiViewerPose, ) -> DomRoot<XRViewerPose> { + let _ac = enter_realm(&*global); rooted_vec!(let mut views); session.with_session(|s| match s.views() { Views::Inline => views.push(XRView::new( |