aboutsummaryrefslogtreecommitdiffstats
path: root/components/msg/compositor_msg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/msg/compositor_msg.rs')
-rw-r--r--components/msg/compositor_msg.rs20
1 files changed, 1 insertions, 19 deletions
diff --git a/components/msg/compositor_msg.rs b/components/msg/compositor_msg.rs
index 6c48e293554..ca2a68d55bd 100644
--- a/components/msg/compositor_msg.rs
+++ b/components/msg/compositor_msg.rs
@@ -4,7 +4,7 @@
use azure::azure_hl::Color;
use constellation_msg::{Key, KeyModifiers, KeyState, PipelineId};
-use euclid::{Matrix4, Point2D, Rect, Size2D};
+use euclid::{Matrix4, Point2D, Rect};
use ipc_channel::ipc::IpcSender;
use std::fmt::{self, Debug, Formatter};
@@ -123,21 +123,3 @@ pub struct LayerProperties {
/// Whether this layer scrolls its overflow area.
pub scrolls_overflow_area: bool,
}
-
-#[derive(Deserialize, Serialize)]
-pub enum ScriptToCompositorMsg {
- ScrollFragmentPoint(PipelineId, LayerId, Point2D<f32>, bool),
- SetTitle(PipelineId, Option<String>),
- SendKeyEvent(Key, KeyState, KeyModifiers),
- GetClientWindow(IpcSender<(Size2D<u32>, Point2D<i32>)>),
- MoveTo(Point2D<i32>),
- ResizeTo(Size2D<u32>),
- TouchEventProcessed(EventResult),
- Exit,
-}
-
-#[derive(Deserialize, Serialize)]
-pub enum EventResult {
- DefaultAllowed,
- DefaultPrevented,
-}