aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/msg
diff options
context:
space:
mode:
authorTim Kuehn <tkuehn@cmu.edu>2013-06-28 16:45:56 -0700
committerTim Kuehn <tkuehn@cmu.edu>2013-07-02 17:26:30 -0700
commita6eaffcd93c27fdec4f67eb0ebeeca7269fee013 (patch)
treee60223997b6d302f21e8bdc5f871dc8ea244c321 /src/components/msg
parentd17a1f2ad731f45286613d5651ce070cbc9bd286 (diff)
downloadservo-a6eaffcd93c27fdec4f67eb0ebeeca7269fee013.tar.gz
servo-a6eaffcd93c27fdec4f67eb0ebeeca7269fee013.zip
forward/back navigation with shift+backspace and backspace
script caches last loaded url -- currently no caching policy naive caching of render layers for near-instant forward/back handling evicted pipelines is currently broken
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,
+}