Expand description
This domain provides various functionality related to drawing atop the inspected page.
Method names for the Overlay domain, for use with
CdpClient::call.
This domain is experimental and may change without notice.
Constants§
- DISABLE
- Disables domain notifications.
- ENABLE
- Enables domain notifications.
- GET_
GRID_ HIGHLIGHT_ OBJECTS_ FOR_ TEST - For Persistent Grid testing.
- GET_
HIGHLIGHT_ OBJECT_ FOR_ TEST - For testing.
- GET_
SOURCE_ ORDER_ HIGHLIGHT_ OBJECT_ FOR_ TEST - For Source Order Viewer testing.
- HIDE_
HIGHLIGHT - Hides any highlight.
- HIGHLIGHT_
FRAME - 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.
- HIGHLIGHT_
NODE - Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
- HIGHLIGHT_
QUAD - Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
- HIGHLIGHT_
RECT - 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).
- HIGHLIGHT_
SOURCE_ ORDER - 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.
- SET_
INSPECT_ MODE - Enters the ‘inspect’ mode. In this mode, elements that user is hovering over are highlighted. Backend then generates ‘inspectNodeRequested’ event upon element selection.
- SET_
PAUSED_ IN_ DEBUGGER_ MESSAGE Overlay.setPausedInDebuggerMessage- SET_
SHOW_ AD_ HIGHLIGHTS - Highlights owner element of all frames detected to be ads.
- SET_
SHOW_ CONTAINER_ QUERY_ OVERLAYS Overlay.setShowContainerQueryOverlays- SET_
SHOW_ DEBUG_ BORDERS - Requests that backend shows debug borders on layers
- SET_
SHOW_ DISPLAY_ CUTOUT - Add a display cutout overlay.
- SET_
SHOW_ FLEX_ OVERLAYS Overlay.setShowFlexOverlays- SET_
SHOW_ FPS_ COUNTER - Requests that backend shows the FPS counter
- SET_
SHOW_ GRID_ OVERLAYS - Highlight multiple elements with the CSS Grid overlay.
- SET_
SHOW_ HINGE - Add a dual screen device hinge
- SET_
SHOW_ HIT_ TEST_ BORDERS - Deprecated, no longer has any effect.
- SET_
SHOW_ INSPECTED_ ELEMENT_ ANCHOR Overlay.setShowInspectedElementAnchor- SET_
SHOW_ ISOLATED_ ELEMENTS - Show elements in isolation mode with overlays.
- SET_
SHOW_ LAYOUT_ SHIFT_ REGIONS - Requests that backend shows layout shift regions
- SET_
SHOW_ PAINT_ RECTS - Requests that backend shows paint rectangles
- SET_
SHOW_ SCROLL_ BOTTLENECK_ RECTS - Requests that backend shows scroll bottleneck rects
- SET_
SHOW_ SCROLL_ SNAP_ OVERLAYS Overlay.setShowScrollSnapOverlays- SET_
SHOW_ VIEWPORT_ SIZE_ ON_ RESIZE - Paints viewport size upon main frame resize.
- SET_
SHOW_ WEB_ VITALS - Deprecated, no longer has any effect.
- SET_
SHOW_ WINDOW_ CONTROLS_ OVERLAY - Show Window Controls Overlay for PWA