cdp-driver 0.3.0

Chrome DevTools Protocol client for AI agent browser control
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

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

/// Provides the reasons why the given layer was composited.
///
/// Parameters:
/// - `layerId`: LayerId
///
/// Returns: `compositingReasons`, `compositingReasonIds`
pub const COMPOSITING_REASONS: &str = "LayerTree.compositingReasons";

/// Disables compositing tree inspection.
pub const DISABLE: &str = "LayerTree.disable";

/// Enables compositing tree inspection.
pub const ENABLE: &str = "LayerTree.enable";

/// Returns the snapshot identifier.
///
/// Parameters:
/// - `tiles`: array
///
/// Returns: `snapshotId`
pub const LOAD_SNAPSHOT: &str = "LayerTree.loadSnapshot";

/// Returns the layer snapshot identifier.
///
/// Parameters:
/// - `layerId`: LayerId
///
/// Returns: `snapshotId`
pub const MAKE_SNAPSHOT: &str = "LayerTree.makeSnapshot";

/// `LayerTree.profileSnapshot`
///
/// Parameters:
/// - `snapshotId`: SnapshotId
/// - `minRepeatCount`: integer (optional)
/// - `minDuration`: number (optional)
/// - `clipRect`: DOM.Rect (optional)
///
/// Returns: `timings`
pub const PROFILE_SNAPSHOT: &str = "LayerTree.profileSnapshot";

/// Releases layer snapshot captured by the back-end.
///
/// Parameters:
/// - `snapshotId`: SnapshotId
pub const RELEASE_SNAPSHOT: &str = "LayerTree.releaseSnapshot";

/// Replays the layer snapshot and returns the resulting bitmap.
///
/// Parameters:
/// - `snapshotId`: SnapshotId
/// - `fromStep`: integer (optional)
/// - `toStep`: integer (optional)
/// - `scale`: number (optional)
///
/// Returns: `dataURL`
pub const REPLAY_SNAPSHOT: &str = "LayerTree.replaySnapshot";

/// Replays the layer snapshot and returns canvas log.
///
/// Parameters:
/// - `snapshotId`: SnapshotId
///
/// Returns: `commandLog`
pub const SNAPSHOT_COMMAND_LOG: &str = "LayerTree.snapshotCommandLog";