mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
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:
commit
a3ea3eed47
6 changed files with 105 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue