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
This commit is contained in:
bors-servo 2015-02-23 21:45:46 -07:00
commit a3ea3eed47
6 changed files with 105 additions and 9 deletions

View file

@ -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 {