aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits
diff options
context:
space:
mode:
authorPawel Kondzior <pawel@kondzior.com>2015-02-19 11:20:55 +0700
committerPawel Kondzior <pawel@kondzior.com>2015-02-24 05:33:27 +0100
commitc2961c94b49a401d647e3f10cf04cd74aa7287c8 (patch)
tree710a28fef8f76006e6978ab37ee7521774fd487d /components/script_traits
parentdc31d96f65246def19cb7a23f3a62795cd7344a1 (diff)
downloadservo-c2961c94b49a401d647e3f10cf04cd74aa7287c8.tar.gz
servo-c2961c94b49a401d647e3f10cf04cd74aa7287c8.zip
Add thaw/freeze messages that can suspend/resume webcontent timers #4907
Diffstat (limited to 'components/script_traits')
-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 {