cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `Animation` domain.
//!
//! Method names for the `Animation` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Disables animation domain notifications.
pub const DISABLE: &str = "Animation.disable";

/// Enables animation domain notifications.
pub const ENABLE: &str = "Animation.enable";

/// Returns the current time of the an animation.
///
/// Parameters:
/// - `id`: string
///
/// Returns: `currentTime`
pub const GET_CURRENT_TIME: &str = "Animation.getCurrentTime";

/// Gets the playback rate of the document timeline.
///
/// Returns: `playbackRate`
pub const GET_PLAYBACK_RATE: &str = "Animation.getPlaybackRate";

/// Releases a set of animations to no longer be manipulated.
///
/// Parameters:
/// - `animations`: array
pub const RELEASE_ANIMATIONS: &str = "Animation.releaseAnimations";

/// Gets the remote object of the Animation.
///
/// Parameters:
/// - `animationId`: string
///
/// Returns: `remoteObject`
pub const RESOLVE_ANIMATION: &str = "Animation.resolveAnimation";

/// Seek a set of animations to a particular time within each animation.
///
/// Parameters:
/// - `animations`: array
/// - `currentTime`: number (optional)
/// - `currentTimes`: array (optional)
pub const SEEK_ANIMATIONS: &str = "Animation.seekAnimations";

/// Sets the paused state of a set of animations.
///
/// Parameters:
/// - `animations`: array
/// - `paused`: boolean
pub const SET_PAUSED: &str = "Animation.setPaused";

/// Sets the playback rate of the document timeline.
///
/// Parameters:
/// - `playbackRate`: number
pub const SET_PLAYBACK_RATE: &str = "Animation.setPlaybackRate";

/// Sets the timing of an animation node.
///
/// Parameters:
/// - `animationId`: string
/// - `duration`: number
/// - `delay`: number
pub const SET_TIMING: &str = "Animation.setTiming";