SetContentsSizeRequest

@Serializable
data class SetContentsSizeRequest(val windowId: WindowID, val width: Int? = null, val height: Int? = null)

Request object containing input parameters for the BrowserDomain.setContentsSize command.

Constructors

Link copied to clipboard
constructor(windowId: WindowID, width: Int? = null, height: Int? = null)

Types

Link copied to clipboard
class Builder(val windowId: WindowID)

A builder for SetContentsSizeRequest, which allows setting the optional parameters of the BrowserDomain.setContentsSize command via a lambda.

Properties

Link copied to clipboard
val height: Int? = null

The window contents height in DIP. Assumes current height if omitted. Must be specified if 'width' is omitted.

Link copied to clipboard
val width: Int? = null

The window contents width in DIP. Assumes current width if omitted. Must be specified if 'height' is omitted.

Link copied to clipboard

Browser window id.