aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/msg/engine.rs
diff options
context:
space:
mode:
authorTim Kuehn <tkuehn@cmu.edu>2013-06-27 17:14:56 -0700
committerTim Kuehn <tkuehn@cmu.edu>2013-07-01 11:03:31 -0700
commitd17a1f2ad731f45286613d5651ce070cbc9bd286 (patch)
tree5f90fad8e3a99873856092f52a7320d74161c9b8 /src/components/msg/engine.rs
parentfba7ec423c99a63bdcbe16029740e7ab4e38c088 (diff)
downloadservo-d17a1f2ad731f45286613d5651ce070cbc9bd286.tar.gz
servo-d17a1f2ad731f45286613d5651ce070cbc9bd286.zip
rename engine --> constellation
Diffstat (limited to 'src/components/msg/engine.rs')
-rw-r--r--src/components/msg/engine.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/components/msg/engine.rs b/src/components/msg/engine.rs
deleted file mode 100644
index b03893d14ca..00000000000
--- a/src/components/msg/engine.rs
+++ /dev/null
@@ -1,36 +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 http://mozilla.org/MPL/2.0/. */
-
-//! The high-level interface from script to engine. Using this abstract interface helps reduce
-/// coupling between these two components
-
-use std::comm::{Chan, SharedChan};
-use extra::net::url::Url;
-use compositor::CompositorToken;
-
-pub use compositor;
-
-#[deriving(Clone)]
-pub struct EngineChan {
- chan: SharedChan<Msg>,
-}
-
-impl EngineChan {
- pub fn new(chan: Chan<Msg>) -> EngineChan {
- EngineChan {
- chan: SharedChan::new(chan),
- }
- }
- pub fn send(&self, msg: Msg) {
- self.chan.send(msg);
- }
-}
-
-pub enum Msg {
- LoadUrlMsg(Url),
- ExitMsg(Chan<()>),
- RendererReadyMsg(uint),
- TokenSurrenderMsg(~CompositorToken),
-}
-