cdproto: github.com/chromedp/cdproto/overlay Index | Files

package overlay

import "github.com/chromedp/cdproto/overlay"

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

Package Files

easyjson.go events.go overlay.go types.go

Constants

const (
    CommandDisable                              = "Overlay.disable"
    CommandEnable                               = "Overlay.enable"
    CommandGetHighlightObjectForTest            = "Overlay.getHighlightObjectForTest"
    CommandGetGridHighlightObjectsForTest       = "Overlay.getGridHighlightObjectsForTest"
    CommandGetSourceOrderHighlightObjectForTest = "Overlay.getSourceOrderHighlightObjectForTest"
    CommandHideHighlight                        = "Overlay.hideHighlight"
    CommandHighlightFrame                       = "Overlay.highlightFrame"
    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"
    CommandSetShowPaintRects                    = "Overlay.setShowPaintRects"
    CommandSetShowLayoutShiftRegions            = "Overlay.setShowLayoutShiftRegions"
    CommandSetShowScrollBottleneckRects         = "Overlay.setShowScrollBottleneckRects"
    CommandSetShowHitTestBorders                = "Overlay.setShowHitTestBorders"
    CommandSetShowViewportSizeOnResize          = "Overlay.setShowViewportSizeOnResize"
    CommandSetShowHinge                         = "Overlay.setShowHinge"
)

Command names.

type BoxStyle Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (BoxStyle) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*BoxStyle) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BoxStyle) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ColorFormat Uses

type ColorFormat string

ColorFormat [no description].

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

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

ColorFormat values.

func (ColorFormat) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ColorFormat) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ColorFormat) String Uses

func (t ColorFormat) String() string

String returns the ColorFormat as string value.

func (*ColorFormat) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ColorFormat) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ContrastAlgorithm Uses

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 Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContrastAlgorithm) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ContrastAlgorithm) String Uses

func (t ContrastAlgorithm) String() string

String returns the ContrastAlgorithm as string value.

func (*ContrastAlgorithm) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContrastAlgorithm) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams Uses

type DisableParams struct{}

DisableParams disables domain notifications.

func Disable Uses

func Disable() *DisableParams

Disable disables domain notifications.

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

func (*DisableParams) Do Uses

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

Do executes Overlay.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables domain notifications.

func Enable Uses

func Enable() *EnableParams

Enable enables domain notifications.

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

func (*EnableParams) Do Uses

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

Do executes Overlay.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventInspectModeCanceled Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInspectModeCanceled) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventInspectModeCanceled) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInspectModeCanceled) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventInspectNodeRequested Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventInspectNodeRequested) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventInspectNodeRequested) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventInspectNodeRequested) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventNodeHighlightRequested Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodeHighlightRequested) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventNodeHighlightRequested) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodeHighlightRequested) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventScreenshotRequested Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScreenshotRequested) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventScreenshotRequested) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScreenshotRequested) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type FlexContainerHighlightConfig Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlexContainerHighlightConfig) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*FlexContainerHighlightConfig) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlexContainerHighlightConfig) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type FlexNodeHighlightConfig Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlexNodeHighlightConfig) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*FlexNodeHighlightConfig) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlexNodeHighlightConfig) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetGridHighlightObjectsForTestParams Uses

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

GetGridHighlightObjectsForTestParams for Persistent Grid testing.

func GetGridHighlightObjectsForTest Uses

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 Uses

func (p *GetGridHighlightObjectsForTestParams) Do(ctx context.Context) (highlights easyjson.RawMessage, err error)

Do executes Overlay.getGridHighlightObjectsForTest against the provided context.

returns:

highlights - Grid Highlight data for the node ids provided.

func (GetGridHighlightObjectsForTestParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetGridHighlightObjectsForTestParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetGridHighlightObjectsForTestParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetGridHighlightObjectsForTestParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetGridHighlightObjectsForTestReturns Uses

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

GetGridHighlightObjectsForTestReturns return values.

func (GetGridHighlightObjectsForTestReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetGridHighlightObjectsForTestReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetGridHighlightObjectsForTestReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetGridHighlightObjectsForTestReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetHighlightObjectForTestParams Uses

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 Uses

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 Uses

func (p *GetHighlightObjectForTestParams) Do(ctx context.Context) (highlight easyjson.RawMessage, err error)

Do executes Overlay.getHighlightObjectForTest against the provided context.

returns:

highlight - Highlight data for the node.

func (GetHighlightObjectForTestParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHighlightObjectForTestParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetHighlightObjectForTestParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHighlightObjectForTestParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (GetHighlightObjectForTestParams) WithColorFormat Uses

func (p GetHighlightObjectForTestParams) WithColorFormat(colorFormat ColorFormat) *GetHighlightObjectForTestParams

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

func (GetHighlightObjectForTestParams) WithIncludeDistance Uses

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

WithIncludeDistance whether to include distance info.

func (GetHighlightObjectForTestParams) WithIncludeStyle Uses

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

WithIncludeStyle whether to include style info.

func (GetHighlightObjectForTestParams) WithShowAccessibilityInfo Uses

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

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

type GetHighlightObjectForTestReturns Uses

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

GetHighlightObjectForTestReturns return values.

func (GetHighlightObjectForTestReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHighlightObjectForTestReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetHighlightObjectForTestReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHighlightObjectForTestReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetSourceOrderHighlightObjectForTestParams Uses

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

GetSourceOrderHighlightObjectForTestParams for Source Order Viewer testing.

func GetSourceOrderHighlightObjectForTest Uses

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 Uses

func (p *GetSourceOrderHighlightObjectForTestParams) Do(ctx context.Context) (highlight easyjson.RawMessage, err error)

Do executes Overlay.getSourceOrderHighlightObjectForTest against the provided context.

returns:

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

func (GetSourceOrderHighlightObjectForTestParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSourceOrderHighlightObjectForTestParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetSourceOrderHighlightObjectForTestParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSourceOrderHighlightObjectForTestParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetSourceOrderHighlightObjectForTestReturns Uses

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

GetSourceOrderHighlightObjectForTestReturns return values.

func (GetSourceOrderHighlightObjectForTestReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSourceOrderHighlightObjectForTestReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetSourceOrderHighlightObjectForTestReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSourceOrderHighlightObjectForTestReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GridHighlightConfig Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GridHighlightConfig) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GridHighlightConfig) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GridHighlightConfig) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GridNodeHighlightConfig Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GridNodeHighlightConfig) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GridNodeHighlightConfig) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GridNodeHighlightConfig) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type HideHighlightParams Uses

type HideHighlightParams struct{}

HideHighlightParams hides any highlight.

func HideHighlight Uses

func HideHighlight() *HideHighlightParams

HideHighlight hides any highlight.

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

func (*HideHighlightParams) Do Uses

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

Do executes Overlay.hideHighlight against the provided context.

func (HideHighlightParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HideHighlightParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HideHighlightParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HideHighlightParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type HighlightConfig Uses

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).
    ContrastAlgorithm            ContrastAlgorithm             `json:"contrastAlgorithm,omitempty"`            // The contrast algorithm to use for the contrast ratio (default: aa).
}

HighlightConfig configuration data for the highlighting of page elements.

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

func (HighlightConfig) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightConfig) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HighlightConfig) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightConfig) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type HighlightFrameParams Uses

type HighlightFrameParams struct {
    FrameID             cdp.FrameID `json:"frameId"`                       // Identifier of the frame to highlight.
    ContentColor        *cdp.RGBA   `json:"contentColor,omitempty"`        // The content box highlight fill color (default: transparent).
    ContentOutlineColor *cdp.RGBA   `json:"contentOutlineColor,omitempty"` // The content box highlight outline color (default: transparent).
}

HighlightFrameParams highlights owner element of the frame with given id.

func HighlightFrame Uses

func HighlightFrame(frameID cdp.FrameID) *HighlightFrameParams

HighlightFrame highlights owner element of the frame with given id.

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

parameters:

frameID - Identifier of the frame to highlight.

func (*HighlightFrameParams) Do Uses

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

Do executes Overlay.highlightFrame against the provided context.

func (HighlightFrameParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightFrameParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HighlightFrameParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightFrameParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightFrameParams) WithContentColor Uses

func (p HighlightFrameParams) WithContentColor(contentColor *cdp.RGBA) *HighlightFrameParams

WithContentColor the content box highlight fill color (default: transparent).

func (HighlightFrameParams) WithContentOutlineColor Uses

func (p HighlightFrameParams) WithContentOutlineColor(contentOutlineColor *cdp.RGBA) *HighlightFrameParams

WithContentOutlineColor the content box highlight outline color (default: transparent).

type HighlightNodeParams Uses

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 Uses

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 Uses

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

Do executes Overlay.highlightNode against the provided context.

func (HighlightNodeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightNodeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HighlightNodeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightNodeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightNodeParams) WithBackendNodeID Uses

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

WithBackendNodeID identifier of the backend node to highlight.

func (HighlightNodeParams) WithNodeID Uses

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

WithNodeID identifier of the node to highlight.

func (HighlightNodeParams) WithObjectID Uses

func (p HighlightNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightNodeParams

WithObjectID JavaScript object id of the node to be highlighted.

func (HighlightNodeParams) WithSelector Uses

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

WithSelector selectors to highlight relevant nodes.

type HighlightQuadParams Uses

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 Uses

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 Uses

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

Do executes Overlay.highlightQuad against the provided context.

func (HighlightQuadParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightQuadParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HighlightQuadParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightQuadParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightQuadParams) WithColor Uses

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

WithColor the highlight fill color (default: transparent).

func (HighlightQuadParams) WithOutlineColor Uses

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

WithOutlineColor the highlight outline color (default: transparent).

type HighlightRectParams Uses

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 Uses

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 Uses

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

Do executes Overlay.highlightRect against the provided context.

func (HighlightRectParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightRectParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HighlightRectParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightRectParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightRectParams) WithColor Uses

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

WithColor the highlight fill color (default: transparent).

func (HighlightRectParams) WithOutlineColor Uses

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

WithOutlineColor the highlight outline color (default: transparent).

type HighlightSourceOrderParams Uses

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 Uses

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 Uses

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

Do executes Overlay.highlightSourceOrder against the provided context.

func (HighlightSourceOrderParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HighlightSourceOrderParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HighlightSourceOrderParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HighlightSourceOrderParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (HighlightSourceOrderParams) WithBackendNodeID Uses

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

WithBackendNodeID identifier of the backend node to highlight.

func (HighlightSourceOrderParams) WithNodeID Uses

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

WithNodeID identifier of the node to highlight.

func (HighlightSourceOrderParams) WithObjectID Uses

func (p HighlightSourceOrderParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightSourceOrderParams

WithObjectID JavaScript object id of the node to be highlighted.

type HingeConfig Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (HingeConfig) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*HingeConfig) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HingeConfig) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type InspectMode Uses

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 Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (InspectMode) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (InspectMode) String Uses

func (t InspectMode) String() string

String returns the InspectMode as string value.

func (*InspectMode) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*InspectMode) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type LineStyle Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (LineStyle) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*LineStyle) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LineStyle) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type LineStylePattern Uses

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 Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (LineStylePattern) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (LineStylePattern) String Uses

func (t LineStylePattern) String() string

String returns the LineStylePattern as string value.

func (*LineStylePattern) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*LineStylePattern) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type SetInspectModeParams Uses

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 Uses

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 Uses

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

Do executes Overlay.setInspectMode against the provided context.

func (SetInspectModeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetInspectModeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetInspectModeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetInspectModeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetInspectModeParams) WithHighlightConfig Uses

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 Uses

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

SetPausedInDebuggerMessageParams [no description].

func SetPausedInDebuggerMessage Uses

func SetPausedInDebuggerMessage() *SetPausedInDebuggerMessageParams

SetPausedInDebuggerMessage [no description].

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

parameters:

func (*SetPausedInDebuggerMessageParams) Do Uses

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

Do executes Overlay.setPausedInDebuggerMessage against the provided context.

func (SetPausedInDebuggerMessageParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPausedInDebuggerMessageParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetPausedInDebuggerMessageParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPausedInDebuggerMessageParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetPausedInDebuggerMessageParams) WithMessage Uses

func (p SetPausedInDebuggerMessageParams) WithMessage(message string) *SetPausedInDebuggerMessageParams

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

type SetShowAdHighlightsParams Uses

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 Uses

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 Uses

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

Do executes Overlay.setShowAdHighlights against the provided context.

func (SetShowAdHighlightsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowAdHighlightsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowAdHighlightsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowAdHighlightsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowDebugBordersParams Uses

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

SetShowDebugBordersParams requests that backend shows debug borders on layers.

func SetShowDebugBorders Uses

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 Uses

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

Do executes Overlay.setShowDebugBorders against the provided context.

func (SetShowDebugBordersParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowDebugBordersParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowDebugBordersParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowDebugBordersParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowFPSCounterParams Uses

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

SetShowFPSCounterParams requests that backend shows the FPS counter.

func SetShowFPSCounter Uses

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 Uses

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

Do executes Overlay.setShowFPSCounter against the provided context.

func (SetShowFPSCounterParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowFPSCounterParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowFPSCounterParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowFPSCounterParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowFlexOverlaysParams Uses

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

SetShowFlexOverlaysParams [no description].

func SetShowFlexOverlays Uses

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 Uses

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

Do executes Overlay.setShowFlexOverlays against the provided context.

func (SetShowFlexOverlaysParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowFlexOverlaysParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowFlexOverlaysParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowFlexOverlaysParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowGridOverlaysParams Uses

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 Uses

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 Uses

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

Do executes Overlay.setShowGridOverlays against the provided context.

func (SetShowGridOverlaysParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowGridOverlaysParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowGridOverlaysParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowGridOverlaysParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowHingeParams Uses

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

SetShowHingeParams add a dual screen device hinge.

func SetShowHinge Uses

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 Uses

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

Do executes Overlay.setShowHinge against the provided context.

func (SetShowHingeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowHingeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowHingeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowHingeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetShowHingeParams) WithHingeConfig Uses

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

WithHingeConfig hinge data, null means hideHinge.

type SetShowHitTestBordersParams Uses

type SetShowHitTestBordersParams struct {
    Show bool `json:"show"` // True for showing hit-test borders
}

SetShowHitTestBordersParams requests that backend shows hit-test borders on layers.

func SetShowHitTestBorders Uses

func SetShowHitTestBorders(show bool) *SetShowHitTestBordersParams

SetShowHitTestBorders requests that backend shows hit-test borders on layers.

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

parameters:

show - True for showing hit-test borders

func (*SetShowHitTestBordersParams) Do Uses

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

Do executes Overlay.setShowHitTestBorders against the provided context.

func (SetShowHitTestBordersParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowHitTestBordersParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowHitTestBordersParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowHitTestBordersParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowLayoutShiftRegionsParams Uses

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

SetShowLayoutShiftRegionsParams requests that backend shows layout shift regions.

func SetShowLayoutShiftRegions Uses

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 Uses

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

Do executes Overlay.setShowLayoutShiftRegions against the provided context.

func (SetShowLayoutShiftRegionsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowLayoutShiftRegionsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowLayoutShiftRegionsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowLayoutShiftRegionsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowPaintRectsParams Uses

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

SetShowPaintRectsParams requests that backend shows paint rectangles.

func SetShowPaintRects Uses

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 Uses

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

Do executes Overlay.setShowPaintRects against the provided context.

func (SetShowPaintRectsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowPaintRectsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowPaintRectsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowPaintRectsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowScrollBottleneckRectsParams Uses

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

SetShowScrollBottleneckRectsParams requests that backend shows scroll bottleneck rects.

func SetShowScrollBottleneckRects Uses

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 Uses

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

Do executes Overlay.setShowScrollBottleneckRects against the provided context.

func (SetShowScrollBottleneckRectsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowScrollBottleneckRectsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowScrollBottleneckRectsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetShowViewportSizeOnResizeParams Uses

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

SetShowViewportSizeOnResizeParams paints viewport size upon main frame resize.

func SetShowViewportSizeOnResize Uses

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 Uses

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

Do executes Overlay.setShowViewportSizeOnResize against the provided context.

func (SetShowViewportSizeOnResizeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetShowViewportSizeOnResizeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetShowViewportSizeOnResizeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetShowViewportSizeOnResizeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SourceOrderConfig Uses

type SourceOrderConfig struct {
    ParentOutlineColor *cdp.RGBA `json:"parentOutlineColor"` // the color to outline the givent 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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SourceOrderConfig) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SourceOrderConfig) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SourceOrderConfig) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

Package overlay imports 10 packages (graph) and is imported by 3 packages. Updated 2021-01-05. Refresh now. Tools for package owners.