Skip to content

Commit

Permalink
Format components webvr_traits #21373
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Sep 3, 2018
1 parent 577830d commit 9846807
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/webvr_traits/lib.rs
Expand Up @@ -6,7 +6,8 @@

extern crate ipc_channel;
extern crate msg;
#[macro_use] extern crate serde;
#[macro_use]
extern crate serde;
pub extern crate rust_webvr_api as webvr;

mod webvr_traits;
Expand Down
13 changes: 11 additions & 2 deletions components/webvr_traits/webvr_traits.rs
Expand Up @@ -15,11 +15,20 @@ pub enum WebVRMsg {
UnregisterContext(PipelineId),
PollEvents(IpcSender<bool>),
GetDisplays(IpcSender<WebVRResult<Vec<VRDisplayData>>>),
GetFrameData(PipelineId, u32, f64, f64, IpcSender<WebVRResult<VRFrameData>>),
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),
GetGamepads(Vec<u32>, IpcSender<WebVRResult<Vec<(Option<VRGamepadData>, VRGamepadState)>>>),
GetGamepads(
Vec<u32>,
IpcSender<WebVRResult<Vec<(Option<VRGamepadData>, VRGamepadState)>>>,
),
Exit,
}

0 comments on commit 9846807

Please sign in to comment.