mirror of
https://github.com/servo/servo.git
synced 2025-06-09 17:13:24 +00:00
Add thaw/freeze messages that can suspend/resume webcontent timers #4907
This commit is contained in:
parent
dc31d96f65
commit
c2961c94b4
6 changed files with 105 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue