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.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 6bee3c388d1..aedb11f2dd5 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -71,6 +71,10 @@ pub enum ConstellationControlMsg {
Viewport(PipelineId, Rect<f32>),
/// Requests that the script task immediately send the constellation the title of a pipeline.
GetTitle(PipelineId),
+ /// Notifies script task to suspend all its timers
+ Freeze(PipelineId),
+ /// Notifies script task to resume all its timers
+ Thaw(PipelineId)
}
unsafe impl Send for ConstellationControlMsg {