overlay

package
v0.0.0-...-fe04f09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 10 Imported by: 4

Documentation

Overview

Package overlay provides the Chrome DevTools Protocol commands, types, and events for the Overlay domain.

This domain provides various functionality related to drawing atop the inspected page.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandDisable                              = "Overlay.disable"
	CommandEnable                               = "Overlay.enable"
	CommandGetHighlightObjectForTest            = "Overlay.getHighlightObjectForTest"
	CommandGetGridHighlightObjectsForTest       = "Overlay.getGridHighlightObjectsForTest"
	CommandGetSourceOrderHighlightObjectForTest = "Overlay.getSourceOrderHighlightObjectForTest"
	CommandHideHighlight                        = "Overlay.hideHighlight"
	CommandHighlightNode                        = "Overlay.highlightNode"
	CommandHighlightQuad                        = "Overlay.highlightQuad"
	CommandHighlightRect                        = "Overlay.highlightRect"
	CommandHighlightSourceOrder                 = "Overlay.highlightSourceOrder"
	CommandSetInspectMode                       = "Overlay.setInspectMode"
	CommandSetShowAdHighlights                  = "Overlay.setShowAdHighlights"
	CommandSetPausedInDebuggerMessage           = "Overlay.setPausedInDebuggerMessage"
	CommandSetShowDebugBorders                  = "Overlay.setShowDebugBorders"
	CommandSetShowFPSCounter                    = "Overlay.setShowFPSCounter"
	CommandSetShowGridOverlays                  = "Overlay.setShowGridOverlays"
	CommandSetShowFlexOverlays                  = "Overlay.setShowFlexOverlays"
	CommandSetShowScrollSnapOverlays            = "Overlay.setShowScrollSnapOverlays"
	CommandSetShowContainerQueryOverlays        = "Overlay.setShowContainerQueryOverlays"
	CommandSetShowPaintRects                    = "Overlay.setShowPaintRects"
	CommandSetShowLayoutShiftRegions            = "Overlay.setShowLayoutShiftRegions"
	CommandSetShowScrollBottleneckRects         = "Overlay.setShowScrollBottleneckRects"
	CommandSetShowWebVitals                     = "Overlay.setShowWebVitals"
	CommandSetShowViewportSizeOnResize          = "Overlay.setShowViewportSizeOnResize"
	CommandSetShowHinge                         = "Overlay.setShowHinge"
	CommandSetShowIsolatedElements              = "Overlay.setShowIsolatedElements"
	CommandSetShowWindowControlsOverlay         = "Overlay.setShowWindowControlsOverlay"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxStyle

type BoxStyle struct {
	FillColor  *cdp.RGBA `json:"fillColor,omitempty"`  // The background color for the box (default: transparent)
	HatchColor *cdp.RGBA `json:"hatchColor,omitempty"` // The hatching color for the box (default: transparent)
}

BoxStyle style information for drawing a box.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-BoxStyle

func (BoxStyle) MarshalEasyJSON

func (v BoxStyle) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BoxStyle) MarshalJSON

func (v BoxStyle) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BoxStyle) UnmarshalEasyJSON

func (v *BoxStyle) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BoxStyle) UnmarshalJSON

func (v *BoxStyle) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ColorFormat

type ColorFormat string

ColorFormat [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-ColorFormat

const (
	ColorFormatRgb ColorFormat = "rgb"
	ColorFormatHsl ColorFormat = "hsl"
	ColorFormatHwb ColorFormat = "hwb"
	ColorFormatHex ColorFormat = "hex"
)

ColorFormat values.

func (ColorFormat) MarshalEasyJSON

func (t ColorFormat) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ColorFormat) MarshalJSON

func (t ColorFormat) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ColorFormat) String

func (t ColorFormat) String() string

String returns the ColorFormat as string value.

func (*ColorFormat) UnmarshalEasyJSON

func (t *ColorFormat) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ColorFormat) UnmarshalJSON

func (t *ColorFormat) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ContainerQueryContainerHighlightConfig

type ContainerQueryContainerHighlightConfig struct {
	ContainerBorder  *LineStyle `json:"containerBorder,omitempty"`  // The style of the container border.
	DescendantBorder *LineStyle `json:"descendantBorder,omitempty"` // The style of the descendants' borders.
}

ContainerQueryContainerHighlightConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-ContainerQueryContainerHighlightConfig

func (ContainerQueryContainerHighlightConfig) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (ContainerQueryContainerHighlightConfig) MarshalJSON

func (v ContainerQueryContainerHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ContainerQueryContainerHighlightConfig) UnmarshalEasyJSON

func (v *ContainerQueryContainerHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ContainerQueryContainerHighlightConfig) UnmarshalJSON

func (v *ContainerQueryContainerHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ContainerQueryHighlightConfig

type ContainerQueryHighlightConfig struct {
	ContainerQueryContainerHighlightConfig *ContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig"` // A descriptor for the highlight appearance of container query containers.
	NodeID                                 cdp.NodeID                              `json:"nodeId"`                                 // Identifier of the container node to highlight.
}

ContainerQueryHighlightConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-ContainerQueryHighlightConfig

func (ContainerQueryHighlightConfig) MarshalEasyJSON

func (v ContainerQueryHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ContainerQueryHighlightConfig) MarshalJSON

func (v ContainerQueryHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ContainerQueryHighlightConfig) UnmarshalEasyJSON

func (v *ContainerQueryHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ContainerQueryHighlightConfig) UnmarshalJSON

func (v *ContainerQueryHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ContrastAlgorithm

type ContrastAlgorithm string

ContrastAlgorithm [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-ContrastAlgorithm

const (
	ContrastAlgorithmAa   ContrastAlgorithm = "aa"
	ContrastAlgorithmAaa  ContrastAlgorithm = "aaa"
	ContrastAlgorithmApca ContrastAlgorithm = "apca"
)

ContrastAlgorithm values.

func (ContrastAlgorithm) MarshalEasyJSON

func (t ContrastAlgorithm) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContrastAlgorithm) MarshalJSON

func (t ContrastAlgorithm) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ContrastAlgorithm) String

func (t ContrastAlgorithm) String() string

String returns the ContrastAlgorithm as string value.

func (*ContrastAlgorithm) UnmarshalEasyJSON

func (t *ContrastAlgorithm) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContrastAlgorithm) UnmarshalJSON

func (t *ContrastAlgorithm) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams

type DisableParams struct{}

DisableParams disables domain notifications.

func Disable

func Disable() *DisableParams

Disable disables domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-disable

func (*DisableParams) Do

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Overlay.disable against the provided context.

func (DisableParams) MarshalEasyJSON

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

EnableParams enables domain notifications.

func Enable

func Enable() *EnableParams

Enable enables domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-enable

func (*EnableParams) Do

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Overlay.enable against the provided context.

func (EnableParams) MarshalEasyJSON

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventInspectModeCanceled

type EventInspectModeCanceled struct{}

EventInspectModeCanceled fired when user cancels the inspect mode.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-inspectModeCanceled

func (EventInspectModeCanceled) MarshalEasyJSON

func (v EventInspectModeCanceled) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInspectModeCanceled) MarshalJSON

func (v EventInspectModeCanceled) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventInspectModeCanceled) UnmarshalEasyJSON

func (v *EventInspectModeCanceled) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInspectModeCanceled) UnmarshalJSON

func (v *EventInspectModeCanceled) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventInspectNodeRequested

type EventInspectNodeRequested struct {
	BackendNodeID cdp.BackendNodeID `json:"backendNodeId"` // Id of the node to inspect.
}

EventInspectNodeRequested fired when the node should be inspected. This happens after call to setInspectMode or when user manually inspects an element.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-inspectNodeRequested

func (EventInspectNodeRequested) MarshalEasyJSON

func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInspectNodeRequested) MarshalJSON

func (v EventInspectNodeRequested) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventInspectNodeRequested) UnmarshalEasyJSON

func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInspectNodeRequested) UnmarshalJSON

func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventNodeHighlightRequested

type EventNodeHighlightRequested struct {
	NodeID cdp.NodeID `json:"nodeId"`
}

EventNodeHighlightRequested fired when the node should be highlighted. This happens after call to setInspectMode.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-nodeHighlightRequested

func (EventNodeHighlightRequested) MarshalEasyJSON

func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodeHighlightRequested) MarshalJSON

func (v EventNodeHighlightRequested) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventNodeHighlightRequested) UnmarshalEasyJSON

func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodeHighlightRequested) UnmarshalJSON

func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventScreenshotRequested

type EventScreenshotRequested struct {
	Viewport *page.Viewport `json:"viewport"` // Viewport to capture, in device independent pixels (dip).
}

EventScreenshotRequested fired when user asks to capture screenshot of some area on the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#event-screenshotRequested

func (EventScreenshotRequested) MarshalEasyJSON

func (v EventScreenshotRequested) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScreenshotRequested) MarshalJSON

func (v EventScreenshotRequested) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventScreenshotRequested) UnmarshalEasyJSON

func (v *EventScreenshotRequested) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScreenshotRequested) UnmarshalJSON

func (v *EventScreenshotRequested) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlexContainerHighlightConfig

type FlexContainerHighlightConfig struct {
	ContainerBorder       *LineStyle `json:"containerBorder,omitempty"`       // The style of the container border
	LineSeparator         *LineStyle `json:"lineSeparator,omitempty"`         // The style of the separator between lines
	ItemSeparator         *LineStyle `json:"itemSeparator,omitempty"`         // The style of the separator between items
	MainDistributedSpace  *BoxStyle  `json:"mainDistributedSpace,omitempty"`  // Style of content-distribution space on the main axis (justify-content).
	CrossDistributedSpace *BoxStyle  `json:"crossDistributedSpace,omitempty"` // Style of content-distribution space on the cross axis (align-content).
	RowGapSpace           *BoxStyle  `json:"rowGapSpace,omitempty"`           // Style of empty space caused by row gaps (gap/row-gap).
	ColumnGapSpace        *BoxStyle  `json:"columnGapSpace,omitempty"`        // Style of empty space caused by columns gaps (gap/column-gap).
	CrossAlignment        *LineStyle `json:"crossAlignment,omitempty"`        // Style of the self-alignment line (align-items).
}

FlexContainerHighlightConfig configuration data for the highlighting of Flex container elements.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-FlexContainerHighlightConfig

func (FlexContainerHighlightConfig) MarshalEasyJSON

func (v FlexContainerHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlexContainerHighlightConfig) MarshalJSON

func (v FlexContainerHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlexContainerHighlightConfig) UnmarshalEasyJSON

func (v *FlexContainerHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlexContainerHighlightConfig) UnmarshalJSON

func (v *FlexContainerHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlexItemHighlightConfig

type FlexItemHighlightConfig struct {
	BaseSizeBox      *BoxStyle  `json:"baseSizeBox,omitempty"`      // Style of the box representing the item's base size
	BaseSizeBorder   *LineStyle `json:"baseSizeBorder,omitempty"`   // Style of the border around the box representing the item's base size
	FlexibilityArrow *LineStyle `json:"flexibilityArrow,omitempty"` // Style of the arrow representing if the item grew or shrank
}

FlexItemHighlightConfig configuration data for the highlighting of Flex item elements.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-FlexItemHighlightConfig

func (FlexItemHighlightConfig) MarshalEasyJSON

func (v FlexItemHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlexItemHighlightConfig) MarshalJSON

func (v FlexItemHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlexItemHighlightConfig) UnmarshalEasyJSON

func (v *FlexItemHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlexItemHighlightConfig) UnmarshalJSON

func (v *FlexItemHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlexNodeHighlightConfig

type FlexNodeHighlightConfig struct {
	FlexContainerHighlightConfig *FlexContainerHighlightConfig `json:"flexContainerHighlightConfig"` // A descriptor for the highlight appearance of flex containers.
	NodeID                       cdp.NodeID                    `json:"nodeId"`                       // Identifier of the node to highlight.
}

FlexNodeHighlightConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-FlexNodeHighlightConfig

func (FlexNodeHighlightConfig) MarshalEasyJSON

func (v FlexNodeHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlexNodeHighlightConfig) MarshalJSON

func (v FlexNodeHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlexNodeHighlightConfig) UnmarshalEasyJSON

func (v *FlexNodeHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlexNodeHighlightConfig) UnmarshalJSON

func (v *FlexNodeHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetGridHighlightObjectsForTestParams

type GetGridHighlightObjectsForTestParams struct {
	NodeIDs []cdp.NodeID `json:"nodeIds"` // Ids of the node to get highlight object for.
}

GetGridHighlightObjectsForTestParams for Persistent Grid testing.

func GetGridHighlightObjectsForTest

func GetGridHighlightObjectsForTest(nodeIDs []cdp.NodeID) *GetGridHighlightObjectsForTestParams

GetGridHighlightObjectsForTest for Persistent Grid testing.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-getGridHighlightObjectsForTest

parameters:

nodeIDs - Ids of the node to get highlight object for.

func (*GetGridHighlightObjectsForTestParams) Do

Do executes Overlay.getGridHighlightObjectsForTest against the provided context.

returns:

highlights - Grid Highlight data for the node ids provided.

func (GetGridHighlightObjectsForTestParams) MarshalEasyJSON

func (v GetGridHighlightObjectsForTestParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetGridHighlightObjectsForTestParams) MarshalJSON

func (v GetGridHighlightObjectsForTestParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetGridHighlightObjectsForTestParams) UnmarshalEasyJSON

func (v *GetGridHighlightObjectsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetGridHighlightObjectsForTestParams) UnmarshalJSON

func (v *GetGridHighlightObjectsForTestParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetGridHighlightObjectsForTestReturns

type GetGridHighlightObjectsForTestReturns struct {
	Highlights easyjson.RawMessage `json:"highlights,omitempty"`
}

GetGridHighlightObjectsForTestReturns return values.

func (GetGridHighlightObjectsForTestReturns) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetGridHighlightObjectsForTestReturns) MarshalJSON

func (v GetGridHighlightObjectsForTestReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetGridHighlightObjectsForTestReturns) UnmarshalEasyJSON

func (v *GetGridHighlightObjectsForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetGridHighlightObjectsForTestReturns) UnmarshalJSON

func (v *GetGridHighlightObjectsForTestReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetHighlightObjectForTestParams

type GetHighlightObjectForTestParams struct {
	NodeID                cdp.NodeID  `json:"nodeId"`                          // Id of the node to get highlight object for.
	IncludeDistance       bool        `json:"includeDistance,omitempty"`       // Whether to include distance info.
	IncludeStyle          bool        `json:"includeStyle,omitempty"`          // Whether to include style info.
	ColorFormat           ColorFormat `json:"colorFormat,omitempty"`           // The color format to get config with (default: hex).
	ShowAccessibilityInfo bool        `json:"showAccessibilityInfo,omitempty"` // Whether to show accessibility info (default: true).
}

GetHighlightObjectForTestParams for testing.

func GetHighlightObjectForTest

func GetHighlightObjectForTest(nodeID cdp.NodeID) *GetHighlightObjectForTestParams

GetHighlightObjectForTest for testing.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-getHighlightObjectForTest

parameters:

nodeID - Id of the node to get highlight object for.

func (*GetHighlightObjectForTestParams) Do

Do executes Overlay.getHighlightObjectForTest against the provided context.

returns:

highlight - Highlight data for the node.

func (GetHighlightObjectForTestParams) MarshalEasyJSON

func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHighlightObjectForTestParams) MarshalJSON

func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHighlightObjectForTestParams) UnmarshalEasyJSON

func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHighlightObjectForTestParams) UnmarshalJSON

func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetHighlightObjectForTestParams) WithColorFormat

WithColorFormat the color format to get config with (default: hex).

func (GetHighlightObjectForTestParams) WithIncludeDistance

func (p GetHighlightObjectForTestParams) WithIncludeDistance(includeDistance bool) *GetHighlightObjectForTestParams

WithIncludeDistance whether to include distance info.

func (GetHighlightObjectForTestParams) WithIncludeStyle

func (p GetHighlightObjectForTestParams) WithIncludeStyle(includeStyle bool) *GetHighlightObjectForTestParams

WithIncludeStyle whether to include style info.

func (GetHighlightObjectForTestParams) WithShowAccessibilityInfo

func (p GetHighlightObjectForTestParams) WithShowAccessibilityInfo(showAccessibilityInfo bool) *GetHighlightObjectForTestParams

WithShowAccessibilityInfo whether to show accessibility info (default: true).

type GetHighlightObjectForTestReturns

type GetHighlightObjectForTestReturns struct {
	Highlight easyjson.RawMessage `json:"highlight,omitempty"`
}

GetHighlightObjectForTestReturns return values.

func (GetHighlightObjectForTestReturns) MarshalEasyJSON

func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHighlightObjectForTestReturns) MarshalJSON

func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHighlightObjectForTestReturns) UnmarshalEasyJSON

func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHighlightObjectForTestReturns) UnmarshalJSON

func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetSourceOrderHighlightObjectForTestParams

type GetSourceOrderHighlightObjectForTestParams struct {
	NodeID cdp.NodeID `json:"nodeId"` // Id of the node to highlight.
}

GetSourceOrderHighlightObjectForTestParams for Source Order Viewer testing.

func GetSourceOrderHighlightObjectForTest

func GetSourceOrderHighlightObjectForTest(nodeID cdp.NodeID) *GetSourceOrderHighlightObjectForTestParams

GetSourceOrderHighlightObjectForTest for Source Order Viewer testing.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-getSourceOrderHighlightObjectForTest

parameters:

nodeID - Id of the node to highlight.

func (*GetSourceOrderHighlightObjectForTestParams) Do

Do executes Overlay.getSourceOrderHighlightObjectForTest against the provided context.

returns:

highlight - Source order highlight data for the node id provided.

func (GetSourceOrderHighlightObjectForTestParams) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSourceOrderHighlightObjectForTestParams) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*GetSourceOrderHighlightObjectForTestParams) UnmarshalEasyJSON

func (v *GetSourceOrderHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSourceOrderHighlightObjectForTestParams) UnmarshalJSON

func (v *GetSourceOrderHighlightObjectForTestParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetSourceOrderHighlightObjectForTestReturns

type GetSourceOrderHighlightObjectForTestReturns struct {
	Highlight easyjson.RawMessage `json:"highlight,omitempty"`
}

GetSourceOrderHighlightObjectForTestReturns return values.

func (GetSourceOrderHighlightObjectForTestReturns) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSourceOrderHighlightObjectForTestReturns) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*GetSourceOrderHighlightObjectForTestReturns) UnmarshalEasyJSON

func (v *GetSourceOrderHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSourceOrderHighlightObjectForTestReturns) UnmarshalJSON

func (v *GetSourceOrderHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GridHighlightConfig

type GridHighlightConfig struct {
	ShowGridExtensionLines  bool      `json:"showGridExtensionLines,omitempty"`  // Whether the extension lines from grid cells to the rulers should be shown (default: false).
	ShowPositiveLineNumbers bool      `json:"showPositiveLineNumbers,omitempty"` // Show Positive line number labels (default: false).
	ShowNegativeLineNumbers bool      `json:"showNegativeLineNumbers,omitempty"` // Show Negative line number labels (default: false).
	ShowAreaNames           bool      `json:"showAreaNames,omitempty"`           // Show area name labels (default: false).
	ShowLineNames           bool      `json:"showLineNames,omitempty"`           // Show line name labels (default: false).
	ShowTrackSizes          bool      `json:"showTrackSizes,omitempty"`          // Show track size labels (default: false).
	GridBorderColor         *cdp.RGBA `json:"gridBorderColor,omitempty"`         // The grid container border highlight color (default: transparent).
	RowLineColor            *cdp.RGBA `json:"rowLineColor,omitempty"`            // The row line color (default: transparent).
	ColumnLineColor         *cdp.RGBA `json:"columnLineColor,omitempty"`         // The column line color (default: transparent).
	GridBorderDash          bool      `json:"gridBorderDash,omitempty"`          // Whether the grid border is dashed (default: false).
	RowLineDash             bool      `json:"rowLineDash,omitempty"`             // Whether row lines are dashed (default: false).
	ColumnLineDash          bool      `json:"columnLineDash,omitempty"`          // Whether column lines are dashed (default: false).
	RowGapColor             *cdp.RGBA `json:"rowGapColor,omitempty"`             // The row gap highlight fill color (default: transparent).
	RowHatchColor           *cdp.RGBA `json:"rowHatchColor,omitempty"`           // The row gap hatching fill color (default: transparent).
	ColumnGapColor          *cdp.RGBA `json:"columnGapColor,omitempty"`          // The column gap highlight fill color (default: transparent).
	ColumnHatchColor        *cdp.RGBA `json:"columnHatchColor,omitempty"`        // The column gap hatching fill color (default: transparent).
	AreaBorderColor         *cdp.RGBA `json:"areaBorderColor,omitempty"`         // The named grid areas border color (Default: transparent).
	GridBackgroundColor     *cdp.RGBA `json:"gridBackgroundColor,omitempty"`     // The grid container background color (Default: transparent).
}

GridHighlightConfig configuration data for the highlighting of Grid elements.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-GridHighlightConfig

func (GridHighlightConfig) MarshalEasyJSON

func (v GridHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GridHighlightConfig) MarshalJSON

func (v GridHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GridHighlightConfig) UnmarshalEasyJSON

func (v *GridHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GridHighlightConfig) UnmarshalJSON

func (v *GridHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GridNodeHighlightConfig

type GridNodeHighlightConfig struct {
	GridHighlightConfig *GridHighlightConfig `json:"gridHighlightConfig"` // A descriptor for the highlight appearance.
	NodeID              cdp.NodeID           `json:"nodeId"`              // Identifier of the node to highlight.
}

GridNodeHighlightConfig configurations for Persistent Grid Highlight.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-GridNodeHighlightConfig

func (GridNodeHighlightConfig) MarshalEasyJSON

func (v GridNodeHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GridNodeHighlightConfig) MarshalJSON

func (v GridNodeHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GridNodeHighlightConfig) UnmarshalEasyJSON

func (v *GridNodeHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GridNodeHighlightConfig) UnmarshalJSON

func (v *GridNodeHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HideHighlightParams

type HideHighlightParams struct{}

HideHighlightParams hides any highlight.

func (*HideHighlightParams) Do

func (p *HideHighlightParams) Do(ctx context.Context) (err error)

Do executes Overlay.hideHighlight against the provided context.

func (HideHighlightParams) MarshalEasyJSON

func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HideHighlightParams) MarshalJSON

func (v HideHighlightParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HideHighlightParams) UnmarshalEasyJSON

func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HideHighlightParams) UnmarshalJSON

func (v *HideHighlightParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HighlightConfig

type HighlightConfig struct {
	ShowInfo                               bool                                    `json:"showInfo,omitempty"`                               // Whether the node info tooltip should be shown (default: false).
	ShowStyles                             bool                                    `json:"showStyles,omitempty"`                             // Whether the node styles in the tooltip (default: false).
	ShowRulers                             bool                                    `json:"showRulers,omitempty"`                             // Whether the rulers should be shown (default: false).
	ShowAccessibilityInfo                  bool                                    `json:"showAccessibilityInfo,omitempty"`                  // Whether the a11y info should be shown (default: true).
	ShowExtensionLines                     bool                                    `json:"showExtensionLines,omitempty"`                     // Whether the extension lines from node to the rulers should be shown (default: false).
	ContentColor                           *cdp.RGBA                               `json:"contentColor,omitempty"`                           // The content box highlight fill color (default: transparent).
	PaddingColor                           *cdp.RGBA                               `json:"paddingColor,omitempty"`                           // The padding highlight fill color (default: transparent).
	BorderColor                            *cdp.RGBA                               `json:"borderColor,omitempty"`                            // The border highlight fill color (default: transparent).
	MarginColor                            *cdp.RGBA                               `json:"marginColor,omitempty"`                            // The margin highlight fill color (default: transparent).
	EventTargetColor                       *cdp.RGBA                               `json:"eventTargetColor,omitempty"`                       // The event target element highlight fill color (default: transparent).
	ShapeColor                             *cdp.RGBA                               `json:"shapeColor,omitempty"`                             // The shape outside fill color (default: transparent).
	ShapeMarginColor                       *cdp.RGBA                               `json:"shapeMarginColor,omitempty"`                       // The shape margin fill color (default: transparent).
	CSSGridColor                           *cdp.RGBA                               `json:"cssGridColor,omitempty"`                           // The grid layout color (default: transparent).
	ColorFormat                            ColorFormat                             `json:"colorFormat,omitempty"`                            // The color format used to format color styles (default: hex).
	GridHighlightConfig                    *GridHighlightConfig                    `json:"gridHighlightConfig,omitempty"`                    // The grid layout highlight configuration (default: all transparent).
	FlexContainerHighlightConfig           *FlexContainerHighlightConfig           `json:"flexContainerHighlightConfig,omitempty"`           // The flex container highlight configuration (default: all transparent).
	FlexItemHighlightConfig                *FlexItemHighlightConfig                `json:"flexItemHighlightConfig,omitempty"`                // The flex item highlight configuration (default: all transparent).
	ContrastAlgorithm                      ContrastAlgorithm                       `json:"contrastAlgorithm,omitempty"`                      // The contrast algorithm to use for the contrast ratio (default: aa).
	ContainerQueryContainerHighlightConfig *ContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig,omitempty"` // The container query container highlight configuration (default: all transparent).
}

HighlightConfig configuration data for the highlighting of page elements.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-HighlightConfig

func (HighlightConfig) MarshalEasyJSON

func (v HighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightConfig) MarshalJSON

func (v HighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HighlightConfig) UnmarshalEasyJSON

func (v *HighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightConfig) UnmarshalJSON

func (v *HighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HighlightNodeParams

type HighlightNodeParams struct {
	HighlightConfig *HighlightConfig       `json:"highlightConfig"`         // A descriptor for the highlight appearance.
	NodeID          cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node to highlight.
	BackendNodeID   cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node to highlight.
	ObjectID        runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node to be highlighted.
	Selector        string                 `json:"selector,omitempty"`      // Selectors to highlight relevant nodes.
}

HighlightNodeParams highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

func HighlightNode

func HighlightNode(highlightConfig *HighlightConfig) *HighlightNodeParams

HighlightNode highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-highlightNode

parameters:

highlightConfig - A descriptor for the highlight appearance.

func (*HighlightNodeParams) Do

func (p *HighlightNodeParams) Do(ctx context.Context) (err error)

Do executes Overlay.highlightNode against the provided context.

func (HighlightNodeParams) MarshalEasyJSON

func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightNodeParams) MarshalJSON

func (v HighlightNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HighlightNodeParams) UnmarshalEasyJSON

func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightNodeParams) UnmarshalJSON

func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightNodeParams) WithBackendNodeID

func (p HighlightNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightNodeParams

WithBackendNodeID identifier of the backend node to highlight.

func (HighlightNodeParams) WithNodeID

func (p HighlightNodeParams) WithNodeID(nodeID cdp.NodeID) *HighlightNodeParams

WithNodeID identifier of the node to highlight.

func (HighlightNodeParams) WithObjectID

WithObjectID JavaScript object id of the node to be highlighted.

func (HighlightNodeParams) WithSelector

func (p HighlightNodeParams) WithSelector(selector string) *HighlightNodeParams

WithSelector selectors to highlight relevant nodes.

type HighlightQuadParams

type HighlightQuadParams struct {
	Quad         dom.Quad  `json:"quad"`                   // Quad to highlight
	Color        *cdp.RGBA `json:"color,omitempty"`        // The highlight fill color (default: transparent).
	OutlineColor *cdp.RGBA `json:"outlineColor,omitempty"` // The highlight outline color (default: transparent).
}

HighlightQuadParams highlights given quad. Coordinates are absolute with respect to the main frame viewport.

func HighlightQuad

func HighlightQuad(quad dom.Quad) *HighlightQuadParams

HighlightQuad highlights given quad. Coordinates are absolute with respect to the main frame viewport.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-highlightQuad

parameters:

quad - Quad to highlight

func (*HighlightQuadParams) Do

func (p *HighlightQuadParams) Do(ctx context.Context) (err error)

Do executes Overlay.highlightQuad against the provided context.

func (HighlightQuadParams) MarshalEasyJSON

func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightQuadParams) MarshalJSON

func (v HighlightQuadParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HighlightQuadParams) UnmarshalEasyJSON

func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightQuadParams) UnmarshalJSON

func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightQuadParams) WithColor

func (p HighlightQuadParams) WithColor(color *cdp.RGBA) *HighlightQuadParams

WithColor the highlight fill color (default: transparent).

func (HighlightQuadParams) WithOutlineColor

func (p HighlightQuadParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightQuadParams

WithOutlineColor the highlight outline color (default: transparent).

type HighlightRectParams

type HighlightRectParams struct {
	X            int64     `json:"x"`                      // X coordinate
	Y            int64     `json:"y"`                      // Y coordinate
	Width        int64     `json:"width"`                  // Rectangle width
	Height       int64     `json:"height"`                 // Rectangle height
	Color        *cdp.RGBA `json:"color,omitempty"`        // The highlight fill color (default: transparent).
	OutlineColor *cdp.RGBA `json:"outlineColor,omitempty"` // The highlight outline color (default: transparent).
}

HighlightRectParams highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.

func HighlightRect

func HighlightRect(x int64, y int64, width int64, height int64) *HighlightRectParams

HighlightRect highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-highlightRect

parameters:

x - X coordinate
y - Y coordinate
width - Rectangle width
height - Rectangle height

func (*HighlightRectParams) Do

func (p *HighlightRectParams) Do(ctx context.Context) (err error)

Do executes Overlay.highlightRect against the provided context.

func (HighlightRectParams) MarshalEasyJSON

func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightRectParams) MarshalJSON

func (v HighlightRectParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HighlightRectParams) UnmarshalEasyJSON

func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightRectParams) UnmarshalJSON

func (v *HighlightRectParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightRectParams) WithColor

func (p HighlightRectParams) WithColor(color *cdp.RGBA) *HighlightRectParams

WithColor the highlight fill color (default: transparent).

func (HighlightRectParams) WithOutlineColor

func (p HighlightRectParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightRectParams

WithOutlineColor the highlight outline color (default: transparent).

type HighlightSourceOrderParams

type HighlightSourceOrderParams struct {
	SourceOrderConfig *SourceOrderConfig     `json:"sourceOrderConfig"`       // A descriptor for the appearance of the overlay drawing.
	NodeID            cdp.NodeID             `json:"nodeId,omitempty"`        // Identifier of the node to highlight.
	BackendNodeID     cdp.BackendNodeID      `json:"backendNodeId,omitempty"` // Identifier of the backend node to highlight.
	ObjectID          runtime.RemoteObjectID `json:"objectId,omitempty"`      // JavaScript object id of the node to be highlighted.
}

HighlightSourceOrderParams highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

func HighlightSourceOrder

func HighlightSourceOrder(sourceOrderConfig *SourceOrderConfig) *HighlightSourceOrderParams

HighlightSourceOrder highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-highlightSourceOrder

parameters:

sourceOrderConfig - A descriptor for the appearance of the overlay drawing.

func (*HighlightSourceOrderParams) Do

Do executes Overlay.highlightSourceOrder against the provided context.

func (HighlightSourceOrderParams) MarshalEasyJSON

func (v HighlightSourceOrderParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightSourceOrderParams) MarshalJSON

func (v HighlightSourceOrderParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HighlightSourceOrderParams) UnmarshalEasyJSON

func (v *HighlightSourceOrderParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightSourceOrderParams) UnmarshalJSON

func (v *HighlightSourceOrderParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightSourceOrderParams) WithBackendNodeID

func (p HighlightSourceOrderParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightSourceOrderParams

WithBackendNodeID identifier of the backend node to highlight.

func (HighlightSourceOrderParams) WithNodeID

WithNodeID identifier of the node to highlight.

func (HighlightSourceOrderParams) WithObjectID

WithObjectID JavaScript object id of the node to be highlighted.

type HingeConfig

type HingeConfig struct {
	Rect         *dom.Rect `json:"rect"`                   // A rectangle represent hinge
	ContentColor *cdp.RGBA `json:"contentColor,omitempty"` // The content box highlight fill color (default: a dark color).
	OutlineColor *cdp.RGBA `json:"outlineColor,omitempty"` // The content box highlight outline color (default: transparent).
}

HingeConfig configuration for dual screen hinge.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-HingeConfig

func (HingeConfig) MarshalEasyJSON

func (v HingeConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HingeConfig) MarshalJSON

func (v HingeConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HingeConfig) UnmarshalEasyJSON

func (v *HingeConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HingeConfig) UnmarshalJSON

func (v *HingeConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type InspectMode

type InspectMode string

InspectMode [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-InspectMode

const (
	InspectModeSearchForNode         InspectMode = "searchForNode"
	InspectModeSearchForUAShadowDOM  InspectMode = "searchForUAShadowDOM"
	InspectModeCaptureAreaScreenshot InspectMode = "captureAreaScreenshot"
	InspectModeShowDistances         InspectMode = "showDistances"
	InspectModeNone                  InspectMode = "none"
)

InspectMode values.

func (InspectMode) MarshalEasyJSON

func (t InspectMode) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (InspectMode) MarshalJSON

func (t InspectMode) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (InspectMode) String

func (t InspectMode) String() string

String returns the InspectMode as string value.

func (*InspectMode) UnmarshalEasyJSON

func (t *InspectMode) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*InspectMode) UnmarshalJSON

func (t *InspectMode) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type IsolatedElementHighlightConfig

type IsolatedElementHighlightConfig struct {
	IsolationModeHighlightConfig *IsolationModeHighlightConfig `json:"isolationModeHighlightConfig"` // A descriptor for the highlight appearance of an element in isolation mode.
	NodeID                       cdp.NodeID                    `json:"nodeId"`                       // Identifier of the isolated element to highlight.
}

IsolatedElementHighlightConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-IsolatedElementHighlightConfig

func (IsolatedElementHighlightConfig) MarshalEasyJSON

func (v IsolatedElementHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IsolatedElementHighlightConfig) MarshalJSON

func (v IsolatedElementHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IsolatedElementHighlightConfig) UnmarshalEasyJSON

func (v *IsolatedElementHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IsolatedElementHighlightConfig) UnmarshalJSON

func (v *IsolatedElementHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IsolationModeHighlightConfig

type IsolationModeHighlightConfig struct {
	ResizerColor       *cdp.RGBA `json:"resizerColor,omitempty"`       // The fill color of the resizers (default: transparent).
	ResizerHandleColor *cdp.RGBA `json:"resizerHandleColor,omitempty"` // The fill color for resizer handles (default: transparent).
	MaskColor          *cdp.RGBA `json:"maskColor,omitempty"`          // The fill color for the mask covering non-isolated elements (default: transparent).
}

IsolationModeHighlightConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-IsolationModeHighlightConfig

func (IsolationModeHighlightConfig) MarshalEasyJSON

func (v IsolationModeHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IsolationModeHighlightConfig) MarshalJSON

func (v IsolationModeHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IsolationModeHighlightConfig) UnmarshalEasyJSON

func (v *IsolationModeHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IsolationModeHighlightConfig) UnmarshalJSON

func (v *IsolationModeHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LineStyle

type LineStyle struct {
	Color   *cdp.RGBA        `json:"color,omitempty"`   // The color of the line (default: transparent)
	Pattern LineStylePattern `json:"pattern,omitempty"` // The line pattern (default: solid)
}

LineStyle style information for drawing a line.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-LineStyle

func (LineStyle) MarshalEasyJSON

func (v LineStyle) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LineStyle) MarshalJSON

func (v LineStyle) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LineStyle) UnmarshalEasyJSON

func (v *LineStyle) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LineStyle) UnmarshalJSON

func (v *LineStyle) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LineStylePattern

type LineStylePattern string

LineStylePattern the line pattern (default: solid).

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-LineStyle

const (
	LineStylePatternDashed LineStylePattern = "dashed"
	LineStylePatternDotted LineStylePattern = "dotted"
)

LineStylePattern values.

func (LineStylePattern) MarshalEasyJSON

func (t LineStylePattern) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (LineStylePattern) MarshalJSON

func (t LineStylePattern) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (LineStylePattern) String

func (t LineStylePattern) String() string

String returns the LineStylePattern as string value.

func (*LineStylePattern) UnmarshalEasyJSON

func (t *LineStylePattern) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*LineStylePattern) UnmarshalJSON

func (t *LineStylePattern) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ScrollSnapContainerHighlightConfig

type ScrollSnapContainerHighlightConfig struct {
	SnapportBorder     *LineStyle `json:"snapportBorder,omitempty"`     // The style of the snapport border (default: transparent)
	SnapAreaBorder     *LineStyle `json:"snapAreaBorder,omitempty"`     // The style of the snap area border (default: transparent)
	ScrollMarginColor  *cdp.RGBA  `json:"scrollMarginColor,omitempty"`  // The margin highlight fill color (default: transparent).
	ScrollPaddingColor *cdp.RGBA  `json:"scrollPaddingColor,omitempty"` // The padding highlight fill color (default: transparent).
}

ScrollSnapContainerHighlightConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-ScrollSnapContainerHighlightConfig

func (ScrollSnapContainerHighlightConfig) MarshalEasyJSON

func (v ScrollSnapContainerHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScrollSnapContainerHighlightConfig) MarshalJSON

func (v ScrollSnapContainerHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScrollSnapContainerHighlightConfig) UnmarshalEasyJSON

func (v *ScrollSnapContainerHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScrollSnapContainerHighlightConfig) UnmarshalJSON

func (v *ScrollSnapContainerHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScrollSnapHighlightConfig

type ScrollSnapHighlightConfig struct {
	ScrollSnapContainerHighlightConfig *ScrollSnapContainerHighlightConfig `json:"scrollSnapContainerHighlightConfig"` // A descriptor for the highlight appearance of scroll snap containers.
	NodeID                             cdp.NodeID                          `json:"nodeId"`                             // Identifier of the node to highlight.
}

ScrollSnapHighlightConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-ScrollSnapHighlightConfig

func (ScrollSnapHighlightConfig) MarshalEasyJSON

func (v ScrollSnapHighlightConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScrollSnapHighlightConfig) MarshalJSON

func (v ScrollSnapHighlightConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScrollSnapHighlightConfig) UnmarshalEasyJSON

func (v *ScrollSnapHighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScrollSnapHighlightConfig) UnmarshalJSON

func (v *ScrollSnapHighlightConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetInspectModeParams

type SetInspectModeParams struct {
	Mode            InspectMode      `json:"mode"`                      // Set an inspection mode.
	HighlightConfig *HighlightConfig `json:"highlightConfig,omitempty"` // A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false.
}

SetInspectModeParams enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.

func SetInspectMode

func SetInspectMode(mode InspectMode) *SetInspectModeParams

SetInspectMode enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setInspectMode

parameters:

mode - Set an inspection mode.

func (*SetInspectModeParams) Do

func (p *SetInspectModeParams) Do(ctx context.Context) (err error)

Do executes Overlay.setInspectMode against the provided context.

func (SetInspectModeParams) MarshalEasyJSON

func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetInspectModeParams) MarshalJSON

func (v SetInspectModeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetInspectModeParams) UnmarshalEasyJSON

func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetInspectModeParams) UnmarshalJSON

func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetInspectModeParams) WithHighlightConfig

func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams

WithHighlightConfig a descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false.

type SetPausedInDebuggerMessageParams

type SetPausedInDebuggerMessageParams struct {
	Message string `json:"message,omitempty"` // The message to display, also triggers resume and step over controls.
}

SetPausedInDebuggerMessageParams [no description].

func SetPausedInDebuggerMessage

func SetPausedInDebuggerMessage() *SetPausedInDebuggerMessageParams

SetPausedInDebuggerMessage [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setPausedInDebuggerMessage

parameters:

func (*SetPausedInDebuggerMessageParams) Do

Do executes Overlay.setPausedInDebuggerMessage against the provided context.

func (SetPausedInDebuggerMessageParams) MarshalEasyJSON

func (v SetPausedInDebuggerMessageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPausedInDebuggerMessageParams) MarshalJSON

func (v SetPausedInDebuggerMessageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetPausedInDebuggerMessageParams) UnmarshalEasyJSON

func (v *SetPausedInDebuggerMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPausedInDebuggerMessageParams) UnmarshalJSON

func (v *SetPausedInDebuggerMessageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetPausedInDebuggerMessageParams) WithMessage

WithMessage the message to display, also triggers resume and step over controls.

type SetShowAdHighlightsParams

type SetShowAdHighlightsParams struct {
	Show bool `json:"show"` // True for showing ad highlights
}

SetShowAdHighlightsParams highlights owner element of all frames detected to be ads.

func SetShowAdHighlights

func SetShowAdHighlights(show bool) *SetShowAdHighlightsParams

SetShowAdHighlights highlights owner element of all frames detected to be ads.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowAdHighlights

parameters:

show - True for showing ad highlights

func (*SetShowAdHighlightsParams) Do

Do executes Overlay.setShowAdHighlights against the provided context.

func (SetShowAdHighlightsParams) MarshalEasyJSON

func (v SetShowAdHighlightsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowAdHighlightsParams) MarshalJSON

func (v SetShowAdHighlightsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowAdHighlightsParams) UnmarshalEasyJSON

func (v *SetShowAdHighlightsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowAdHighlightsParams) UnmarshalJSON

func (v *SetShowAdHighlightsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowContainerQueryOverlaysParams

type SetShowContainerQueryOverlaysParams struct {
	ContainerQueryHighlightConfigs []*ContainerQueryHighlightConfig `json:"containerQueryHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance.
}

SetShowContainerQueryOverlaysParams [no description].

func SetShowContainerQueryOverlays

func SetShowContainerQueryOverlays(containerQueryHighlightConfigs []*ContainerQueryHighlightConfig) *SetShowContainerQueryOverlaysParams

SetShowContainerQueryOverlays [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowContainerQueryOverlays

parameters:

containerQueryHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance.

func (*SetShowContainerQueryOverlaysParams) Do

Do executes Overlay.setShowContainerQueryOverlays against the provided context.

func (SetShowContainerQueryOverlaysParams) MarshalEasyJSON

func (v SetShowContainerQueryOverlaysParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowContainerQueryOverlaysParams) MarshalJSON

func (v SetShowContainerQueryOverlaysParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowContainerQueryOverlaysParams) UnmarshalEasyJSON

func (v *SetShowContainerQueryOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowContainerQueryOverlaysParams) UnmarshalJSON

func (v *SetShowContainerQueryOverlaysParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowDebugBordersParams

type SetShowDebugBordersParams struct {
	Show bool `json:"show"` // True for showing debug borders
}

SetShowDebugBordersParams requests that backend shows debug borders on layers.

func SetShowDebugBorders

func SetShowDebugBorders(show bool) *SetShowDebugBordersParams

SetShowDebugBorders requests that backend shows debug borders on layers.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowDebugBorders

parameters:

show - True for showing debug borders

func (*SetShowDebugBordersParams) Do

Do executes Overlay.setShowDebugBorders against the provided context.

func (SetShowDebugBordersParams) MarshalEasyJSON

func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowDebugBordersParams) MarshalJSON

func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowDebugBordersParams) UnmarshalEasyJSON

func (v *SetShowDebugBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowDebugBordersParams) UnmarshalJSON

func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowFPSCounterParams

type SetShowFPSCounterParams struct {
	Show bool `json:"show"` // True for showing the FPS counter
}

SetShowFPSCounterParams requests that backend shows the FPS counter.

func SetShowFPSCounter

func SetShowFPSCounter(show bool) *SetShowFPSCounterParams

SetShowFPSCounter requests that backend shows the FPS counter.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowFPSCounter

parameters:

show - True for showing the FPS counter

func (*SetShowFPSCounterParams) Do

func (p *SetShowFPSCounterParams) Do(ctx context.Context) (err error)

Do executes Overlay.setShowFPSCounter against the provided context.

func (SetShowFPSCounterParams) MarshalEasyJSON

func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowFPSCounterParams) MarshalJSON

func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowFPSCounterParams) UnmarshalEasyJSON

func (v *SetShowFPSCounterParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowFPSCounterParams) UnmarshalJSON

func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowFlexOverlaysParams

type SetShowFlexOverlaysParams struct {
	FlexNodeHighlightConfigs []*FlexNodeHighlightConfig `json:"flexNodeHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance.
}

SetShowFlexOverlaysParams [no description].

func SetShowFlexOverlays

func SetShowFlexOverlays(flexNodeHighlightConfigs []*FlexNodeHighlightConfig) *SetShowFlexOverlaysParams

SetShowFlexOverlays [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowFlexOverlays

parameters:

flexNodeHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance.

func (*SetShowFlexOverlaysParams) Do

Do executes Overlay.setShowFlexOverlays against the provided context.

func (SetShowFlexOverlaysParams) MarshalEasyJSON

func (v SetShowFlexOverlaysParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowFlexOverlaysParams) MarshalJSON

func (v SetShowFlexOverlaysParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowFlexOverlaysParams) UnmarshalEasyJSON

func (v *SetShowFlexOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowFlexOverlaysParams) UnmarshalJSON

func (v *SetShowFlexOverlaysParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowGridOverlaysParams

type SetShowGridOverlaysParams struct {
	GridNodeHighlightConfigs []*GridNodeHighlightConfig `json:"gridNodeHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance.
}

SetShowGridOverlaysParams highlight multiple elements with the CSS Grid overlay.

func SetShowGridOverlays

func SetShowGridOverlays(gridNodeHighlightConfigs []*GridNodeHighlightConfig) *SetShowGridOverlaysParams

SetShowGridOverlays highlight multiple elements with the CSS Grid overlay.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowGridOverlays

parameters:

gridNodeHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance.

func (*SetShowGridOverlaysParams) Do

Do executes Overlay.setShowGridOverlays against the provided context.

func (SetShowGridOverlaysParams) MarshalEasyJSON

func (v SetShowGridOverlaysParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowGridOverlaysParams) MarshalJSON

func (v SetShowGridOverlaysParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowGridOverlaysParams) UnmarshalEasyJSON

func (v *SetShowGridOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowGridOverlaysParams) UnmarshalJSON

func (v *SetShowGridOverlaysParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowHingeParams

type SetShowHingeParams struct {
	HingeConfig *HingeConfig `json:"hingeConfig,omitempty"` // hinge data, null means hideHinge
}

SetShowHingeParams add a dual screen device hinge.

func SetShowHinge

func SetShowHinge() *SetShowHingeParams

SetShowHinge add a dual screen device hinge.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowHinge

parameters:

func (*SetShowHingeParams) Do

func (p *SetShowHingeParams) Do(ctx context.Context) (err error)

Do executes Overlay.setShowHinge against the provided context.

func (SetShowHingeParams) MarshalEasyJSON

func (v SetShowHingeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowHingeParams) MarshalJSON

func (v SetShowHingeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowHingeParams) UnmarshalEasyJSON

func (v *SetShowHingeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowHingeParams) UnmarshalJSON

func (v *SetShowHingeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetShowHingeParams) WithHingeConfig

func (p SetShowHingeParams) WithHingeConfig(hingeConfig *HingeConfig) *SetShowHingeParams

WithHingeConfig hinge data, null means hideHinge.

type SetShowIsolatedElementsParams

type SetShowIsolatedElementsParams struct {
	IsolatedElementHighlightConfigs []*IsolatedElementHighlightConfig `json:"isolatedElementHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance.
}

SetShowIsolatedElementsParams show elements in isolation mode with overlays.

func SetShowIsolatedElements

func SetShowIsolatedElements(isolatedElementHighlightConfigs []*IsolatedElementHighlightConfig) *SetShowIsolatedElementsParams

SetShowIsolatedElements show elements in isolation mode with overlays.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowIsolatedElements

parameters:

isolatedElementHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance.

func (*SetShowIsolatedElementsParams) Do

Do executes Overlay.setShowIsolatedElements against the provided context.

func (SetShowIsolatedElementsParams) MarshalEasyJSON

func (v SetShowIsolatedElementsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowIsolatedElementsParams) MarshalJSON

func (v SetShowIsolatedElementsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowIsolatedElementsParams) UnmarshalEasyJSON

func (v *SetShowIsolatedElementsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowIsolatedElementsParams) UnmarshalJSON

func (v *SetShowIsolatedElementsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowLayoutShiftRegionsParams

type SetShowLayoutShiftRegionsParams struct {
	Result bool `json:"result"` // True for showing layout shift regions
}

SetShowLayoutShiftRegionsParams requests that backend shows layout shift regions.

func SetShowLayoutShiftRegions

func SetShowLayoutShiftRegions(result bool) *SetShowLayoutShiftRegionsParams

SetShowLayoutShiftRegions requests that backend shows layout shift regions.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowLayoutShiftRegions

parameters:

result - True for showing layout shift regions

func (*SetShowLayoutShiftRegionsParams) Do

Do executes Overlay.setShowLayoutShiftRegions against the provided context.

func (SetShowLayoutShiftRegionsParams) MarshalEasyJSON

func (v SetShowLayoutShiftRegionsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowLayoutShiftRegionsParams) MarshalJSON

func (v SetShowLayoutShiftRegionsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowLayoutShiftRegionsParams) UnmarshalEasyJSON

func (v *SetShowLayoutShiftRegionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowLayoutShiftRegionsParams) UnmarshalJSON

func (v *SetShowLayoutShiftRegionsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowPaintRectsParams

type SetShowPaintRectsParams struct {
	Result bool `json:"result"` // True for showing paint rectangles
}

SetShowPaintRectsParams requests that backend shows paint rectangles.

func SetShowPaintRects

func SetShowPaintRects(result bool) *SetShowPaintRectsParams

SetShowPaintRects requests that backend shows paint rectangles.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowPaintRects

parameters:

result - True for showing paint rectangles

func (*SetShowPaintRectsParams) Do

func (p *SetShowPaintRectsParams) Do(ctx context.Context) (err error)

Do executes Overlay.setShowPaintRects against the provided context.

func (SetShowPaintRectsParams) MarshalEasyJSON

func (v SetShowPaintRectsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowPaintRectsParams) MarshalJSON

func (v SetShowPaintRectsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowPaintRectsParams) UnmarshalEasyJSON

func (v *SetShowPaintRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowPaintRectsParams) UnmarshalJSON

func (v *SetShowPaintRectsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowScrollBottleneckRectsParams

type SetShowScrollBottleneckRectsParams struct {
	Show bool `json:"show"` // True for showing scroll bottleneck rects
}

SetShowScrollBottleneckRectsParams requests that backend shows scroll bottleneck rects.

func SetShowScrollBottleneckRects

func SetShowScrollBottleneckRects(show bool) *SetShowScrollBottleneckRectsParams

SetShowScrollBottleneckRects requests that backend shows scroll bottleneck rects.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowScrollBottleneckRects

parameters:

show - True for showing scroll bottleneck rects

func (*SetShowScrollBottleneckRectsParams) Do

Do executes Overlay.setShowScrollBottleneckRects against the provided context.

func (SetShowScrollBottleneckRectsParams) MarshalEasyJSON

func (v SetShowScrollBottleneckRectsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowScrollBottleneckRectsParams) MarshalJSON

func (v SetShowScrollBottleneckRectsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON

func (v *SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowScrollBottleneckRectsParams) UnmarshalJSON

func (v *SetShowScrollBottleneckRectsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowScrollSnapOverlaysParams

type SetShowScrollSnapOverlaysParams struct {
	ScrollSnapHighlightConfigs []*ScrollSnapHighlightConfig `json:"scrollSnapHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance.
}

SetShowScrollSnapOverlaysParams [no description].

func SetShowScrollSnapOverlays

func SetShowScrollSnapOverlays(scrollSnapHighlightConfigs []*ScrollSnapHighlightConfig) *SetShowScrollSnapOverlaysParams

SetShowScrollSnapOverlays [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowScrollSnapOverlays

parameters:

scrollSnapHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance.

func (*SetShowScrollSnapOverlaysParams) Do

Do executes Overlay.setShowScrollSnapOverlays against the provided context.

func (SetShowScrollSnapOverlaysParams) MarshalEasyJSON

func (v SetShowScrollSnapOverlaysParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowScrollSnapOverlaysParams) MarshalJSON

func (v SetShowScrollSnapOverlaysParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowScrollSnapOverlaysParams) UnmarshalEasyJSON

func (v *SetShowScrollSnapOverlaysParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowScrollSnapOverlaysParams) UnmarshalJSON

func (v *SetShowScrollSnapOverlaysParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowViewportSizeOnResizeParams

type SetShowViewportSizeOnResizeParams struct {
	Show bool `json:"show"` // Whether to paint size or not.
}

SetShowViewportSizeOnResizeParams paints viewport size upon main frame resize.

func SetShowViewportSizeOnResize

func SetShowViewportSizeOnResize(show bool) *SetShowViewportSizeOnResizeParams

SetShowViewportSizeOnResize paints viewport size upon main frame resize.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowViewportSizeOnResize

parameters:

show - Whether to paint size or not.

func (*SetShowViewportSizeOnResizeParams) Do

Do executes Overlay.setShowViewportSizeOnResize against the provided context.

func (SetShowViewportSizeOnResizeParams) MarshalEasyJSON

func (v SetShowViewportSizeOnResizeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowViewportSizeOnResizeParams) MarshalJSON

func (v SetShowViewportSizeOnResizeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowViewportSizeOnResizeParams) UnmarshalEasyJSON

func (v *SetShowViewportSizeOnResizeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowViewportSizeOnResizeParams) UnmarshalJSON

func (v *SetShowViewportSizeOnResizeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowWebVitalsParams

type SetShowWebVitalsParams struct {
	Show bool `json:"show"`
}

SetShowWebVitalsParams request that backend shows an overlay with web vital metrics.

func SetShowWebVitals

func SetShowWebVitals(show bool) *SetShowWebVitalsParams

SetShowWebVitals request that backend shows an overlay with web vital metrics.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowWebVitals

parameters:

show

func (*SetShowWebVitalsParams) Do

func (p *SetShowWebVitalsParams) Do(ctx context.Context) (err error)

Do executes Overlay.setShowWebVitals against the provided context.

func (SetShowWebVitalsParams) MarshalEasyJSON

func (v SetShowWebVitalsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowWebVitalsParams) MarshalJSON

func (v SetShowWebVitalsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowWebVitalsParams) UnmarshalEasyJSON

func (v *SetShowWebVitalsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowWebVitalsParams) UnmarshalJSON

func (v *SetShowWebVitalsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetShowWindowControlsOverlayParams

type SetShowWindowControlsOverlayParams struct {
	WindowControlsOverlayConfig *WindowControlsOverlayConfig `json:"windowControlsOverlayConfig,omitempty"` // Window Controls Overlay data, null means hide Window Controls Overlay
}

SetShowWindowControlsOverlayParams show Window Controls Overlay for PWA.

func SetShowWindowControlsOverlay

func SetShowWindowControlsOverlay() *SetShowWindowControlsOverlayParams

SetShowWindowControlsOverlay show Window Controls Overlay for PWA.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowWindowControlsOverlay

parameters:

func (*SetShowWindowControlsOverlayParams) Do

Do executes Overlay.setShowWindowControlsOverlay against the provided context.

func (SetShowWindowControlsOverlayParams) MarshalEasyJSON

func (v SetShowWindowControlsOverlayParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowWindowControlsOverlayParams) MarshalJSON

func (v SetShowWindowControlsOverlayParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetShowWindowControlsOverlayParams) UnmarshalEasyJSON

func (v *SetShowWindowControlsOverlayParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowWindowControlsOverlayParams) UnmarshalJSON

func (v *SetShowWindowControlsOverlayParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetShowWindowControlsOverlayParams) WithWindowControlsOverlayConfig

func (p SetShowWindowControlsOverlayParams) WithWindowControlsOverlayConfig(windowControlsOverlayConfig *WindowControlsOverlayConfig) *SetShowWindowControlsOverlayParams

WithWindowControlsOverlayConfig window Controls Overlay data, null means hide Window Controls Overlay.

type SourceOrderConfig

type SourceOrderConfig struct {
	ParentOutlineColor *cdp.RGBA `json:"parentOutlineColor"` // the color to outline the given element in.
	ChildOutlineColor  *cdp.RGBA `json:"childOutlineColor"`  // the color to outline the child elements in.
}

SourceOrderConfig configuration data for drawing the source order of an elements children.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-SourceOrderConfig

func (SourceOrderConfig) MarshalEasyJSON

func (v SourceOrderConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SourceOrderConfig) MarshalJSON

func (v SourceOrderConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SourceOrderConfig) UnmarshalEasyJSON

func (v *SourceOrderConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SourceOrderConfig) UnmarshalJSON

func (v *SourceOrderConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WindowControlsOverlayConfig

type WindowControlsOverlayConfig struct {
	ShowCSS          bool   `json:"showCSS"`          // Whether the title bar CSS should be shown when emulating the Window Controls Overlay.
	SelectedPlatform string `json:"selectedPlatform"` // Selected platforms to show the overlay.
	ThemeColor       string `json:"themeColor"`       // The theme color defined in app manifest.
}

WindowControlsOverlayConfig configuration for Window Controls Overlay.

See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#type-WindowControlsOverlayConfig

func (WindowControlsOverlayConfig) MarshalEasyJSON

func (v WindowControlsOverlayConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WindowControlsOverlayConfig) MarshalJSON

func (v WindowControlsOverlayConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WindowControlsOverlayConfig) UnmarshalEasyJSON

func (v *WindowControlsOverlayConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WindowControlsOverlayConfig) UnmarshalJSON

func (v *WindowControlsOverlayConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL