// 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.
package overlay // Code generated by cdproto-gen. DO NOT EDIT. import ( ) // DisableParams disables domain notifications. type DisableParams struct{} // Disable disables domain notifications. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-disable func () *DisableParams { return &DisableParams{} } // Do executes Overlay.disable against the provided context. func ( *DisableParams) ( context.Context) ( error) { return cdp.Execute(, CommandDisable, nil, nil) } // EnableParams enables domain notifications. type EnableParams struct{} // Enable enables domain notifications. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-enable func () *EnableParams { return &EnableParams{} } // Do executes Overlay.enable against the provided context. func ( *EnableParams) ( context.Context) ( error) { return cdp.Execute(, CommandEnable, nil, nil) } // GetHighlightObjectForTestParams for testing. 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). } // 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 ( cdp.NodeID) *GetHighlightObjectForTestParams { return &GetHighlightObjectForTestParams{ NodeID: , } } // WithIncludeDistance whether to include distance info. func ( GetHighlightObjectForTestParams) ( bool) *GetHighlightObjectForTestParams { .IncludeDistance = return & } // WithIncludeStyle whether to include style info. func ( GetHighlightObjectForTestParams) ( bool) *GetHighlightObjectForTestParams { .IncludeStyle = return & } // WithColorFormat the color format to get config with (default: hex). func ( GetHighlightObjectForTestParams) ( ColorFormat) *GetHighlightObjectForTestParams { .ColorFormat = return & } // WithShowAccessibilityInfo whether to show accessibility info (default: // true). func ( GetHighlightObjectForTestParams) ( bool) *GetHighlightObjectForTestParams { .ShowAccessibilityInfo = return & } // GetHighlightObjectForTestReturns return values. type GetHighlightObjectForTestReturns struct { Highlight easyjson.RawMessage `json:"highlight,omitempty"` } // Do executes Overlay.getHighlightObjectForTest against the provided context. // // returns: // // highlight - Highlight data for the node. func ( *GetHighlightObjectForTestParams) ( context.Context) ( easyjson.RawMessage, error) { // execute var GetHighlightObjectForTestReturns = cdp.Execute(, CommandGetHighlightObjectForTest, , &) if != nil { return nil, } return .Highlight, nil } // GetGridHighlightObjectsForTestParams for Persistent Grid testing. type GetGridHighlightObjectsForTestParams struct { NodeIDs []cdp.NodeID `json:"nodeIds"` // Ids of the node to get highlight object for. } // 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 ( []cdp.NodeID) *GetGridHighlightObjectsForTestParams { return &GetGridHighlightObjectsForTestParams{ NodeIDs: , } } // GetGridHighlightObjectsForTestReturns return values. type GetGridHighlightObjectsForTestReturns struct { Highlights easyjson.RawMessage `json:"highlights,omitempty"` } // Do executes Overlay.getGridHighlightObjectsForTest against the provided context. // // returns: // // highlights - Grid Highlight data for the node ids provided. func ( *GetGridHighlightObjectsForTestParams) ( context.Context) ( easyjson.RawMessage, error) { // execute var GetGridHighlightObjectsForTestReturns = cdp.Execute(, CommandGetGridHighlightObjectsForTest, , &) if != nil { return nil, } return .Highlights, nil } // GetSourceOrderHighlightObjectForTestParams for Source Order Viewer // testing. type GetSourceOrderHighlightObjectForTestParams struct { NodeID cdp.NodeID `json:"nodeId"` // Id of the node to highlight. } // 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 ( cdp.NodeID) *GetSourceOrderHighlightObjectForTestParams { return &GetSourceOrderHighlightObjectForTestParams{ NodeID: , } } // GetSourceOrderHighlightObjectForTestReturns return values. type GetSourceOrderHighlightObjectForTestReturns struct { Highlight easyjson.RawMessage `json:"highlight,omitempty"` } // Do executes Overlay.getSourceOrderHighlightObjectForTest against the provided context. // // returns: // // highlight - Source order highlight data for the node id provided. func ( *GetSourceOrderHighlightObjectForTestParams) ( context.Context) ( easyjson.RawMessage, error) { // execute var GetSourceOrderHighlightObjectForTestReturns = cdp.Execute(, CommandGetSourceOrderHighlightObjectForTest, , &) if != nil { return nil, } return .Highlight, nil } // HideHighlightParams hides any highlight. type HideHighlightParams struct{} // HideHighlight hides any highlight. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-hideHighlight func () *HideHighlightParams { return &HideHighlightParams{} } // Do executes Overlay.hideHighlight against the provided context. func ( *HideHighlightParams) ( context.Context) ( error) { return cdp.Execute(, CommandHideHighlight, nil, nil) } // HighlightNodeParams highlights DOM node with given id or with the given // JavaScript object wrapper. Either nodeId or objectId must be specified. 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. } // 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 ( *HighlightConfig) *HighlightNodeParams { return &HighlightNodeParams{ HighlightConfig: , } } // WithNodeID identifier of the node to highlight. func ( HighlightNodeParams) ( cdp.NodeID) *HighlightNodeParams { .NodeID = return & } // WithBackendNodeID identifier of the backend node to highlight. func ( HighlightNodeParams) ( cdp.BackendNodeID) *HighlightNodeParams { .BackendNodeID = return & } // WithObjectID JavaScript object id of the node to be highlighted. func ( HighlightNodeParams) ( runtime.RemoteObjectID) *HighlightNodeParams { .ObjectID = return & } // WithSelector selectors to highlight relevant nodes. func ( HighlightNodeParams) ( string) *HighlightNodeParams { .Selector = return & } // Do executes Overlay.highlightNode against the provided context. func ( *HighlightNodeParams) ( context.Context) ( error) { return cdp.Execute(, CommandHighlightNode, , nil) } // HighlightQuadParams highlights given quad. Coordinates are absolute with // respect to the main frame viewport. 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). } // 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 ( dom.Quad) *HighlightQuadParams { return &HighlightQuadParams{ Quad: , } } // WithColor the highlight fill color (default: transparent). func ( HighlightQuadParams) ( *cdp.RGBA) *HighlightQuadParams { .Color = return & } // WithOutlineColor the highlight outline color (default: transparent). func ( HighlightQuadParams) ( *cdp.RGBA) *HighlightQuadParams { .OutlineColor = return & } // Do executes Overlay.highlightQuad against the provided context. func ( *HighlightQuadParams) ( context.Context) ( error) { return cdp.Execute(, CommandHighlightQuad, , nil) } // HighlightRectParams highlights given rectangle. Coordinates are absolute // with respect to the main frame viewport. 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). } // 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 ( int64, int64, int64, int64) *HighlightRectParams { return &HighlightRectParams{ X: , Y: , Width: , Height: , } } // WithColor the highlight fill color (default: transparent). func ( HighlightRectParams) ( *cdp.RGBA) *HighlightRectParams { .Color = return & } // WithOutlineColor the highlight outline color (default: transparent). func ( HighlightRectParams) ( *cdp.RGBA) *HighlightRectParams { .OutlineColor = return & } // Do executes Overlay.highlightRect against the provided context. func ( *HighlightRectParams) ( context.Context) ( error) { return cdp.Execute(, CommandHighlightRect, , nil) } // 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. 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. } // 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 ( *SourceOrderConfig) *HighlightSourceOrderParams { return &HighlightSourceOrderParams{ SourceOrderConfig: , } } // WithNodeID identifier of the node to highlight. func ( HighlightSourceOrderParams) ( cdp.NodeID) *HighlightSourceOrderParams { .NodeID = return & } // WithBackendNodeID identifier of the backend node to highlight. func ( HighlightSourceOrderParams) ( cdp.BackendNodeID) *HighlightSourceOrderParams { .BackendNodeID = return & } // WithObjectID JavaScript object id of the node to be highlighted. func ( HighlightSourceOrderParams) ( runtime.RemoteObjectID) *HighlightSourceOrderParams { .ObjectID = return & } // Do executes Overlay.highlightSourceOrder against the provided context. func ( *HighlightSourceOrderParams) ( context.Context) ( error) { return cdp.Execute(, CommandHighlightSourceOrder, , nil) } // SetInspectModeParams enters the 'inspect' mode. In this mode, elements // that user is hovering over are highlighted. Backend then generates // 'inspectNodeRequested' event upon element selection. 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. } // 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 ( InspectMode) *SetInspectModeParams { return &SetInspectModeParams{ Mode: , } } // WithHighlightConfig a descriptor for the highlight appearance of // hovered-over nodes. May be omitted if enabled == false. func ( SetInspectModeParams) ( *HighlightConfig) *SetInspectModeParams { .HighlightConfig = return & } // Do executes Overlay.setInspectMode against the provided context. func ( *SetInspectModeParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetInspectMode, , nil) } // SetShowAdHighlightsParams highlights owner element of all frames detected // to be ads. type SetShowAdHighlightsParams struct { Show bool `json:"show"` // True for showing ad highlights } // 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 ( bool) *SetShowAdHighlightsParams { return &SetShowAdHighlightsParams{ Show: , } } // Do executes Overlay.setShowAdHighlights against the provided context. func ( *SetShowAdHighlightsParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowAdHighlights, , nil) } // SetPausedInDebuggerMessageParams [no description]. type SetPausedInDebuggerMessageParams struct { Message string `json:"message,omitempty"` // The message to display, also triggers resume and step over controls. } // SetPausedInDebuggerMessage [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setPausedInDebuggerMessage // // parameters: func () *SetPausedInDebuggerMessageParams { return &SetPausedInDebuggerMessageParams{} } // WithMessage the message to display, also triggers resume and step over // controls. func ( SetPausedInDebuggerMessageParams) ( string) *SetPausedInDebuggerMessageParams { .Message = return & } // Do executes Overlay.setPausedInDebuggerMessage against the provided context. func ( *SetPausedInDebuggerMessageParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetPausedInDebuggerMessage, , nil) } // SetShowDebugBordersParams requests that backend shows debug borders on // layers. type SetShowDebugBordersParams struct { Show bool `json:"show"` // True for showing debug borders } // 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 ( bool) *SetShowDebugBordersParams { return &SetShowDebugBordersParams{ Show: , } } // Do executes Overlay.setShowDebugBorders against the provided context. func ( *SetShowDebugBordersParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowDebugBorders, , nil) } // SetShowFPSCounterParams requests that backend shows the FPS counter. type SetShowFPSCounterParams struct { Show bool `json:"show"` // True for showing the FPS counter } // 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 ( bool) *SetShowFPSCounterParams { return &SetShowFPSCounterParams{ Show: , } } // Do executes Overlay.setShowFPSCounter against the provided context. func ( *SetShowFPSCounterParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowFPSCounter, , nil) } // SetShowGridOverlaysParams highlight multiple elements with the CSS Grid // overlay. type SetShowGridOverlaysParams struct { GridNodeHighlightConfigs []*GridNodeHighlightConfig `json:"gridNodeHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance. } // 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 ( []*GridNodeHighlightConfig) *SetShowGridOverlaysParams { return &SetShowGridOverlaysParams{ GridNodeHighlightConfigs: , } } // Do executes Overlay.setShowGridOverlays against the provided context. func ( *SetShowGridOverlaysParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowGridOverlays, , nil) } // SetShowFlexOverlaysParams [no description]. type SetShowFlexOverlaysParams struct { FlexNodeHighlightConfigs []*FlexNodeHighlightConfig `json:"flexNodeHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance. } // 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 ( []*FlexNodeHighlightConfig) *SetShowFlexOverlaysParams { return &SetShowFlexOverlaysParams{ FlexNodeHighlightConfigs: , } } // Do executes Overlay.setShowFlexOverlays against the provided context. func ( *SetShowFlexOverlaysParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowFlexOverlays, , nil) } // SetShowScrollSnapOverlaysParams [no description]. type SetShowScrollSnapOverlaysParams struct { ScrollSnapHighlightConfigs []*ScrollSnapHighlightConfig `json:"scrollSnapHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance. } // SetShowScrollSnapOverlays [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowScrollSnapOverlays // // parameters: // // scrollSnapHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance. func ( []*ScrollSnapHighlightConfig) *SetShowScrollSnapOverlaysParams { return &SetShowScrollSnapOverlaysParams{ ScrollSnapHighlightConfigs: , } } // Do executes Overlay.setShowScrollSnapOverlays against the provided context. func ( *SetShowScrollSnapOverlaysParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowScrollSnapOverlays, , nil) } // SetShowContainerQueryOverlaysParams [no description]. type SetShowContainerQueryOverlaysParams struct { ContainerQueryHighlightConfigs []*ContainerQueryHighlightConfig `json:"containerQueryHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance. } // SetShowContainerQueryOverlays [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowContainerQueryOverlays // // parameters: // // containerQueryHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance. func ( []*ContainerQueryHighlightConfig) *SetShowContainerQueryOverlaysParams { return &SetShowContainerQueryOverlaysParams{ ContainerQueryHighlightConfigs: , } } // Do executes Overlay.setShowContainerQueryOverlays against the provided context. func ( *SetShowContainerQueryOverlaysParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowContainerQueryOverlays, , nil) } // SetShowPaintRectsParams requests that backend shows paint rectangles. type SetShowPaintRectsParams struct { Result bool `json:"result"` // True for showing paint rectangles } // 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 ( bool) *SetShowPaintRectsParams { return &SetShowPaintRectsParams{ Result: , } } // Do executes Overlay.setShowPaintRects against the provided context. func ( *SetShowPaintRectsParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowPaintRects, , nil) } // SetShowLayoutShiftRegionsParams requests that backend shows layout shift // regions. type SetShowLayoutShiftRegionsParams struct { Result bool `json:"result"` // True for showing layout shift regions } // 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 ( bool) *SetShowLayoutShiftRegionsParams { return &SetShowLayoutShiftRegionsParams{ Result: , } } // Do executes Overlay.setShowLayoutShiftRegions against the provided context. func ( *SetShowLayoutShiftRegionsParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowLayoutShiftRegions, , nil) } // SetShowScrollBottleneckRectsParams requests that backend shows scroll // bottleneck rects. type SetShowScrollBottleneckRectsParams struct { Show bool `json:"show"` // True for showing scroll bottleneck rects } // 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 ( bool) *SetShowScrollBottleneckRectsParams { return &SetShowScrollBottleneckRectsParams{ Show: , } } // Do executes Overlay.setShowScrollBottleneckRects against the provided context. func ( *SetShowScrollBottleneckRectsParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowScrollBottleneckRects, , nil) } // SetShowWebVitalsParams request that backend shows an overlay with web // vital metrics. type SetShowWebVitalsParams struct { Show bool `json:"show"` } // SetShowWebVitals request that backend shows an overlay with web vital // metrics. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowWebVitals // // parameters: // // show func ( bool) *SetShowWebVitalsParams { return &SetShowWebVitalsParams{ Show: , } } // Do executes Overlay.setShowWebVitals against the provided context. func ( *SetShowWebVitalsParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowWebVitals, , nil) } // SetShowViewportSizeOnResizeParams paints viewport size upon main frame // resize. type SetShowViewportSizeOnResizeParams struct { Show bool `json:"show"` // Whether to paint size or not. } // 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 ( bool) *SetShowViewportSizeOnResizeParams { return &SetShowViewportSizeOnResizeParams{ Show: , } } // Do executes Overlay.setShowViewportSizeOnResize against the provided context. func ( *SetShowViewportSizeOnResizeParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowViewportSizeOnResize, , nil) } // SetShowHingeParams add a dual screen device hinge. type SetShowHingeParams struct { HingeConfig *HingeConfig `json:"hingeConfig,omitempty"` // hinge data, null means hideHinge } // SetShowHinge add a dual screen device hinge. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowHinge // // parameters: func () *SetShowHingeParams { return &SetShowHingeParams{} } // WithHingeConfig hinge data, null means hideHinge. func ( SetShowHingeParams) ( *HingeConfig) *SetShowHingeParams { .HingeConfig = return & } // Do executes Overlay.setShowHinge against the provided context. func ( *SetShowHingeParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowHinge, , nil) } // SetShowIsolatedElementsParams show elements in isolation mode with // overlays. type SetShowIsolatedElementsParams struct { IsolatedElementHighlightConfigs []*IsolatedElementHighlightConfig `json:"isolatedElementHighlightConfigs"` // An array of node identifiers and descriptors for the highlight appearance. } // SetShowIsolatedElements show elements in isolation mode with overlays. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Overlay#method-setShowIsolatedElements // // parameters: // // isolatedElementHighlightConfigs - An array of node identifiers and descriptors for the highlight appearance. func ( []*IsolatedElementHighlightConfig) *SetShowIsolatedElementsParams { return &SetShowIsolatedElementsParams{ IsolatedElementHighlightConfigs: , } } // Do executes Overlay.setShowIsolatedElements against the provided context. func ( *SetShowIsolatedElementsParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetShowIsolatedElements, , nil) } // Command names. const ( CommandDisable = "Overlay.disable" CommandEnable = "Overlay.enable" CommandGetHighlightObjectForTest = "Overlay.getHighlightObjectForTest" CommandGetGridHighlightObjectsForTest = "Overlay.getGridHighlightObjectsForTest" CommandGetSourceOrderHighlightObjectForTest = "Overlay.getSourceOrderHighlightObjectForTest" CommandHideHighlight = "Overlay.hideHighlight" CommandHighlightNode = "Overlay.highlightNode" CommandHighlightQuad = "Overlay.highlightQuad" CommandHighlightRect = "Overlay.highlightRect" CommandHighlightSourceOrder = "Overlay.highlightSourceOrder" CommandSetInspectMode = "Overlay.setInspectMode" CommandSetShowAdHighlights = "Overlay.setShowAdHighlights" CommandSetPausedInDebuggerMessage = "Overlay.setPausedInDebuggerMessage" CommandSetShowDebugBorders = "Overlay.setShowDebugBorders" CommandSetShowFPSCounter = "Overlay.setShowFPSCounter" CommandSetShowGridOverlays = "Overlay.setShowGridOverlays" CommandSetShowFlexOverlays = "Overlay.setShowFlexOverlays" CommandSetShowScrollSnapOverlays = "Overlay.setShowScrollSnapOverlays" CommandSetShowContainerQueryOverlays = "Overlay.setShowContainerQueryOverlays" CommandSetShowPaintRects = "Overlay.setShowPaintRects" CommandSetShowLayoutShiftRegions = "Overlay.setShowLayoutShiftRegions" CommandSetShowScrollBottleneckRects = "Overlay.setShowScrollBottleneckRects" CommandSetShowWebVitals = "Overlay.setShowWebVitals" CommandSetShowViewportSizeOnResize = "Overlay.setShowViewportSizeOnResize" CommandSetShowHinge = "Overlay.setShowHinge" CommandSetShowIsolatedElements = "Overlay.setShowIsolatedElements" )