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
- type ColorFormat
- type DisableParams
- type EnableParams
- type EventInspectModeCanceled
- type EventInspectNodeRequested
- type EventNodeHighlightRequested
- type EventScreenshotRequested
- type GetHighlightObjectForTestParams
- func (p *GetHighlightObjectForTestParams) Do(ctx context.Context) (highlight easyjson.RawMessage, err error)
- func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error)
- func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error
- func (p GetHighlightObjectForTestParams) WithColorFormat(colorFormat ColorFormat) *GetHighlightObjectForTestParams
- func (p GetHighlightObjectForTestParams) WithIncludeDistance(includeDistance bool) *GetHighlightObjectForTestParams
- func (p GetHighlightObjectForTestParams) WithIncludeStyle(includeStyle bool) *GetHighlightObjectForTestParams
- func (p GetHighlightObjectForTestParams) WithShowAccessibilityInfo(showAccessibilityInfo bool) *GetHighlightObjectForTestParams
- type GetHighlightObjectForTestReturns
- func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error)
- func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error
- type GridHighlightConfig
- type HideHighlightParams
- func (p *HideHighlightParams) Do(ctx context.Context) (err error)
- func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HideHighlightParams) MarshalJSON() ([]byte, error)
- func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HideHighlightParams) UnmarshalJSON(data []byte) error
- type HighlightConfig
- type HighlightFrameParams
- func (p *HighlightFrameParams) Do(ctx context.Context) (err error)
- func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightFrameParams) MarshalJSON() ([]byte, error)
- func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error
- func (p HighlightFrameParams) WithContentColor(contentColor *cdp.RGBA) *HighlightFrameParams
- func (p HighlightFrameParams) WithContentOutlineColor(contentOutlineColor *cdp.RGBA) *HighlightFrameParams
- type HighlightNodeParams
- func (p *HighlightNodeParams) Do(ctx context.Context) (err error)
- func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightNodeParams) MarshalJSON() ([]byte, error)
- func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error
- func (p HighlightNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightNodeParams
- func (p HighlightNodeParams) WithNodeID(nodeID cdp.NodeID) *HighlightNodeParams
- func (p HighlightNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightNodeParams
- func (p HighlightNodeParams) WithSelector(selector string) *HighlightNodeParams
- type HighlightQuadParams
- func (p *HighlightQuadParams) Do(ctx context.Context) (err error)
- func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightQuadParams) MarshalJSON() ([]byte, error)
- func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error
- func (p HighlightQuadParams) WithColor(color *cdp.RGBA) *HighlightQuadParams
- func (p HighlightQuadParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightQuadParams
- type HighlightRectParams
- func (p *HighlightRectParams) Do(ctx context.Context) (err error)
- func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v HighlightRectParams) MarshalJSON() ([]byte, error)
- func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HighlightRectParams) UnmarshalJSON(data []byte) error
- func (p HighlightRectParams) WithColor(color *cdp.RGBA) *HighlightRectParams
- func (p HighlightRectParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightRectParams
- type HingeConfig
- type InspectMode
- type SetInspectModeParams
- func (p *SetInspectModeParams) Do(ctx context.Context) (err error)
- func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetInspectModeParams) MarshalJSON() ([]byte, error)
- func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error
- func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams
- type SetPausedInDebuggerMessageParams
- func (p *SetPausedInDebuggerMessageParams) Do(ctx context.Context) (err error)
- func (v SetPausedInDebuggerMessageParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetPausedInDebuggerMessageParams) MarshalJSON() ([]byte, error)
- func (v *SetPausedInDebuggerMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetPausedInDebuggerMessageParams) UnmarshalJSON(data []byte) error
- func (p SetPausedInDebuggerMessageParams) WithMessage(message string) *SetPausedInDebuggerMessageParams
- type SetShowAdHighlightsParams
- func (p *SetShowAdHighlightsParams) Do(ctx context.Context) (err error)
- func (v SetShowAdHighlightsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowAdHighlightsParams) MarshalJSON() ([]byte, error)
- func (v *SetShowAdHighlightsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowAdHighlightsParams) UnmarshalJSON(data []byte) error
- type SetShowDebugBordersParams
- func (p *SetShowDebugBordersParams) Do(ctx context.Context) (err error)
- func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error)
- func (v *SetShowDebugBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error
- type SetShowFPSCounterParams
- func (p *SetShowFPSCounterParams) Do(ctx context.Context) (err error)
- func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error)
- func (v *SetShowFPSCounterParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error
- type SetShowHingeParams
- func (p *SetShowHingeParams) Do(ctx context.Context) (err error)
- func (v SetShowHingeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowHingeParams) MarshalJSON() ([]byte, error)
- func (v *SetShowHingeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowHingeParams) UnmarshalJSON(data []byte) error
- func (p SetShowHingeParams) WithHingeConfig(hingeConfig *HingeConfig) *SetShowHingeParams
- type SetShowHitTestBordersParams
- func (p *SetShowHitTestBordersParams) Do(ctx context.Context) (err error)
- func (v SetShowHitTestBordersParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowHitTestBordersParams) MarshalJSON() ([]byte, error)
- func (v *SetShowHitTestBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowHitTestBordersParams) UnmarshalJSON(data []byte) error
- type SetShowLayoutShiftRegionsParams
- func (p *SetShowLayoutShiftRegionsParams) Do(ctx context.Context) (err error)
- func (v SetShowLayoutShiftRegionsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowLayoutShiftRegionsParams) MarshalJSON() ([]byte, error)
- func (v *SetShowLayoutShiftRegionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowLayoutShiftRegionsParams) UnmarshalJSON(data []byte) error
- type SetShowPaintRectsParams
- func (p *SetShowPaintRectsParams) Do(ctx context.Context) (err error)
- func (v SetShowPaintRectsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowPaintRectsParams) MarshalJSON() ([]byte, error)
- func (v *SetShowPaintRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowPaintRectsParams) UnmarshalJSON(data []byte) error
- type SetShowScrollBottleneckRectsParams
- func (p *SetShowScrollBottleneckRectsParams) Do(ctx context.Context) (err error)
- func (v SetShowScrollBottleneckRectsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowScrollBottleneckRectsParams) MarshalJSON() ([]byte, error)
- func (v *SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowScrollBottleneckRectsParams) UnmarshalJSON(data []byte) error
- type SetShowViewportSizeOnResizeParams
- func (p *SetShowViewportSizeOnResizeParams) Do(ctx context.Context) (err error)
- func (v SetShowViewportSizeOnResizeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetShowViewportSizeOnResizeParams) MarshalJSON() ([]byte, error)
- func (v *SetShowViewportSizeOnResizeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetShowViewportSizeOnResizeParams) UnmarshalJSON(data []byte) error
Constants ¶
const ( CommandDisable = "Overlay.disable" CommandEnable = "Overlay.enable" CommandGetHighlightObjectForTest = "Overlay.getHighlightObjectForTest" CommandHideHighlight = "Overlay.hideHighlight" CommandHighlightFrame = "Overlay.highlightFrame" CommandHighlightNode = "Overlay.highlightNode" CommandHighlightQuad = "Overlay.highlightQuad" CommandHighlightRect = "Overlay.highlightRect" CommandSetInspectMode = "Overlay.setInspectMode" CommandSetShowAdHighlights = "Overlay.setShowAdHighlights" CommandSetPausedInDebuggerMessage = "Overlay.setPausedInDebuggerMessage" CommandSetShowDebugBorders = "Overlay.setShowDebugBorders" CommandSetShowFPSCounter = "Overlay.setShowFPSCounter" CommandSetShowPaintRects = "Overlay.setShowPaintRects" CommandSetShowLayoutShiftRegions = "Overlay.setShowLayoutShiftRegions" CommandSetShowScrollBottleneckRects = "Overlay.setShowScrollBottleneckRects" CommandSetShowHitTestBorders = "Overlay.setShowHitTestBorders" CommandSetShowViewportSizeOnResize = "Overlay.setShowViewportSizeOnResize" CommandSetShowHinge = "Overlay.setShowHinge" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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" 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 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 ¶
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 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 ¶
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 ¶
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 ¶
func (p GetHighlightObjectForTestParams) WithColorFormat(colorFormat ColorFormat) *GetHighlightObjectForTestParams
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 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). GridBorderColor *cdp.RGBA `json:"gridBorderColor,omitempty"` // The grid container border highlight color (default: transparent). CellBorderColor *cdp.RGBA `json:"cellBorderColor,omitempty"` // The cell border color (default: transparent). GridBorderDash bool `json:"gridBorderDash,omitempty"` // Whether the grid border is dashed (default: false). CellBorderDash bool `json:"cellBorderDash,omitempty"` // Whether the cell border is 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). }
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 HideHighlightParams ¶
type HideHighlightParams struct{}
HideHighlightParams hides any highlight.
func HideHighlight ¶
func HideHighlight() *HideHighlightParams
HideHighlight hides any highlight.
See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-hideHighlight
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). }
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 HighlightFrameParams ¶
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 ¶
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 ¶
func (p *HighlightFrameParams) Do(ctx context.Context) (err error)
Do executes Overlay.highlightFrame against the provided context.
func (HighlightFrameParams) MarshalEasyJSON ¶
func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HighlightFrameParams) MarshalJSON ¶
func (v HighlightFrameParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HighlightFrameParams) UnmarshalEasyJSON ¶
func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HighlightFrameParams) UnmarshalJSON ¶
func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (HighlightFrameParams) WithContentColor ¶
func (p HighlightFrameParams) WithContentColor(contentColor *cdp.RGBA) *HighlightFrameParams
WithContentColor the content box highlight fill color (default: transparent).
func (HighlightFrameParams) WithContentOutlineColor ¶
func (p HighlightFrameParams) WithContentOutlineColor(contentOutlineColor *cdp.RGBA) *HighlightFrameParams
WithContentOutlineColor the content box highlight outline color (default: transparent).
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 ¶
func (p HighlightNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightNodeParams
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 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 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 ¶
func (p *SetPausedInDebuggerMessageParams) Do(ctx context.Context) (err error)
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 ¶
func (p SetPausedInDebuggerMessageParams) WithMessage(message string) *SetPausedInDebuggerMessageParams
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 ¶
func (p *SetShowAdHighlightsParams) Do(ctx context.Context) (err error)
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 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 ¶
func (p *SetShowDebugBordersParams) Do(ctx context.Context) (err error)
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 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 SetShowHitTestBordersParams ¶
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 ¶
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 ¶
func (p *SetShowHitTestBordersParams) Do(ctx context.Context) (err error)
Do executes Overlay.setShowHitTestBorders against the provided context.
func (SetShowHitTestBordersParams) MarshalEasyJSON ¶
func (v SetShowHitTestBordersParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetShowHitTestBordersParams) MarshalJSON ¶
func (v SetShowHitTestBordersParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetShowHitTestBordersParams) UnmarshalEasyJSON ¶
func (v *SetShowHitTestBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetShowHitTestBordersParams) UnmarshalJSON ¶
func (v *SetShowHitTestBordersParams) 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 ¶
func (p *SetShowLayoutShiftRegionsParams) Do(ctx context.Context) (err error)
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 ¶
func (p *SetShowScrollBottleneckRectsParams) Do(ctx context.Context) (err error)
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 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 ¶
func (p *SetShowViewportSizeOnResizeParams) Do(ctx context.Context) (err error)
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