aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/vrdisplayevent.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-05-25 07:12:11 -0500
committerGitHub <noreply@github.com>2017-05-25 07:12:11 -0500
commit3c267d7fddd036f6bcc9ebf000ed37665cf7496d (patch)
tree1b643c9429d03dc56196a3771b9a8f1b22ab9a4f /components/script/dom/vrdisplayevent.rs
parent7780ef5e431b7c346c0f50ff914fbda9b5017900 (diff)
parent5ac106cbbe30054ee9440082049ccad0595937d5 (diff)
downloadservo-3c267d7fddd036f6bcc9ebf000ed37665cf7496d.tar.gz
servo-3c267d7fddd036f6bcc9ebf000ed37665cf7496d.zip
Auto merge of #17031 - MortimerGoro:update_webvr, r=emilio
Update rust-webvr <!-- Please describe your changes on the following line: --> Required for https://github.com/servo/servo/issues/16556 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17031) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/vrdisplayevent.rs')
-rw-r--r--components/script/dom/vrdisplayevent.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/script/dom/vrdisplayevent.rs b/components/script/dom/vrdisplayevent.rs
index 956229ead4c..4db24687dcc 100644
--- a/components/script/dom/vrdisplayevent.rs
+++ b/components/script/dom/vrdisplayevent.rs
@@ -66,7 +66,12 @@ impl VRDisplayEvent {
WebVRDisplayEvent::Blur(_) => ("blur", None),
WebVRDisplayEvent::Focus(_) => ("focus", None),
WebVRDisplayEvent::PresentChange(_, _) => ("presentchange", None),
- WebVRDisplayEvent::Change(_) => panic!("VRDisplayEvent:Change event not available in WebVR")
+ WebVRDisplayEvent::Change(_) |
+ WebVRDisplayEvent::Pause(_) |
+ WebVRDisplayEvent::Resume(_) |
+ WebVRDisplayEvent::Exit(_) => {
+ panic!("{:?} event not available in WebVR", event)
+ }
};
// map to JS enum values