mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
parent
6d2f70a4fd
commit
be2cb665de
19 changed files with 315 additions and 68 deletions
|
@ -223,7 +223,7 @@ pub enum Msg {
|
|||
/// Dispatch a mozbrowser event to a given iframe. Only available in experimental mode.
|
||||
MozBrowserEvent(PipelineId, SubpageId, MozBrowserEvent),
|
||||
/// Indicates whether this pipeline is currently running animations.
|
||||
ChangeRunningAnimationsState(PipelineId, bool),
|
||||
ChangeRunningAnimationsState(PipelineId, AnimationState),
|
||||
/// Requests that the constellation instruct layout to begin a new tick of the animation.
|
||||
TickAnimation(PipelineId),
|
||||
// Request that the constellation send the current root pipeline id over a provided channel
|
||||
|
@ -236,6 +236,14 @@ pub enum Msg {
|
|||
WebDriverCommand(PipelineId, WebDriverScriptCommand)
|
||||
}
|
||||
|
||||
#[derive(Clone, Eq, PartialEq)]
|
||||
pub enum AnimationState {
|
||||
AnimationsPresent,
|
||||
AnimationCallbacksPresent,
|
||||
NoAnimationsPresent,
|
||||
NoAnimationCallbacksPresent,
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/Using_the_Browser_API#Events
|
||||
pub enum MozBrowserEvent {
|
||||
/// Sent when the scroll position within a browser <iframe> changes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue