Skip to main content

Module overlay

Module overlay 

Source
Expand description

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

Types, command parameters and event payloads for the Overlay domain. The method-name constants for the same domain are in crate::methods.

This domain is experimental and may change without notice.

Structs§

BoxStyle
Style information for drawing a box.
ContainerQueryContainerHighlightConfig
ContainerQueryHighlightConfig
DisableParams
Disables domain notifications.
DisplayCutoutConfig
Configuration for a display cutout.
EnableParams
Enables domain notifications.
FlexContainerHighlightConfig
Configuration data for the highlighting of Flex container elements.
FlexItemHighlightConfig
Configuration data for the highlighting of Flex item elements.
FlexNodeHighlightConfig
GetGridHighlightObjectsForTestParams
For Persistent Grid testing.
GetGridHighlightObjectsForTestReturns
What Overlay.getGridHighlightObjectsForTest answers with.
GetHighlightObjectForTestParams
For testing.
GetHighlightObjectForTestReturns
What Overlay.getHighlightObjectForTest answers with.
GetSourceOrderHighlightObjectForTestParams
For Source Order Viewer testing.
GetSourceOrderHighlightObjectForTestReturns
What Overlay.getSourceOrderHighlightObjectForTest answers with.
GridHighlightConfig
Configuration data for the highlighting of Grid elements.
GridNodeHighlightConfig
Configurations for Persistent Grid Highlight
HideHighlightParams
Hides any highlight.
HighlightConfig
Configuration data for the highlighting of page elements.
HighlightFrameParams
Highlights owner element of the frame with given id. Deprecated: Doesn’t work reliably and cannot be fixed due to process separation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.
HighlightNodeParams
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
HighlightQuadParams
Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
HighlightRectParams
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. Issue: the method does not handle device pixel ratio (DPR) correctly. The coordinates currently have to be adjusted by the client if DPR is not 1 (see crbug.com/437807128).
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.
HingeConfig
Configuration for dual screen hinge
ImcbHighlightConfig
Configuration for Inset-Modified Containing Block (IMCB) and CSS Anchor Positioning highlight.
InspectModeCanceledEvent
Fired when user cancels the inspect mode.
InspectNodeRequestedEvent
Fired when the node should be inspected. This happens after call to setInspectMode or when user manually inspects an element.
InspectPanelShowRequestedEvent
Fired when user asks to show the Inspect panel.
InspectedElementAnchorConfig
InspectedElementWindowRestoredEvent
Fired when user asks to restore the Inspected Element floating window.
IsolatedElementHighlightConfig
IsolationModeHighlightConfig
LineStyle
Style information for drawing a line.
NodeHighlightRequestedEvent
Fired when the node should be highlighted. This happens after call to setInspectMode.
ScreenshotRequestedEvent
Fired when user asks to capture screenshot of some area on the page.
ScrollSnapContainerHighlightConfig
ScrollSnapHighlightConfig
SetInspectModeParams
Enters the ‘inspect’ mode. In this mode, elements that user is hovering over are highlighted. Backend then generates ‘inspectNodeRequested’ event upon element selection.
SetPausedInDebuggerMessageParams
Parameters of Overlay.setPausedInDebuggerMessage.
SetShowAdHighlightsParams
Highlights owner element of all frames detected to be ads.
SetShowContainerQueryOverlaysParams
Parameters of Overlay.setShowContainerQueryOverlays.
SetShowDebugBordersParams
Requests that backend shows debug borders on layers
SetShowDisplayCutoutParams
Add a display cutout overlay.
SetShowFlexOverlaysParams
Parameters of Overlay.setShowFlexOverlays.
SetShowFpsCounterParams
Requests that backend shows the FPS counter
SetShowGridOverlaysParams
Highlight multiple elements with the CSS Grid overlay.
SetShowHingeParams
Add a dual screen device hinge
SetShowHitTestBordersParams
Deprecated, no longer has any effect.
SetShowInspectedElementAnchorParams
Parameters of Overlay.setShowInspectedElementAnchor.
SetShowIsolatedElementsParams
Show elements in isolation mode with overlays.
SetShowLayoutShiftRegionsParams
Requests that backend shows layout shift regions
SetShowPaintRectsParams
Requests that backend shows paint rectangles
SetShowScrollBottleneckRectsParams
Requests that backend shows scroll bottleneck rects
SetShowScrollSnapOverlaysParams
Parameters of Overlay.setShowScrollSnapOverlays.
SetShowViewportSizeOnResizeParams
Paints viewport size upon main frame resize.
SetShowWebVitalsParams
Deprecated, no longer has any effect.
SetShowWindowControlsOverlayParams
Show Window Controls Overlay for PWA
SourceOrderConfig
Configuration data for drawing the source order of an elements children.
WindowControlsOverlayConfig
Configuration for Window Controls Overlay

Enums§

ColorFormat
ContrastAlgorithm
DisplayCutoutShape
Supported display cutout shapes.
InspectMode
LineStylePattern
The values pattern accepts on LineStyle.