1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! This domain provides various functionality related to drawing atop the
//! inspected page.
//!
//! Method names for the `Overlay` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.
/// Disables domain notifications.
pub const DISABLE: &str = "Overlay.disable";
/// Enables domain notifications.
pub const ENABLE: &str = "Overlay.enable";
/// For testing.
///
/// Parameters:
/// - `nodeId`: DOM.NodeId
/// - `includeDistance`: boolean (optional)
/// - `includeStyle`: boolean (optional)
/// - `colorFormat`: ColorFormat (optional)
/// - `showAccessibilityInfo`: boolean (optional)
///
/// Returns: `highlight`
pub const GET_HIGHLIGHT_OBJECT_FOR_TEST: &str = "Overlay.getHighlightObjectForTest";
/// For Persistent Grid testing.
///
/// Parameters:
/// - `nodeIds`: array
///
/// Returns: `highlights`
pub const GET_GRID_HIGHLIGHT_OBJECTS_FOR_TEST: &str = "Overlay.getGridHighlightObjectsForTest";
/// For Source Order Viewer testing.
///
/// Parameters:
/// - `nodeId`: DOM.NodeId
///
/// Returns: `highlight`
pub const GET_SOURCE_ORDER_HIGHLIGHT_OBJECT_FOR_TEST: &str =
"Overlay.getSourceOrderHighlightObjectForTest";
/// Hides any highlight.
pub const HIDE_HIGHLIGHT: &str = "Overlay.hideHighlight";
/// 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.
///
/// Deprecated in the protocol.
///
/// Parameters:
/// - `frameId`: Page.FrameId
/// - `contentColor`: DOM.RGBA (optional)
/// - `contentOutlineColor`: DOM.RGBA (optional)
pub const HIGHLIGHT_FRAME: &str = "Overlay.highlightFrame";
/// Highlights DOM node with given id or with the given JavaScript object
/// wrapper. Either nodeId or objectId must be specified.
///
/// Parameters:
/// - `highlightConfig`: HighlightConfig
/// - `nodeId`: DOM.NodeId (optional)
/// - `backendNodeId`: DOM.BackendNodeId (optional)
/// - `objectId`: Runtime.RemoteObjectId (optional)
/// - `selector`: string (optional)
pub const HIGHLIGHT_NODE: &str = "Overlay.highlightNode";
/// Highlights given quad. Coordinates are absolute with respect to the main
/// frame viewport.
///
/// Parameters:
/// - `quad`: DOM.Quad
/// - `color`: DOM.RGBA (optional)
/// - `outlineColor`: DOM.RGBA (optional)
pub const HIGHLIGHT_QUAD: &str = "Overlay.highlightQuad";
/// 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).
///
/// Parameters:
/// - `x`: integer
/// - `y`: integer
/// - `width`: integer
/// - `height`: integer
/// - `color`: DOM.RGBA (optional)
/// - `outlineColor`: DOM.RGBA (optional)
pub const HIGHLIGHT_RECT: &str = "Overlay.highlightRect";
/// 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.
///
/// Parameters:
/// - `sourceOrderConfig`: SourceOrderConfig
/// - `nodeId`: DOM.NodeId (optional)
/// - `backendNodeId`: DOM.BackendNodeId (optional)
/// - `objectId`: Runtime.RemoteObjectId (optional)
pub const HIGHLIGHT_SOURCE_ORDER: &str = "Overlay.highlightSourceOrder";
/// Enters the 'inspect' mode. In this mode, elements that user is hovering
/// over are highlighted. Backend then generates 'inspectNodeRequested' event
/// upon element selection.
///
/// Parameters:
/// - `mode`: InspectMode
/// - `highlightConfig`: HighlightConfig (optional)
pub const SET_INSPECT_MODE: &str = "Overlay.setInspectMode";
/// Highlights owner element of all frames detected to be ads.
///
/// Parameters:
/// - `show`: boolean
pub const SET_SHOW_AD_HIGHLIGHTS: &str = "Overlay.setShowAdHighlights";
/// `Overlay.setPausedInDebuggerMessage`
///
/// Parameters:
/// - `message`: string (optional)
pub const SET_PAUSED_IN_DEBUGGER_MESSAGE: &str = "Overlay.setPausedInDebuggerMessage";
/// Requests that backend shows debug borders on layers
///
/// Parameters:
/// - `show`: boolean
pub const SET_SHOW_DEBUG_BORDERS: &str = "Overlay.setShowDebugBorders";
/// Requests that backend shows the FPS counter
///
/// Parameters:
/// - `show`: boolean
pub const SET_SHOW_FPS_COUNTER: &str = "Overlay.setShowFPSCounter";
/// Highlight multiple elements with the CSS Grid overlay.
///
/// Parameters:
/// - `gridNodeHighlightConfigs`: array
pub const SET_SHOW_GRID_OVERLAYS: &str = "Overlay.setShowGridOverlays";
/// `Overlay.setShowFlexOverlays`
///
/// Parameters:
/// - `flexNodeHighlightConfigs`: array
pub const SET_SHOW_FLEX_OVERLAYS: &str = "Overlay.setShowFlexOverlays";
/// `Overlay.setShowScrollSnapOverlays`
///
/// Parameters:
/// - `scrollSnapHighlightConfigs`: array
pub const SET_SHOW_SCROLL_SNAP_OVERLAYS: &str = "Overlay.setShowScrollSnapOverlays";
/// `Overlay.setShowContainerQueryOverlays`
///
/// Parameters:
/// - `containerQueryHighlightConfigs`: array
pub const SET_SHOW_CONTAINER_QUERY_OVERLAYS: &str = "Overlay.setShowContainerQueryOverlays";
/// `Overlay.setShowInspectedElementAnchor`
///
/// Parameters:
/// - `inspectedElementAnchorConfig`: InspectedElementAnchorConfig
pub const SET_SHOW_INSPECTED_ELEMENT_ANCHOR: &str = "Overlay.setShowInspectedElementAnchor";
/// Requests that backend shows paint rectangles
///
/// Parameters:
/// - `result`: boolean
pub const SET_SHOW_PAINT_RECTS: &str = "Overlay.setShowPaintRects";
/// Requests that backend shows layout shift regions
///
/// Parameters:
/// - `result`: boolean
pub const SET_SHOW_LAYOUT_SHIFT_REGIONS: &str = "Overlay.setShowLayoutShiftRegions";
/// Requests that backend shows scroll bottleneck rects
///
/// Parameters:
/// - `show`: boolean
pub const SET_SHOW_SCROLL_BOTTLENECK_RECTS: &str = "Overlay.setShowScrollBottleneckRects";
/// Deprecated, no longer has any effect.
///
/// Deprecated in the protocol.
///
/// Parameters:
/// - `show`: boolean
pub const SET_SHOW_HIT_TEST_BORDERS: &str = "Overlay.setShowHitTestBorders";
/// Deprecated, no longer has any effect.
///
/// Deprecated in the protocol.
///
/// Parameters:
/// - `show`: boolean
pub const SET_SHOW_WEB_VITALS: &str = "Overlay.setShowWebVitals";
/// Paints viewport size upon main frame resize.
///
/// Parameters:
/// - `show`: boolean
pub const SET_SHOW_VIEWPORT_SIZE_ON_RESIZE: &str = "Overlay.setShowViewportSizeOnResize";
/// Add a dual screen device hinge
///
/// Parameters:
/// - `hingeConfig`: HingeConfig (optional)
pub const SET_SHOW_HINGE: &str = "Overlay.setShowHinge";
/// Add a display cutout overlay.
///
/// Parameters:
/// - `displayCutoutConfig`: DisplayCutoutConfig (optional)
pub const SET_SHOW_DISPLAY_CUTOUT: &str = "Overlay.setShowDisplayCutout";
/// Show elements in isolation mode with overlays.
///
/// Parameters:
/// - `isolatedElementHighlightConfigs`: array
pub const SET_SHOW_ISOLATED_ELEMENTS: &str = "Overlay.setShowIsolatedElements";
/// Show Window Controls Overlay for PWA
///
/// Parameters:
/// - `windowControlsOverlayConfig`: WindowControlsOverlayConfig (optional)
pub const SET_SHOW_WINDOW_CONTROLS_OVERLAY: &str = "Overlay.setShowWindowControlsOverlay";