aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 3c04fa36dda..8aa32cdcaae 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -150,7 +150,7 @@ pub enum ConstellationControlMsg {
}
/// The mouse button involved in the event.
-#[derive(Clone, Debug)]
+#[derive(Clone, Copy, Debug)]
pub enum MouseButton {
/// The left mouse button.
Left,
@@ -172,6 +172,12 @@ pub enum CompositorEvent {
MouseUpEvent(MouseButton, Point2D<f32>),
/// The mouse was moved over a point.
MouseMoveEvent(Point2D<f32>),
+ /// A touch began at a point.
+ TouchDownEvent(i32, Point2D<f32>),
+ /// A touch was moved over a point.
+ TouchMoveEvent(i32, Point2D<f32>),
+ /// A touch ended at a point.
+ TouchUpEvent(i32, Point2D<f32>),
/// A key was pressed.
KeyEvent(Key, KeyState, KeyModifiers),
}