Versions in this module Expand all Collapse all v0 v0.1.1 Oct 17, 2019 Changes in this version + const CommandDisable + const CommandEnable + const CommandGetHighlightObjectForTest + const CommandHideHighlight + const CommandHighlightFrame + const CommandHighlightNode + const CommandHighlightQuad + const CommandHighlightRect + const CommandSetInspectMode + const CommandSetPausedInDebuggerMessage + const CommandSetShowAdHighlights + const CommandSetShowDebugBorders + const CommandSetShowFPSCounter + const CommandSetShowHitTestBorders + const CommandSetShowLayoutShiftRegions + const CommandSetShowPaintRects + const CommandSetShowScrollBottleneckRects + const CommandSetShowViewportSizeOnResize + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DisableParams) UnmarshalJSON(data []byte) error + func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DisableParams) MarshalJSON() ([]byte, error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EnableParams) UnmarshalJSON(data []byte) error + func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EnableParams) MarshalJSON() ([]byte, error) + type EventInspectModeCanceled struct + func (v *EventInspectModeCanceled) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventInspectModeCanceled) UnmarshalJSON(data []byte) error + func (v EventInspectModeCanceled) MarshalEasyJSON(w *jwriter.Writer) + func (v EventInspectModeCanceled) MarshalJSON() ([]byte, error) + type EventInspectNodeRequested struct + BackendNodeID cdp.BackendNodeID + func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error + func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer) + func (v EventInspectNodeRequested) MarshalJSON() ([]byte, error) + type EventNodeHighlightRequested struct + NodeID cdp.NodeID + func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error + func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer) + func (v EventNodeHighlightRequested) MarshalJSON() ([]byte, error) + type EventScreenshotRequested struct + Viewport *page.Viewport + func (v *EventScreenshotRequested) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventScreenshotRequested) UnmarshalJSON(data []byte) error + func (v EventScreenshotRequested) MarshalEasyJSON(w *jwriter.Writer) + func (v EventScreenshotRequested) MarshalJSON() ([]byte, error) + type GetHighlightObjectForTestParams struct + IncludeDistance bool + IncludeStyle bool + NodeID cdp.NodeID + func GetHighlightObjectForTest(nodeID cdp.NodeID) *GetHighlightObjectForTestParams + func (p *GetHighlightObjectForTestParams) Do(ctx context.Context) (highlight easyjson.RawMessage, err error) + func (p GetHighlightObjectForTestParams) WithIncludeDistance(includeDistance bool) *GetHighlightObjectForTestParams + func (p GetHighlightObjectForTestParams) WithIncludeStyle(includeStyle bool) *GetHighlightObjectForTestParams + func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error + func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error) + type GetHighlightObjectForTestReturns struct + Highlight easyjson.RawMessage + func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error + func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error) + type HideHighlightParams struct + func HideHighlight() *HideHighlightParams + func (p *HideHighlightParams) Do(ctx context.Context) (err error) + func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *HideHighlightParams) UnmarshalJSON(data []byte) error + func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer) + func (v HideHighlightParams) MarshalJSON() ([]byte, error) + type HighlightConfig struct + BorderColor *cdp.RGBA + CSSGridColor *cdp.RGBA + ContentColor *cdp.RGBA + EventTargetColor *cdp.RGBA + MarginColor *cdp.RGBA + PaddingColor *cdp.RGBA + ShapeColor *cdp.RGBA + ShapeMarginColor *cdp.RGBA + ShowExtensionLines bool + ShowInfo bool + ShowRulers bool + ShowStyles bool + func (v *HighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *HighlightConfig) UnmarshalJSON(data []byte) error + func (v HighlightConfig) MarshalEasyJSON(w *jwriter.Writer) + func (v HighlightConfig) MarshalJSON() ([]byte, error) + type HighlightFrameParams struct + ContentColor *cdp.RGBA + ContentOutlineColor *cdp.RGBA + FrameID cdp.FrameID + func HighlightFrame(frameID cdp.FrameID) *HighlightFrameParams + func (p *HighlightFrameParams) Do(ctx context.Context) (err error) + func (p HighlightFrameParams) WithContentColor(contentColor *cdp.RGBA) *HighlightFrameParams + func (p HighlightFrameParams) WithContentOutlineColor(contentOutlineColor *cdp.RGBA) *HighlightFrameParams + func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error + func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer) + func (v HighlightFrameParams) MarshalJSON() ([]byte, error) + type HighlightNodeParams struct + BackendNodeID cdp.BackendNodeID + HighlightConfig *HighlightConfig + NodeID cdp.NodeID + ObjectID runtime.RemoteObjectID + Selector string + func HighlightNode(highlightConfig *HighlightConfig) *HighlightNodeParams + func (p *HighlightNodeParams) Do(ctx context.Context) (err 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 + func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error + func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer) + func (v HighlightNodeParams) MarshalJSON() ([]byte, error) + type HighlightQuadParams struct + Color *cdp.RGBA + OutlineColor *cdp.RGBA + Quad dom.Quad + func HighlightQuad(quad dom.Quad) *HighlightQuadParams + func (p *HighlightQuadParams) Do(ctx context.Context) (err error) + func (p HighlightQuadParams) WithColor(color *cdp.RGBA) *HighlightQuadParams + func (p HighlightQuadParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightQuadParams + func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error + func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer) + func (v HighlightQuadParams) MarshalJSON() ([]byte, error) + type HighlightRectParams struct + Color *cdp.RGBA + Height int64 + OutlineColor *cdp.RGBA + Width int64 + X int64 + Y int64 + func HighlightRect(x int64, y int64, width int64, height int64) *HighlightRectParams + func (p *HighlightRectParams) Do(ctx context.Context) (err error) + func (p HighlightRectParams) WithColor(color *cdp.RGBA) *HighlightRectParams + func (p HighlightRectParams) WithOutlineColor(outlineColor *cdp.RGBA) *HighlightRectParams + func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *HighlightRectParams) UnmarshalJSON(data []byte) error + func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer) + func (v HighlightRectParams) MarshalJSON() ([]byte, error) + type InspectMode string + const InspectModeCaptureAreaScreenshot + const InspectModeNone + const InspectModeSearchForNode + const InspectModeSearchForUAShadowDOM + const InspectModeShowDistances + func (t *InspectMode) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *InspectMode) UnmarshalJSON(buf []byte) error + func (t InspectMode) MarshalEasyJSON(out *jwriter.Writer) + func (t InspectMode) MarshalJSON() ([]byte, error) + func (t InspectMode) String() string + type SetInspectModeParams struct + HighlightConfig *HighlightConfig + Mode InspectMode + func SetInspectMode(mode InspectMode) *SetInspectModeParams + func (p *SetInspectModeParams) Do(ctx context.Context) (err error) + func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams + func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error + func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetInspectModeParams) MarshalJSON() ([]byte, error) + type SetPausedInDebuggerMessageParams struct + Message string + func SetPausedInDebuggerMessage() *SetPausedInDebuggerMessageParams + func (p *SetPausedInDebuggerMessageParams) Do(ctx context.Context) (err error) + func (p SetPausedInDebuggerMessageParams) WithMessage(message string) *SetPausedInDebuggerMessageParams + func (v *SetPausedInDebuggerMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetPausedInDebuggerMessageParams) UnmarshalJSON(data []byte) error + func (v SetPausedInDebuggerMessageParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetPausedInDebuggerMessageParams) MarshalJSON() ([]byte, error) + type SetShowAdHighlightsParams struct + Show bool + func SetShowAdHighlights(show bool) *SetShowAdHighlightsParams + func (p *SetShowAdHighlightsParams) Do(ctx context.Context) (err error) + func (v *SetShowAdHighlightsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowAdHighlightsParams) UnmarshalJSON(data []byte) error + func (v SetShowAdHighlightsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowAdHighlightsParams) MarshalJSON() ([]byte, error) + type SetShowDebugBordersParams struct + Show bool + func SetShowDebugBorders(show bool) *SetShowDebugBordersParams + func (p *SetShowDebugBordersParams) Do(ctx context.Context) (err error) + func (v *SetShowDebugBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error + func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error) + type SetShowFPSCounterParams struct + Show bool + func SetShowFPSCounter(show bool) *SetShowFPSCounterParams + func (p *SetShowFPSCounterParams) Do(ctx context.Context) (err error) + func (v *SetShowFPSCounterParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error + func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error) + type SetShowHitTestBordersParams struct + Show bool + func SetShowHitTestBorders(show bool) *SetShowHitTestBordersParams + func (p *SetShowHitTestBordersParams) Do(ctx context.Context) (err error) + func (v *SetShowHitTestBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowHitTestBordersParams) UnmarshalJSON(data []byte) error + func (v SetShowHitTestBordersParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowHitTestBordersParams) MarshalJSON() ([]byte, error) + type SetShowLayoutShiftRegionsParams struct + Result bool + func SetShowLayoutShiftRegions(result bool) *SetShowLayoutShiftRegionsParams + func (p *SetShowLayoutShiftRegionsParams) Do(ctx context.Context) (err error) + func (v *SetShowLayoutShiftRegionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowLayoutShiftRegionsParams) UnmarshalJSON(data []byte) error + func (v SetShowLayoutShiftRegionsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowLayoutShiftRegionsParams) MarshalJSON() ([]byte, error) + type SetShowPaintRectsParams struct + Result bool + func SetShowPaintRects(result bool) *SetShowPaintRectsParams + func (p *SetShowPaintRectsParams) Do(ctx context.Context) (err error) + func (v *SetShowPaintRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowPaintRectsParams) UnmarshalJSON(data []byte) error + func (v SetShowPaintRectsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowPaintRectsParams) MarshalJSON() ([]byte, error) + type SetShowScrollBottleneckRectsParams struct + Show bool + func SetShowScrollBottleneckRects(show bool) *SetShowScrollBottleneckRectsParams + func (p *SetShowScrollBottleneckRectsParams) Do(ctx context.Context) (err error) + func (v *SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowScrollBottleneckRectsParams) UnmarshalJSON(data []byte) error + func (v SetShowScrollBottleneckRectsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowScrollBottleneckRectsParams) MarshalJSON() ([]byte, error) + type SetShowViewportSizeOnResizeParams struct + Show bool + func SetShowViewportSizeOnResize(show bool) *SetShowViewportSizeOnResizeParams + func (p *SetShowViewportSizeOnResizeParams) Do(ctx context.Context) (err error) + func (v *SetShowViewportSizeOnResizeParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetShowViewportSizeOnResizeParams) UnmarshalJSON(data []byte) error + func (v SetShowViewportSizeOnResizeParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetShowViewportSizeOnResizeParams) MarshalJSON() ([]byte, error)