aboutsummaryrefslogtreecommitdiffstats
path: root/components/webvr_traits
diff options
context:
space:
mode:
Diffstat (limited to 'components/webvr_traits')
-rw-r--r--components/webvr_traits/lib.rs38
-rw-r--r--components/webvr_traits/webvr_traits.rs2
2 files changed, 19 insertions, 21 deletions
diff --git a/components/webvr_traits/lib.rs b/components/webvr_traits/lib.rs
index d1d33111eb0..299e7090fc3 100644
--- a/components/webvr_traits/lib.rs
+++ b/components/webvr_traits/lib.rs
@@ -4,29 +4,27 @@
#![deny(unsafe_code)]
-extern crate ipc_channel;
-extern crate msg;
#[macro_use]
extern crate serde;
-pub extern crate rust_webvr_api as webvr;
mod webvr_traits;
-pub use crate::webvr::VRDisplayCapabilities as WebVRDisplayCapabilities;
-pub use crate::webvr::VRDisplayData as WebVRDisplayData;
-pub use crate::webvr::VRDisplayEvent as WebVRDisplayEvent;
-pub use crate::webvr::VRDisplayEventReason as WebVRDisplayEventReason;
-pub use crate::webvr::VREvent as WebVREvent;
-pub use crate::webvr::VREye as WebVREye;
-pub use crate::webvr::VREyeParameters as WebVREyeParameters;
-pub use crate::webvr::VRFieldOfView as WebVRFieldOfView;
-pub use crate::webvr::VRFrameData as WebVRFrameData;
-pub use crate::webvr::VRGamepadButton as WebVRGamepadButton;
-pub use crate::webvr::VRGamepadData as WebVRGamepadData;
-pub use crate::webvr::VRGamepadEvent as WebVRGamepadEvent;
-pub use crate::webvr::VRGamepadHand as WebVRGamepadHand;
-pub use crate::webvr::VRGamepadState as WebVRGamepadState;
-pub use crate::webvr::VRLayer as WebVRLayer;
-pub use crate::webvr::VRPose as WebVRPose;
-pub use crate::webvr::VRStageParameters as WebVRStageParameters;
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::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::VRPose as WebVRPose;
+pub use rust_webvr_api::VRStageParameters as WebVRStageParameters;
diff --git a/components/webvr_traits/webvr_traits.rs b/components/webvr_traits/webvr_traits.rs
index e8d6b7330a6..5a9f0a2e6ad 100644
--- a/components/webvr_traits/webvr_traits.rs
+++ b/components/webvr_traits/webvr_traits.rs
@@ -2,9 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use crate::webvr::*;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::PipelineId;
+use rust_webvr_api::*;
pub type WebVRResult<T> = Result<T, String>;