Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CompositingReasonsRequest(val layerId: LayerId)

Request object containing input parameters for the LayerTreeDomain.compositingReasons command.

Link copied to clipboard
@Serializable
data class CompositingReasonsResponse(val compositingReasons: List<String>, val compositingReasonIds: List<String>)

Response type for the LayerTreeDomain.compositingReasons command.

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the LayerTreeDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the LayerTreeDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class Layer(val layerId: LayerId, val parentLayerId: LayerId? = null, val backendNodeId: BackendNodeId? = null, val offsetX: Double, val offsetY: Double, val width: Double, val height: Double, val transform: List<Double>? = null, val anchorX: Double? = null, val anchorY: Double? = null, val anchorZ: Double? = null, val paintCount: Int, val drawsContent: Boolean, val invisible: Boolean? = null, val scrollRects: List<ScrollRect>? = null, val stickyPositionConstraint: StickyPositionConstraint? = null)

Information about a compositing layer.

Link copied to clipboard
typealias LayerId = String

Unique Layer identifier.

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class LoadSnapshotRequest(val tiles: List<PictureTile>)

Request object containing input parameters for the LayerTreeDomain.loadSnapshot command.

Link copied to clipboard
@Serializable
data class LoadSnapshotResponse(val snapshotId: SnapshotId)

Response type for the LayerTreeDomain.loadSnapshot command.

Link copied to clipboard
@Serializable
data class MakeSnapshotRequest(val layerId: LayerId)

Request object containing input parameters for the LayerTreeDomain.makeSnapshot command.

Link copied to clipboard
@Serializable
data class MakeSnapshotResponse(val snapshotId: SnapshotId)

Response type for the LayerTreeDomain.makeSnapshot command.

Link copied to clipboard
typealias PaintProfile = List<Double>

Array of timings, one per paint step.

Link copied to clipboard
@Serializable
data class PictureTile(val x: Double, val y: Double, val picture: String)

Serialized fragment of layer picture along with its offset within the layer.

Link copied to clipboard
@Serializable
data class ProfileSnapshotRequest(val snapshotId: SnapshotId, val minRepeatCount: Int? = null, val minDuration: Double? = null, val clipRect: Rect? = null)

Request object containing input parameters for the LayerTreeDomain.profileSnapshot command.

Link copied to clipboard
@Serializable
data class ProfileSnapshotResponse(val timings: List<PaintProfile>)

Response type for the LayerTreeDomain.profileSnapshot command.

Link copied to clipboard
@Serializable
data class ReleaseSnapshotRequest(val snapshotId: SnapshotId)

Request object containing input parameters for the LayerTreeDomain.releaseSnapshot command.

Link copied to clipboard
@Serializable
object ReleaseSnapshotResponse

A dummy response object for the LayerTreeDomain.releaseSnapshot command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class ReplaySnapshotRequest(val snapshotId: SnapshotId, val fromStep: Int? = null, val toStep: Int? = null, val scale: Double? = null)

Request object containing input parameters for the LayerTreeDomain.replaySnapshot command.

Link copied to clipboard
@Serializable
data class ReplaySnapshotResponse(val dataURL: String)

Response type for the LayerTreeDomain.replaySnapshot command.

Link copied to clipboard
@Serializable
data class ScrollRect(val rect: Rect, val type: ScrollRectType)

Rectangle where scrolling happens on the main thread.

Link copied to clipboard
@Serializable
enum ScrollRectType : Enum<ScrollRectType>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class SnapshotCommandLogRequest(val snapshotId: SnapshotId)

Request object containing input parameters for the LayerTreeDomain.snapshotCommandLog command.

Link copied to clipboard
@Serializable
data class SnapshotCommandLogResponse(val commandLog: List<JsonObject>)

Response type for the LayerTreeDomain.snapshotCommandLog command.

Link copied to clipboard
typealias SnapshotId = String

Unique snapshot identifier.

Link copied to clipboard
@Serializable
data class StickyPositionConstraint(val stickyBoxRect: Rect, val containingBlockRect: Rect, val nearestLayerShiftingStickyBox: LayerId? = null, val nearestLayerShiftingContainingBlock: LayerId? = null)

Sticky position constraints.