Documentation
¶
Overview ¶
Package browser provides type definitions for use with the Chrome Browser protocol
https://chromedevtools.github.io/devtools-protocol/tot/Browser/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bounds ¶
type Bounds struct { // Optional. The window height in pixels. Height int `json:"height,omitempty"` // Optional. The offset from the left edge of the screen to the window in // pixels. Left int `json:"left,omitempty"` // Optional. The offset from the top edge of the screen to the window in // pixels. Top int `json:"top,omitempty"` // Optional. The window width in pixels. Width int `json:"width,omitempty"` // Optional. The window state. Default to normal. WindowState WindowState `json:"windowState,omitempty"` }
Bounds holds the browser window bounds information. EXPERIMENTAL
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#type-Bounds
type CloseResult ¶
type CloseResult struct { // Error information related to executing this method Err error `json:"-"` }
CloseResult represents the result of calls to Browser.close.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-close
type GetVersionResult ¶
type GetVersionResult struct { // Protocol version. ProtocolVersion string `json:"protocolVersion"` // Product name. Product string `json:"product"` // Product revision. Revision string `json:"revision"` // User-Agent. UserAgent string `json:"userAgent"` // V8 version. JSVersion string `json:"jsVersion"` // Error information related to executing this method Err error `json:"-"` }
GetVersionResult represents the result of calls to Browser.getVersion.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-getVersion
type GetWindowBoundsParams ¶
type GetWindowBoundsParams struct { // Browser window id. WindowID WindowID `json:"windowId"` }
GetWindowBoundsParams represents Browser.getWindowBounds parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-getWindowBounds
type GetWindowBoundsResult ¶
type GetWindowBoundsResult struct { // Bounds information of the window. When window state is 'minimized', the // restored window position and size are returned. Bounds *Bounds `json:"bounds"` // Error information related to executing this method Err error `json:"-"` }
GetWindowBoundsResult represents the result of calls to Browser.getWindowBounds.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-getWindowBounds
type GetWindowForTargetParams ¶
type GetWindowForTargetParams struct { // Devtools agent host id. TargetID target.ID `json:"targetId"` }
GetWindowForTargetParams represents Browser.getWindowForTarget parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-getWindowForTarget
type GetWindowForTargetResult ¶
type GetWindowForTargetResult struct { // Browser window ID. WindowID WindowID `json:"windowId"` // Bounds information of the window. When window state is 'minimized', the // restored window position and size are returned. Bounds *Bounds `json:"bounds"` // Error information related to executing this method Err error `json:"-"` }
GetWindowForTargetResult represents the result of calls to Browser.getWindowForTarget.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-getWindowForTarget
type SetWindowBoundsParams ¶
type SetWindowBoundsParams struct { // Browser window id. WindowID WindowID `json:"windowId"` // New window bounds. The 'minimized', 'maximized' and 'fullscreen' states // cannot be combined with 'left', 'top', 'width' or 'height'. Leaves // unspecified fields unchanged. Bounds *Bounds `json:"bounds"` }
SetWindowBoundsParams represents Browser.setWindowBounds parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-setWindowBounds
type SetWindowBoundsResult ¶
type SetWindowBoundsResult struct { // Browser window ID. WindowID WindowID `json:"windowId"` // New window bounds. The 'minimized', 'maximized' and 'fullscreen' states // cannot be combined with 'left', 'top', 'width' or 'height'. Leaves // unspecified fields unchanged. Bounds *Bounds `json:"bounds"` // Error information related to executing this method Err error `json:"-"` }
SetWindowBoundsResult represents the result of calls to Browser.setWindowBounds.
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-setWindowBounds
type WindowID ¶
type WindowID int
WindowID - EXPERIMENTAL
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#type-WindowID
type WindowState ¶
type WindowState string
WindowState holds the state of the browser window. EXPERIMENTAL
https://chromedevtools.github.io/devtools-protocol/tot/Browser/#type-WindowState