cdp_driver/methods/headless_experimental.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! This domain provides experimental commands only supported in headless
5//! mode.
6//!
7//! Method names for the `HeadlessExperimental` domain, for use with
8//! [`CdpClient::call`](crate::CdpClient::call).
9//!
10//! This domain is experimental and may change without notice.
11
12/// Sends a BeginFrame to the target and returns when the frame was completed.
13/// Optionally captures a screenshot from the resulting frame. Requires that
14/// the target was created with enabled BeginFrameControl. Designed for use
15/// with --run-all-compositor-stages-before-draw, see also
16/// <https://goo.gle/chrome-headless-rendering> for more background.
17///
18/// Parameters:
19/// - `frameTimeTicks`: number (optional)
20/// - `interval`: number (optional)
21/// - `noDisplayUpdates`: boolean (optional)
22/// - `screenshot`: ScreenshotParams (optional)
23///
24/// Returns: `hasDamage`, `screenshotData`
25pub const BEGIN_FRAME: &str = "HeadlessExperimental.beginFrame";
26
27/// Disables headless events for the target.
28///
29/// Deprecated in the protocol.
30pub const DISABLE: &str = "HeadlessExperimental.disable";
31
32/// Enables headless events for the target.
33///
34/// Deprecated in the protocol.
35pub const ENABLE: &str = "HeadlessExperimental.enable";