diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2015-11-14 16:01:34 -0800 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2015-11-16 23:10:53 -0800 |
commit | 19294db6e5ffc9e85b4b628ef8dc6c72636c70a7 (patch) | |
tree | 60c26784064e9fecc12f8bd7b44686ceb7b8472a /components/script_traits/lib.rs | |
parent | afe03870ce1a5a65b4c22f2e64155259da8b4609 (diff) | |
download | servo-19294db6e5ffc9e85b4b628ef8dc6c72636c70a7.tar.gz servo-19294db6e5ffc9e85b4b628ef8dc6c72636c70a7.zip |
Split ConstellationMsg into ScriptMsg and CompositorMsg
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 12ed3776bb5..337f07fda05 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -31,6 +31,7 @@ use euclid::rect::Rect; use ipc_channel::ipc::{IpcReceiver, IpcSender}; use libc::c_void; use msg::compositor_msg::{Epoch, LayerId, ScriptToCompositorMsg}; +use msg::constellation_msg::ScriptMsg as ConstellationMsg; use msg::constellation_msg::{ConstellationChan, Failure, PipelineId, WindowSizeData}; use msg::constellation_msg::{Key, KeyModifiers, KeyState, LoadData, SubpageId}; use msg::constellation_msg::{MozBrowserEvent, PipelineNamespaceId}; @@ -253,7 +254,7 @@ pub struct InitialScriptState { /// A port on which messages sent by the constellation to script can be received. pub control_port: Receiver<ConstellationControlMsg>, /// A channel on which messages can be sent to the constellation from script. - pub constellation_chan: ConstellationChan, + pub constellation_chan: ConstellationChan<ConstellationMsg>, /// A channel to schedule timer events. pub scheduler_chan: IpcSender<TimerEventRequest>, /// Information that script sends out when it panics. |