aboutsummaryrefslogtreecommitdiffstats
path: root/components/webvr_traits
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2020-04-07 16:05:36 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2020-04-08 20:23:41 -0500
commitc611e46381c9b813aa134ac34b631145ef0c8672 (patch)
tree7b01b33a340a2b9be21ca208d40b508dff9610f0 /components/webvr_traits
parentd8781c1054ec268f19f3e716f2b5d6b56aab52cf (diff)
downloadservo-c611e46381c9b813aa134ac34b631145ef0c8672.tar.gz
servo-c611e46381c9b813aa134ac34b631145ef0c8672.zip
Remove WebVR
Diffstat (limited to 'components/webvr_traits')
-rw-r--r--components/webvr_traits/Cargo.toml17
-rw-r--r--components/webvr_traits/lib.rs39
-rw-r--r--components/webvr_traits/webvr_traits.rs40
3 files changed, 0 insertions, 96 deletions
diff --git a/components/webvr_traits/Cargo.toml b/components/webvr_traits/Cargo.toml
deleted file mode 100644
index 21627877ac8..00000000000
--- a/components/webvr_traits/Cargo.toml
+++ /dev/null
@@ -1,17 +0,0 @@
-[package]
-name = "webvr_traits"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-edition = "2018"
-publish = false
-
-[lib]
-name = "webvr_traits"
-path = "lib.rs"
-
-[dependencies]
-ipc-channel = "0.14"
-msg = {path = "../msg"}
-rust-webvr-api = {version = "0.17", features = ["ipc"]}
-serde = "1.0"
diff --git a/components/webvr_traits/lib.rs b/components/webvr_traits/lib.rs
deleted file mode 100644
index a00af7b5df6..00000000000
--- a/components/webvr_traits/lib.rs
+++ /dev/null
@@ -1,39 +0,0 @@
-/* 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/. */
-
-#![deny(unsafe_code)]
-
-#[macro_use]
-extern crate serde;
-
-mod webvr_traits;
-
-pub use crate::webvr_traits::{WebVRMsg, WebVRResult};
-pub use rust_webvr_api as webvr;
-pub use rust_webvr_api::VRDisplayCapabilities as WebVRDisplayCapabilities;
-pub use rust_webvr_api::VRDisplayData as WebVRDisplayData;
-pub use rust_webvr_api::VRDisplayEvent as WebVRDisplayEvent;
-pub use rust_webvr_api::VRDisplayEventReason as WebVRDisplayEventReason;
-pub use rust_webvr_api::VREvent as WebVREvent;
-pub use rust_webvr_api::VREye as WebVREye;
-pub use rust_webvr_api::VREyeParameters as WebVREyeParameters;
-pub use rust_webvr_api::VRFieldOfView as WebVRFieldOfView;
-pub use rust_webvr_api::VRFrameData as WebVRFrameData;
-pub use rust_webvr_api::VRFutureFrameData as WebVRFutureFrameData;
-pub use rust_webvr_api::VRGamepadButton as WebVRGamepadButton;
-pub use rust_webvr_api::VRGamepadData as WebVRGamepadData;
-pub use rust_webvr_api::VRGamepadEvent as WebVRGamepadEvent;
-pub use rust_webvr_api::VRGamepadHand as WebVRGamepadHand;
-pub use rust_webvr_api::VRGamepadState as WebVRGamepadState;
-pub use rust_webvr_api::VRLayer as WebVRLayer;
-pub use rust_webvr_api::VRMainThreadHeartbeat as WebVRMainThreadHeartbeat;
-pub use rust_webvr_api::VRPose as WebVRPose;
-pub use rust_webvr_api::VRStageParameters as WebVRStageParameters;
-pub use rust_webvr_api::{MockVRControlMsg, MockVRInit, MockVRView};
-
-#[derive(Deserialize, Serialize)]
-pub struct WebVRPoseInformation {
- pub frame: WebVRFutureFrameData,
- pub gamepads: Vec<(u32, WebVRGamepadState)>,
-}
diff --git a/components/webvr_traits/webvr_traits.rs b/components/webvr_traits/webvr_traits.rs
deleted file mode 100644
index 573aca76ab2..00000000000
--- a/components/webvr_traits/webvr_traits.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-/* 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 ipc_channel::ipc::IpcSender;
-use msg::constellation_msg::PipelineId;
-use rust_webvr_api::*;
-
-pub type WebVRResult<T> = Result<T, String>;
-
-// Messages from Script thread to WebVR thread.
-#[derive(Debug, Deserialize, Serialize)]
-pub enum WebVRMsg {
- RegisterContext(PipelineId),
- UnregisterContext(PipelineId),
- PollEvents(IpcSender<bool>),
- GetDisplays(IpcSender<WebVRResult<Vec<VRDisplayData>>>),
- GetFrameData(
- PipelineId,
- u32,
- f64,
- f64,
- IpcSender<WebVRResult<VRFrameData>>,
- ),
- ResetPose(PipelineId, u32, IpcSender<WebVRResult<VRDisplayData>>),
- RequestPresent(PipelineId, u32, IpcSender<WebVRResult<()>>),
- ExitPresent(PipelineId, u32, Option<IpcSender<WebVRResult<()>>>),
- CreateCompositor(u32),
- CreateMockDisplay(MockVRInit),
- MessageMockDisplay(MockVRControlMsg),
- GetGamepads(
- Vec<u32>,
- IpcSender<WebVRResult<Vec<(Option<VRGamepadData>, VRGamepadState)>>>,
- ),
- GetGamepadsForDisplay(
- u32,
- IpcSender<WebVRResult<Vec<(VRGamepadData, VRGamepadState)>>>,
- ),
- Exit,
-}