mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
parent
3c6e16c9ad
commit
83e66d6959
9 changed files with 27 additions and 22 deletions
|
@ -156,6 +156,20 @@ pub enum DocumentState {
|
|||
Pending,
|
||||
}
|
||||
|
||||
/// For a given pipeline, whether any animations are currently running
|
||||
/// and any animation callbacks are queued
|
||||
#[derive(Clone, Eq, PartialEq, Deserialize, Serialize, Debug)]
|
||||
pub enum AnimationState {
|
||||
/// Animations are active but no callbacks are queued
|
||||
AnimationsPresent,
|
||||
/// Animations are active and callbacks are queued
|
||||
AnimationCallbacksPresent,
|
||||
/// No animations are active and no callbacks are queued
|
||||
NoAnimationsPresent,
|
||||
/// No animations are active but callbacks are queued
|
||||
NoAnimationCallbacksPresent,
|
||||
}
|
||||
|
||||
/// The type of input represented by a multi-touch event.
|
||||
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
|
||||
pub enum TouchEventType {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use AnimationState;
|
||||
use DocumentState;
|
||||
use IFrameLoadInfo;
|
||||
use MouseEventType;
|
||||
|
@ -10,7 +11,7 @@ use canvas_traits::CanvasMsg;
|
|||
use euclid::point::Point2D;
|
||||
use euclid::size::Size2D;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use msg::constellation_msg::{AnimationState, NavigationDirection, Failure, PipelineId};
|
||||
use msg::constellation_msg::{Failure, NavigationDirection, PipelineId};
|
||||
use msg::constellation_msg::{LoadData, MouseButton, SubpageId};
|
||||
use offscreen_gl_context::GLContextAttributes;
|
||||
use style_traits::viewport::ViewportConstraints;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue