/* 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 http://mozilla.org/MPL/2.0/. */ use ipc_channel::ipc::IpcSender; use msg::constellation_msg::PipelineId; use webvr::*; pub type WebVRResult = Result; // Messages from Script thread to WebVR thread. #[derive(Deserialize, Serialize)] pub enum WebVRMsg { RegisterContext(PipelineId), UnregisterContext(PipelineId), PollEvents(IpcSender), GetDisplays(IpcSender>>), GetFrameData(PipelineId, u32, f64, f64, IpcSender>), ResetPose(PipelineId, u32, IpcSender>), RequestPresent(PipelineId, u32, IpcSender>), ExitPresent(PipelineId, u32, Option>>), CreateCompositor(u32), GetGamepads(Vec, IpcSender, VRGamepadState)>>>), Exit, }