diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-02-23 21:45:46 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-02-23 21:45:46 -0700 |
commit | a3ea3eed47713a4a6faa86c575bc2ac95c5fe135 (patch) | |
tree | 6a7537355c9bf6bb02f303d6bd2488df52488f19 /components/script_traits/lib.rs | |
parent | 6264e4dcdc75b83c8d08eb6bbbc9ed8412a2115c (diff) | |
parent | c2961c94b49a401d647e3f10cf04cd74aa7287c8 (diff) | |
download | servo-a3ea3eed47713a4a6faa86c575bc2ac95c5fe135.tar.gz servo-a3ea3eed47713a4a6faa86c575bc2ac95c5fe135.zip |
auto merge of #4960 : pkondzior/servo/add-script-timers-suspend-resume-functionality, r=jdm
Adds free/thaw methods to script_task that let you send suspend/resume messages to web content timers. Fixes #4907
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index cf5c63779be..7df28d29108 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -70,6 +70,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 { |