aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/msg
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/msg')
-rw-r--r--src/components/msg/compositor.rs2
-rw-r--r--src/components/msg/constellation.rs5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/components/msg/compositor.rs b/src/components/msg/compositor.rs
index 6d8fe2ecc50..d677cdfdaf1 100644
--- a/src/components/msg/compositor.rs
+++ b/src/components/msg/compositor.rs
@@ -8,6 +8,7 @@ use geom::rect::Rect;
use geom::size::Size2D;
use std::util::NonCopyable;
+#[deriving(Clone)]
pub struct LayerBuffer {
draw_target: DrawTarget,
@@ -23,6 +24,7 @@ pub struct LayerBuffer {
/// A set of layer buffers. This is an atomic unit used to switch between the front and back
/// buffers.
+#[deriving(Clone)]
pub struct LayerBufferSet {
buffers: ~[LayerBuffer]
}
diff --git a/src/components/msg/constellation.rs b/src/components/msg/constellation.rs
index b0b97ba528a..aa6442a525d 100644
--- a/src/components/msg/constellation.rs
+++ b/src/components/msg/constellation.rs
@@ -27,8 +27,13 @@ impl ConstellationChan {
pub enum Msg {
LoadUrlMsg(Url),
+ NavigateMsg(NavigationDirection),
ExitMsg(Chan<()>),
RendererReadyMsg(uint),
TokenSurrenderMsg(~CompositorToken),
}
+pub enum NavigationDirection {
+ Forward,
+ Back,
+}