cdp_driver/methods/layer_tree.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `LayerTree` domain.
5//!
6//! Method names for the `LayerTree` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8//!
9//! This domain is experimental and may change without notice.
10
11/// Provides the reasons why the given layer was composited.
12///
13/// Parameters:
14/// - `layerId`: LayerId
15///
16/// Returns: `compositingReasons`, `compositingReasonIds`
17pub const COMPOSITING_REASONS: &str = "LayerTree.compositingReasons";
18
19/// Disables compositing tree inspection.
20pub const DISABLE: &str = "LayerTree.disable";
21
22/// Enables compositing tree inspection.
23pub const ENABLE: &str = "LayerTree.enable";
24
25/// Returns the snapshot identifier.
26///
27/// Parameters:
28/// - `tiles`: array
29///
30/// Returns: `snapshotId`
31pub const LOAD_SNAPSHOT: &str = "LayerTree.loadSnapshot";
32
33/// Returns the layer snapshot identifier.
34///
35/// Parameters:
36/// - `layerId`: LayerId
37///
38/// Returns: `snapshotId`
39pub const MAKE_SNAPSHOT: &str = "LayerTree.makeSnapshot";
40
41/// `LayerTree.profileSnapshot`
42///
43/// Parameters:
44/// - `snapshotId`: SnapshotId
45/// - `minRepeatCount`: integer (optional)
46/// - `minDuration`: number (optional)
47/// - `clipRect`: DOM.Rect (optional)
48///
49/// Returns: `timings`
50pub const PROFILE_SNAPSHOT: &str = "LayerTree.profileSnapshot";
51
52/// Releases layer snapshot captured by the back-end.
53///
54/// Parameters:
55/// - `snapshotId`: SnapshotId
56pub const RELEASE_SNAPSHOT: &str = "LayerTree.releaseSnapshot";
57
58/// Replays the layer snapshot and returns the resulting bitmap.
59///
60/// Parameters:
61/// - `snapshotId`: SnapshotId
62/// - `fromStep`: integer (optional)
63/// - `toStep`: integer (optional)
64/// - `scale`: number (optional)
65///
66/// Returns: `dataURL`
67pub const REPLAY_SNAPSHOT: &str = "LayerTree.replaySnapshot";
68
69/// Replays the layer snapshot and returns canvas log.
70///
71/// Parameters:
72/// - `snapshotId`: SnapshotId
73///
74/// Returns: `commandLog`
75pub const SNAPSHOT_COMMAND_LOG: &str = "LayerTree.snapshotCommandLog";