vendor/github.com/go-rod/rod/lib/proto/overlay.go

921 lines · 34915 bytes

  1// This file is generated by "./lib/proto/generate"
  2
  3package proto
  4
  5import (
  6	"github.com/ysmood/gson"
  7)
  8
  9/*
 10
 11Overlay
 12
 13This domain provides various functionality related to drawing atop the inspected page.
 14
 15*/
 16
 17// OverlaySourceOrderConfig Configuration data for drawing the source order of an elements children.
 18type OverlaySourceOrderConfig struct {
 19	// ParentOutlineColor the color to outline the given element in.
 20	ParentOutlineColor *DOMRGBA `json:"parentOutlineColor"`
 21
 22	// ChildOutlineColor the color to outline the child elements in.
 23	ChildOutlineColor *DOMRGBA `json:"childOutlineColor"`
 24}
 25
 26// OverlayGridHighlightConfig Configuration data for the highlighting of Grid elements.
 27type OverlayGridHighlightConfig struct {
 28	// ShowGridExtensionLines (optional) Whether the extension lines from grid cells to the rulers should be shown (default: false).
 29	ShowGridExtensionLines bool `json:"showGridExtensionLines,omitempty"`
 30
 31	// ShowPositiveLineNumbers (optional) Show Positive line number labels (default: false).
 32	ShowPositiveLineNumbers bool `json:"showPositiveLineNumbers,omitempty"`
 33
 34	// ShowNegativeLineNumbers (optional) Show Negative line number labels (default: false).
 35	ShowNegativeLineNumbers bool `json:"showNegativeLineNumbers,omitempty"`
 36
 37	// ShowAreaNames (optional) Show area name labels (default: false).
 38	ShowAreaNames bool `json:"showAreaNames,omitempty"`
 39
 40	// ShowLineNames (optional) Show line name labels (default: false).
 41	ShowLineNames bool `json:"showLineNames,omitempty"`
 42
 43	// ShowTrackSizes (optional) Show track size labels (default: false).
 44	ShowTrackSizes bool `json:"showTrackSizes,omitempty"`
 45
 46	// GridBorderColor (optional) The grid container border highlight color (default: transparent).
 47	GridBorderColor *DOMRGBA `json:"gridBorderColor,omitempty"`
 48
 49	// CellBorderColor (deprecated) (optional) The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.
 50	CellBorderColor *DOMRGBA `json:"cellBorderColor,omitempty"`
 51
 52	// RowLineColor (optional) The row line color (default: transparent).
 53	RowLineColor *DOMRGBA `json:"rowLineColor,omitempty"`
 54
 55	// ColumnLineColor (optional) The column line color (default: transparent).
 56	ColumnLineColor *DOMRGBA `json:"columnLineColor,omitempty"`
 57
 58	// GridBorderDash (optional) Whether the grid border is dashed (default: false).
 59	GridBorderDash bool `json:"gridBorderDash,omitempty"`
 60
 61	// CellBorderDash (deprecated) (optional) Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.
 62	CellBorderDash bool `json:"cellBorderDash,omitempty"`
 63
 64	// RowLineDash (optional) Whether row lines are dashed (default: false).
 65	RowLineDash bool `json:"rowLineDash,omitempty"`
 66
 67	// ColumnLineDash (optional) Whether column lines are dashed (default: false).
 68	ColumnLineDash bool `json:"columnLineDash,omitempty"`
 69
 70	// RowGapColor (optional) The row gap highlight fill color (default: transparent).
 71	RowGapColor *DOMRGBA `json:"rowGapColor,omitempty"`
 72
 73	// RowHatchColor (optional) The row gap hatching fill color (default: transparent).
 74	RowHatchColor *DOMRGBA `json:"rowHatchColor,omitempty"`
 75
 76	// ColumnGapColor (optional) The column gap highlight fill color (default: transparent).
 77	ColumnGapColor *DOMRGBA `json:"columnGapColor,omitempty"`
 78
 79	// ColumnHatchColor (optional) The column gap hatching fill color (default: transparent).
 80	ColumnHatchColor *DOMRGBA `json:"columnHatchColor,omitempty"`
 81
 82	// AreaBorderColor (optional) The named grid areas border color (Default: transparent).
 83	AreaBorderColor *DOMRGBA `json:"areaBorderColor,omitempty"`
 84
 85	// GridBackgroundColor (optional) The grid container background color (Default: transparent).
 86	GridBackgroundColor *DOMRGBA `json:"gridBackgroundColor,omitempty"`
 87}
 88
 89// OverlayFlexContainerHighlightConfig Configuration data for the highlighting of Flex container elements.
 90type OverlayFlexContainerHighlightConfig struct {
 91	// ContainerBorder (optional) The style of the container border
 92	ContainerBorder *OverlayLineStyle `json:"containerBorder,omitempty"`
 93
 94	// LineSeparator (optional) The style of the separator between lines
 95	LineSeparator *OverlayLineStyle `json:"lineSeparator,omitempty"`
 96
 97	// ItemSeparator (optional) The style of the separator between items
 98	ItemSeparator *OverlayLineStyle `json:"itemSeparator,omitempty"`
 99
100	// MainDistributedSpace (optional) Style of content-distribution space on the main axis (justify-content).
101	MainDistributedSpace *OverlayBoxStyle `json:"mainDistributedSpace,omitempty"`
102
103	// CrossDistributedSpace (optional) Style of content-distribution space on the cross axis (align-content).
104	CrossDistributedSpace *OverlayBoxStyle `json:"crossDistributedSpace,omitempty"`
105
106	// RowGapSpace (optional) Style of empty space caused by row gaps (gap/row-gap).
107	RowGapSpace *OverlayBoxStyle `json:"rowGapSpace,omitempty"`
108
109	// ColumnGapSpace (optional) Style of empty space caused by columns gaps (gap/column-gap).
110	ColumnGapSpace *OverlayBoxStyle `json:"columnGapSpace,omitempty"`
111
112	// CrossAlignment (optional) Style of the self-alignment line (align-items).
113	CrossAlignment *OverlayLineStyle `json:"crossAlignment,omitempty"`
114}
115
116// OverlayFlexItemHighlightConfig Configuration data for the highlighting of Flex item elements.
117type OverlayFlexItemHighlightConfig struct {
118	// BaseSizeBox (optional) Style of the box representing the item's base size
119	BaseSizeBox *OverlayBoxStyle `json:"baseSizeBox,omitempty"`
120
121	// BaseSizeBorder (optional) Style of the border around the box representing the item's base size
122	BaseSizeBorder *OverlayLineStyle `json:"baseSizeBorder,omitempty"`
123
124	// FlexibilityArrow (optional) Style of the arrow representing if the item grew or shrank
125	FlexibilityArrow *OverlayLineStyle `json:"flexibilityArrow,omitempty"`
126}
127
128// OverlayLineStylePattern enum.
129type OverlayLineStylePattern string
130
131const (
132	// OverlayLineStylePatternDashed enum const.
133	OverlayLineStylePatternDashed OverlayLineStylePattern = "dashed"
134
135	// OverlayLineStylePatternDotted enum const.
136	OverlayLineStylePatternDotted OverlayLineStylePattern = "dotted"
137)
138
139// OverlayLineStyle Style information for drawing a line.
140type OverlayLineStyle struct {
141	// Color (optional) The color of the line (default: transparent)
142	Color *DOMRGBA `json:"color,omitempty"`
143
144	// Pattern (optional) The line pattern (default: solid)
145	Pattern OverlayLineStylePattern `json:"pattern,omitempty"`
146}
147
148// OverlayBoxStyle Style information for drawing a box.
149type OverlayBoxStyle struct {
150	// FillColor (optional) The background color for the box (default: transparent)
151	FillColor *DOMRGBA `json:"fillColor,omitempty"`
152
153	// HatchColor (optional) The hatching color for the box (default: transparent)
154	HatchColor *DOMRGBA `json:"hatchColor,omitempty"`
155}
156
157// OverlayContrastAlgorithm ...
158type OverlayContrastAlgorithm string
159
160const (
161	// OverlayContrastAlgorithmAa enum const.
162	OverlayContrastAlgorithmAa OverlayContrastAlgorithm = "aa"
163
164	// OverlayContrastAlgorithmAaa enum const.
165	OverlayContrastAlgorithmAaa OverlayContrastAlgorithm = "aaa"
166
167	// OverlayContrastAlgorithmApca enum const.
168	OverlayContrastAlgorithmApca OverlayContrastAlgorithm = "apca"
169)
170
171// OverlayHighlightConfig Configuration data for the highlighting of page elements.
172type OverlayHighlightConfig struct {
173	// ShowInfo (optional) Whether the node info tooltip should be shown (default: false).
174	ShowInfo bool `json:"showInfo,omitempty"`
175
176	// ShowStyles (optional) Whether the node styles in the tooltip (default: false).
177	ShowStyles bool `json:"showStyles,omitempty"`
178
179	// ShowRulers (optional) Whether the rulers should be shown (default: false).
180	ShowRulers bool `json:"showRulers,omitempty"`
181
182	// ShowAccessibilityInfo (optional) Whether the a11y info should be shown (default: true).
183	ShowAccessibilityInfo bool `json:"showAccessibilityInfo,omitempty"`
184
185	// ShowExtensionLines (optional) Whether the extension lines from node to the rulers should be shown (default: false).
186	ShowExtensionLines bool `json:"showExtensionLines,omitempty"`
187
188	// ContentColor (optional) The content box highlight fill color (default: transparent).
189	ContentColor *DOMRGBA `json:"contentColor,omitempty"`
190
191	// PaddingColor (optional) The padding highlight fill color (default: transparent).
192	PaddingColor *DOMRGBA `json:"paddingColor,omitempty"`
193
194	// BorderColor (optional) The border highlight fill color (default: transparent).
195	BorderColor *DOMRGBA `json:"borderColor,omitempty"`
196
197	// MarginColor (optional) The margin highlight fill color (default: transparent).
198	MarginColor *DOMRGBA `json:"marginColor,omitempty"`
199
200	// EventTargetColor (optional) The event target element highlight fill color (default: transparent).
201	EventTargetColor *DOMRGBA `json:"eventTargetColor,omitempty"`
202
203	// ShapeColor (optional) The shape outside fill color (default: transparent).
204	ShapeColor *DOMRGBA `json:"shapeColor,omitempty"`
205
206	// ShapeMarginColor (optional) The shape margin fill color (default: transparent).
207	ShapeMarginColor *DOMRGBA `json:"shapeMarginColor,omitempty"`
208
209	// CSSGridColor (optional) The grid layout color (default: transparent).
210	CSSGridColor *DOMRGBA `json:"cssGridColor,omitempty"`
211
212	// ColorFormat (optional) The color format used to format color styles (default: hex).
213	ColorFormat OverlayColorFormat `json:"colorFormat,omitempty"`
214
215	// GridHighlightConfig (optional) The grid layout highlight configuration (default: all transparent).
216	GridHighlightConfig *OverlayGridHighlightConfig `json:"gridHighlightConfig,omitempty"`
217
218	// FlexContainerHighlightConfig (optional) The flex container highlight configuration (default: all transparent).
219	FlexContainerHighlightConfig *OverlayFlexContainerHighlightConfig `json:"flexContainerHighlightConfig,omitempty"`
220
221	// FlexItemHighlightConfig (optional) The flex item highlight configuration (default: all transparent).
222	FlexItemHighlightConfig *OverlayFlexItemHighlightConfig `json:"flexItemHighlightConfig,omitempty"`
223
224	// ContrastAlgorithm (optional) The contrast algorithm to use for the contrast ratio (default: aa).
225	ContrastAlgorithm OverlayContrastAlgorithm `json:"contrastAlgorithm,omitempty"`
226
227	// ContainerQueryContainerHighlightConfig (optional) The container query container highlight configuration (default: all transparent).
228	ContainerQueryContainerHighlightConfig *OverlayContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig,omitempty"`
229}
230
231// OverlayColorFormat ...
232type OverlayColorFormat string
233
234const (
235	// OverlayColorFormatRgb enum const.
236	OverlayColorFormatRgb OverlayColorFormat = "rgb"
237
238	// OverlayColorFormatHsl enum const.
239	OverlayColorFormatHsl OverlayColorFormat = "hsl"
240
241	// OverlayColorFormatHwb enum const.
242	OverlayColorFormatHwb OverlayColorFormat = "hwb"
243
244	// OverlayColorFormatHex enum const.
245	OverlayColorFormatHex OverlayColorFormat = "hex"
246)
247
248// OverlayGridNodeHighlightConfig Configurations for Persistent Grid Highlight.
249type OverlayGridNodeHighlightConfig struct {
250	// GridHighlightConfig A descriptor for the highlight appearance.
251	GridHighlightConfig *OverlayGridHighlightConfig `json:"gridHighlightConfig"`
252
253	// NodeID Identifier of the node to highlight.
254	NodeID DOMNodeID `json:"nodeId"`
255}
256
257// OverlayFlexNodeHighlightConfig ...
258type OverlayFlexNodeHighlightConfig struct {
259	// FlexContainerHighlightConfig A descriptor for the highlight appearance of flex containers.
260	FlexContainerHighlightConfig *OverlayFlexContainerHighlightConfig `json:"flexContainerHighlightConfig"`
261
262	// NodeID Identifier of the node to highlight.
263	NodeID DOMNodeID `json:"nodeId"`
264}
265
266// OverlayScrollSnapContainerHighlightConfig ...
267type OverlayScrollSnapContainerHighlightConfig struct {
268	// SnapportBorder (optional) The style of the snapport border (default: transparent)
269	SnapportBorder *OverlayLineStyle `json:"snapportBorder,omitempty"`
270
271	// SnapAreaBorder (optional) The style of the snap area border (default: transparent)
272	SnapAreaBorder *OverlayLineStyle `json:"snapAreaBorder,omitempty"`
273
274	// ScrollMarginColor (optional) The margin highlight fill color (default: transparent).
275	ScrollMarginColor *DOMRGBA `json:"scrollMarginColor,omitempty"`
276
277	// ScrollPaddingColor (optional) The padding highlight fill color (default: transparent).
278	ScrollPaddingColor *DOMRGBA `json:"scrollPaddingColor,omitempty"`
279}
280
281// OverlayScrollSnapHighlightConfig ...
282type OverlayScrollSnapHighlightConfig struct {
283	// ScrollSnapContainerHighlightConfig A descriptor for the highlight appearance of scroll snap containers.
284	ScrollSnapContainerHighlightConfig *OverlayScrollSnapContainerHighlightConfig `json:"scrollSnapContainerHighlightConfig"`
285
286	// NodeID Identifier of the node to highlight.
287	NodeID DOMNodeID `json:"nodeId"`
288}
289
290// OverlayHingeConfig Configuration for dual screen hinge.
291type OverlayHingeConfig struct {
292	// Rect A rectangle represent hinge
293	Rect *DOMRect `json:"rect"`
294
295	// ContentColor (optional) The content box highlight fill color (default: a dark color).
296	ContentColor *DOMRGBA `json:"contentColor,omitempty"`
297
298	// OutlineColor (optional) The content box highlight outline color (default: transparent).
299	OutlineColor *DOMRGBA `json:"outlineColor,omitempty"`
300}
301
302// OverlayWindowControlsOverlayConfig Configuration for Window Controls Overlay.
303type OverlayWindowControlsOverlayConfig struct {
304	// ShowCSS Whether the title bar CSS should be shown when emulating the Window Controls Overlay.
305	ShowCSS bool `json:"showCSS"`
306
307	// SelectedPlatform Selected platforms to show the overlay.
308	SelectedPlatform string `json:"selectedPlatform"`
309
310	// ThemeColor The theme color defined in app manifest.
311	ThemeColor string `json:"themeColor"`
312}
313
314// OverlayContainerQueryHighlightConfig ...
315type OverlayContainerQueryHighlightConfig struct {
316	// ContainerQueryContainerHighlightConfig A descriptor for the highlight appearance of container query containers.
317	ContainerQueryContainerHighlightConfig *OverlayContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig"`
318
319	// NodeID Identifier of the container node to highlight.
320	NodeID DOMNodeID `json:"nodeId"`
321}
322
323// OverlayContainerQueryContainerHighlightConfig ...
324type OverlayContainerQueryContainerHighlightConfig struct {
325	// ContainerBorder (optional) The style of the container border.
326	ContainerBorder *OverlayLineStyle `json:"containerBorder,omitempty"`
327
328	// DescendantBorder (optional) The style of the descendants' borders.
329	DescendantBorder *OverlayLineStyle `json:"descendantBorder,omitempty"`
330}
331
332// OverlayIsolatedElementHighlightConfig ...
333type OverlayIsolatedElementHighlightConfig struct {
334	// IsolationModeHighlightConfig A descriptor for the highlight appearance of an element in isolation mode.
335	IsolationModeHighlightConfig *OverlayIsolationModeHighlightConfig `json:"isolationModeHighlightConfig"`
336
337	// NodeID Identifier of the isolated element to highlight.
338	NodeID DOMNodeID `json:"nodeId"`
339}
340
341// OverlayIsolationModeHighlightConfig ...
342type OverlayIsolationModeHighlightConfig struct {
343	// ResizerColor (optional) The fill color of the resizers (default: transparent).
344	ResizerColor *DOMRGBA `json:"resizerColor,omitempty"`
345
346	// ResizerHandleColor (optional) The fill color for resizer handles (default: transparent).
347	ResizerHandleColor *DOMRGBA `json:"resizerHandleColor,omitempty"`
348
349	// MaskColor (optional) The fill color for the mask covering non-isolated elements (default: transparent).
350	MaskColor *DOMRGBA `json:"maskColor,omitempty"`
351}
352
353// OverlayInspectMode ...
354type OverlayInspectMode string
355
356const (
357	// OverlayInspectModeSearchForNode enum const.
358	OverlayInspectModeSearchForNode OverlayInspectMode = "searchForNode"
359
360	// OverlayInspectModeSearchForUAShadowDOM enum const.
361	OverlayInspectModeSearchForUAShadowDOM OverlayInspectMode = "searchForUAShadowDOM"
362
363	// OverlayInspectModeCaptureAreaScreenshot enum const.
364	OverlayInspectModeCaptureAreaScreenshot OverlayInspectMode = "captureAreaScreenshot"
365
366	// OverlayInspectModeShowDistances enum const.
367	OverlayInspectModeShowDistances OverlayInspectMode = "showDistances"
368
369	// OverlayInspectModeNone enum const.
370	OverlayInspectModeNone OverlayInspectMode = "none"
371)
372
373// OverlayDisable Disables domain notifications.
374type OverlayDisable struct{}
375
376// ProtoReq name.
377func (m OverlayDisable) ProtoReq() string { return "Overlay.disable" }
378
379// Call sends the request.
380func (m OverlayDisable) Call(c Client) error {
381	return call(m.ProtoReq(), m, nil, c)
382}
383
384// OverlayEnable Enables domain notifications.
385type OverlayEnable struct{}
386
387// ProtoReq name.
388func (m OverlayEnable) ProtoReq() string { return "Overlay.enable" }
389
390// Call sends the request.
391func (m OverlayEnable) Call(c Client) error {
392	return call(m.ProtoReq(), m, nil, c)
393}
394
395// OverlayGetHighlightObjectForTest For testing.
396type OverlayGetHighlightObjectForTest struct {
397	// NodeID Id of the node to get highlight object for.
398	NodeID DOMNodeID `json:"nodeId"`
399
400	// IncludeDistance (optional) Whether to include distance info.
401	IncludeDistance bool `json:"includeDistance,omitempty"`
402
403	// IncludeStyle (optional) Whether to include style info.
404	IncludeStyle bool `json:"includeStyle,omitempty"`
405
406	// ColorFormat (optional) The color format to get config with (default: hex).
407	ColorFormat OverlayColorFormat `json:"colorFormat,omitempty"`
408
409	// ShowAccessibilityInfo (optional) Whether to show accessibility info (default: true).
410	ShowAccessibilityInfo bool `json:"showAccessibilityInfo,omitempty"`
411}
412
413// ProtoReq name.
414func (m OverlayGetHighlightObjectForTest) ProtoReq() string {
415	return "Overlay.getHighlightObjectForTest"
416}
417
418// Call the request.
419func (m OverlayGetHighlightObjectForTest) Call(c Client) (*OverlayGetHighlightObjectForTestResult, error) {
420	var res OverlayGetHighlightObjectForTestResult
421	return &res, call(m.ProtoReq(), m, &res, c)
422}
423
424// OverlayGetHighlightObjectForTestResult ...
425type OverlayGetHighlightObjectForTestResult struct {
426	// Highlight data for the node.
427	Highlight map[string]gson.JSON `json:"highlight"`
428}
429
430// OverlayGetGridHighlightObjectsForTest For Persistent Grid testing.
431type OverlayGetGridHighlightObjectsForTest struct {
432	// NodeIDs Ids of the node to get highlight object for.
433	NodeIDs []DOMNodeID `json:"nodeIds"`
434}
435
436// ProtoReq name.
437func (m OverlayGetGridHighlightObjectsForTest) ProtoReq() string {
438	return "Overlay.getGridHighlightObjectsForTest"
439}
440
441// Call the request.
442func (m OverlayGetGridHighlightObjectsForTest) Call(c Client) (*OverlayGetGridHighlightObjectsForTestResult, error) {
443	var res OverlayGetGridHighlightObjectsForTestResult
444	return &res, call(m.ProtoReq(), m, &res, c)
445}
446
447// OverlayGetGridHighlightObjectsForTestResult ...
448type OverlayGetGridHighlightObjectsForTestResult struct {
449	// Highlights Grid Highlight data for the node ids provided.
450	Highlights map[string]gson.JSON `json:"highlights"`
451}
452
453// OverlayGetSourceOrderHighlightObjectForTest For Source Order Viewer testing.
454type OverlayGetSourceOrderHighlightObjectForTest struct {
455	// NodeID Id of the node to highlight.
456	NodeID DOMNodeID `json:"nodeId"`
457}
458
459// ProtoReq name.
460func (m OverlayGetSourceOrderHighlightObjectForTest) ProtoReq() string {
461	return "Overlay.getSourceOrderHighlightObjectForTest"
462}
463
464// Call the request.
465func (m OverlayGetSourceOrderHighlightObjectForTest) Call(c Client) (*OverlayGetSourceOrderHighlightObjectForTestResult, error) {
466	var res OverlayGetSourceOrderHighlightObjectForTestResult
467	return &res, call(m.ProtoReq(), m, &res, c)
468}
469
470// OverlayGetSourceOrderHighlightObjectForTestResult ...
471type OverlayGetSourceOrderHighlightObjectForTestResult struct {
472	// Highlight Source order highlight data for the node id provided.
473	Highlight map[string]gson.JSON `json:"highlight"`
474}
475
476// OverlayHideHighlight Hides any highlight.
477type OverlayHideHighlight struct{}
478
479// ProtoReq name.
480func (m OverlayHideHighlight) ProtoReq() string { return "Overlay.hideHighlight" }
481
482// Call sends the request.
483func (m OverlayHideHighlight) Call(c Client) error {
484	return call(m.ProtoReq(), m, nil, c)
485}
486
487// OverlayHighlightFrame (deprecated) Highlights owner element of the frame with given id.
488// Deprecated: Doesn't work reliably and cannot be fixed due to process
489// separation (the owner node might be in a different process). Determine
490// the owner node in the client and use highlightNode.
491type OverlayHighlightFrame struct {
492	// FrameID Identifier of the frame to highlight.
493	FrameID PageFrameID `json:"frameId"`
494
495	// ContentColor (optional) The content box highlight fill color (default: transparent).
496	ContentColor *DOMRGBA `json:"contentColor,omitempty"`
497
498	// ContentOutlineColor (optional) The content box highlight outline color (default: transparent).
499	ContentOutlineColor *DOMRGBA `json:"contentOutlineColor,omitempty"`
500}
501
502// ProtoReq name.
503func (m OverlayHighlightFrame) ProtoReq() string { return "Overlay.highlightFrame" }
504
505// Call sends the request.
506func (m OverlayHighlightFrame) Call(c Client) error {
507	return call(m.ProtoReq(), m, nil, c)
508}
509
510// OverlayHighlightNode Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
511// objectId must be specified.
512type OverlayHighlightNode struct {
513	// HighlightConfig A descriptor for the highlight appearance.
514	HighlightConfig *OverlayHighlightConfig `json:"highlightConfig"`
515
516	// NodeID (optional) Identifier of the node to highlight.
517	NodeID DOMNodeID `json:"nodeId,omitempty"`
518
519	// BackendNodeID (optional) Identifier of the backend node to highlight.
520	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`
521
522	// ObjectID (optional) JavaScript object id of the node to be highlighted.
523	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
524
525	// Selector (optional) Selectors to highlight relevant nodes.
526	Selector string `json:"selector,omitempty"`
527}
528
529// ProtoReq name.
530func (m OverlayHighlightNode) ProtoReq() string { return "Overlay.highlightNode" }
531
532// Call sends the request.
533func (m OverlayHighlightNode) Call(c Client) error {
534	return call(m.ProtoReq(), m, nil, c)
535}
536
537// OverlayHighlightQuad Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
538type OverlayHighlightQuad struct {
539	// Quad to highlight
540	Quad DOMQuad `json:"quad"`
541
542	// Color (optional) The highlight fill color (default: transparent).
543	Color *DOMRGBA `json:"color,omitempty"`
544
545	// OutlineColor (optional) The highlight outline color (default: transparent).
546	OutlineColor *DOMRGBA `json:"outlineColor,omitempty"`
547}
548
549// ProtoReq name.
550func (m OverlayHighlightQuad) ProtoReq() string { return "Overlay.highlightQuad" }
551
552// Call sends the request.
553func (m OverlayHighlightQuad) Call(c Client) error {
554	return call(m.ProtoReq(), m, nil, c)
555}
556
557// OverlayHighlightRect Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
558type OverlayHighlightRect struct {
559	// X coordinate
560	X int `json:"x"`
561
562	// Y coordinate
563	Y int `json:"y"`
564
565	// Width Rectangle width
566	Width int `json:"width"`
567
568	// Height Rectangle height
569	Height int `json:"height"`
570
571	// Color (optional) The highlight fill color (default: transparent).
572	Color *DOMRGBA `json:"color,omitempty"`
573
574	// OutlineColor (optional) The highlight outline color (default: transparent).
575	OutlineColor *DOMRGBA `json:"outlineColor,omitempty"`
576}
577
578// ProtoReq name.
579func (m OverlayHighlightRect) ProtoReq() string { return "Overlay.highlightRect" }
580
581// Call sends the request.
582func (m OverlayHighlightRect) Call(c Client) error {
583	return call(m.ProtoReq(), m, nil, c)
584}
585
586// OverlayHighlightSourceOrder Highlights the source order of the children of the DOM node with given id or with the given
587// JavaScript object wrapper. Either nodeId or objectId must be specified.
588type OverlayHighlightSourceOrder struct {
589	// SourceOrderConfig A descriptor for the appearance of the overlay drawing.
590	SourceOrderConfig *OverlaySourceOrderConfig `json:"sourceOrderConfig"`
591
592	// NodeID (optional) Identifier of the node to highlight.
593	NodeID DOMNodeID `json:"nodeId,omitempty"`
594
595	// BackendNodeID (optional) Identifier of the backend node to highlight.
596	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`
597
598	// ObjectID (optional) JavaScript object id of the node to be highlighted.
599	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
600}
601
602// ProtoReq name.
603func (m OverlayHighlightSourceOrder) ProtoReq() string { return "Overlay.highlightSourceOrder" }
604
605// Call sends the request.
606func (m OverlayHighlightSourceOrder) Call(c Client) error {
607	return call(m.ProtoReq(), m, nil, c)
608}
609
610// OverlaySetInspectMode Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
611// Backend then generates 'inspectNodeRequested' event upon element selection.
612type OverlaySetInspectMode struct {
613	// Mode Set an inspection mode.
614	Mode OverlayInspectMode `json:"mode"`
615
616	// HighlightConfig (optional) A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled
617	// == false`.
618	HighlightConfig *OverlayHighlightConfig `json:"highlightConfig,omitempty"`
619}
620
621// ProtoReq name.
622func (m OverlaySetInspectMode) ProtoReq() string { return "Overlay.setInspectMode" }
623
624// Call sends the request.
625func (m OverlaySetInspectMode) Call(c Client) error {
626	return call(m.ProtoReq(), m, nil, c)
627}
628
629// OverlaySetShowAdHighlights Highlights owner element of all frames detected to be ads.
630type OverlaySetShowAdHighlights struct {
631	// Show True for showing ad highlights
632	Show bool `json:"show"`
633}
634
635// ProtoReq name.
636func (m OverlaySetShowAdHighlights) ProtoReq() string { return "Overlay.setShowAdHighlights" }
637
638// Call sends the request.
639func (m OverlaySetShowAdHighlights) Call(c Client) error {
640	return call(m.ProtoReq(), m, nil, c)
641}
642
643// OverlaySetPausedInDebuggerMessage ...
644type OverlaySetPausedInDebuggerMessage struct {
645	// Message (optional) The message to display, also triggers resume and step over controls.
646	Message string `json:"message,omitempty"`
647}
648
649// ProtoReq name.
650func (m OverlaySetPausedInDebuggerMessage) ProtoReq() string {
651	return "Overlay.setPausedInDebuggerMessage"
652}
653
654// Call sends the request.
655func (m OverlaySetPausedInDebuggerMessage) Call(c Client) error {
656	return call(m.ProtoReq(), m, nil, c)
657}
658
659// OverlaySetShowDebugBorders Requests that backend shows debug borders on layers.
660type OverlaySetShowDebugBorders struct {
661	// Show True for showing debug borders
662	Show bool `json:"show"`
663}
664
665// ProtoReq name.
666func (m OverlaySetShowDebugBorders) ProtoReq() string { return "Overlay.setShowDebugBorders" }
667
668// Call sends the request.
669func (m OverlaySetShowDebugBorders) Call(c Client) error {
670	return call(m.ProtoReq(), m, nil, c)
671}
672
673// OverlaySetShowFPSCounter Requests that backend shows the FPS counter.
674type OverlaySetShowFPSCounter struct {
675	// Show True for showing the FPS counter
676	Show bool `json:"show"`
677}
678
679// ProtoReq name.
680func (m OverlaySetShowFPSCounter) ProtoReq() string { return "Overlay.setShowFPSCounter" }
681
682// Call sends the request.
683func (m OverlaySetShowFPSCounter) Call(c Client) error {
684	return call(m.ProtoReq(), m, nil, c)
685}
686
687// OverlaySetShowGridOverlays Highlight multiple elements with the CSS Grid overlay.
688type OverlaySetShowGridOverlays struct {
689	// GridNodeHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
690	GridNodeHighlightConfigs []*OverlayGridNodeHighlightConfig `json:"gridNodeHighlightConfigs"`
691}
692
693// ProtoReq name.
694func (m OverlaySetShowGridOverlays) ProtoReq() string { return "Overlay.setShowGridOverlays" }
695
696// Call sends the request.
697func (m OverlaySetShowGridOverlays) Call(c Client) error {
698	return call(m.ProtoReq(), m, nil, c)
699}
700
701// OverlaySetShowFlexOverlays ...
702type OverlaySetShowFlexOverlays struct {
703	// FlexNodeHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
704	FlexNodeHighlightConfigs []*OverlayFlexNodeHighlightConfig `json:"flexNodeHighlightConfigs"`
705}
706
707// ProtoReq name.
708func (m OverlaySetShowFlexOverlays) ProtoReq() string { return "Overlay.setShowFlexOverlays" }
709
710// Call sends the request.
711func (m OverlaySetShowFlexOverlays) Call(c Client) error {
712	return call(m.ProtoReq(), m, nil, c)
713}
714
715// OverlaySetShowScrollSnapOverlays ...
716type OverlaySetShowScrollSnapOverlays struct {
717	// ScrollSnapHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
718	ScrollSnapHighlightConfigs []*OverlayScrollSnapHighlightConfig `json:"scrollSnapHighlightConfigs"`
719}
720
721// ProtoReq name.
722func (m OverlaySetShowScrollSnapOverlays) ProtoReq() string {
723	return "Overlay.setShowScrollSnapOverlays"
724}
725
726// Call sends the request.
727func (m OverlaySetShowScrollSnapOverlays) Call(c Client) error {
728	return call(m.ProtoReq(), m, nil, c)
729}
730
731// OverlaySetShowContainerQueryOverlays ...
732type OverlaySetShowContainerQueryOverlays struct {
733	// ContainerQueryHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
734	ContainerQueryHighlightConfigs []*OverlayContainerQueryHighlightConfig `json:"containerQueryHighlightConfigs"`
735}
736
737// ProtoReq name.
738func (m OverlaySetShowContainerQueryOverlays) ProtoReq() string {
739	return "Overlay.setShowContainerQueryOverlays"
740}
741
742// Call sends the request.
743func (m OverlaySetShowContainerQueryOverlays) Call(c Client) error {
744	return call(m.ProtoReq(), m, nil, c)
745}
746
747// OverlaySetShowPaintRects Requests that backend shows paint rectangles.
748type OverlaySetShowPaintRects struct {
749	// Result True for showing paint rectangles
750	Result bool `json:"result"`
751}
752
753// ProtoReq name.
754func (m OverlaySetShowPaintRects) ProtoReq() string { return "Overlay.setShowPaintRects" }
755
756// Call sends the request.
757func (m OverlaySetShowPaintRects) Call(c Client) error {
758	return call(m.ProtoReq(), m, nil, c)
759}
760
761// OverlaySetShowLayoutShiftRegions Requests that backend shows layout shift regions.
762type OverlaySetShowLayoutShiftRegions struct {
763	// Result True for showing layout shift regions
764	Result bool `json:"result"`
765}
766
767// ProtoReq name.
768func (m OverlaySetShowLayoutShiftRegions) ProtoReq() string {
769	return "Overlay.setShowLayoutShiftRegions"
770}
771
772// Call sends the request.
773func (m OverlaySetShowLayoutShiftRegions) Call(c Client) error {
774	return call(m.ProtoReq(), m, nil, c)
775}
776
777// OverlaySetShowScrollBottleneckRects Requests that backend shows scroll bottleneck rects.
778type OverlaySetShowScrollBottleneckRects struct {
779	// Show True for showing scroll bottleneck rects
780	Show bool `json:"show"`
781}
782
783// ProtoReq name.
784func (m OverlaySetShowScrollBottleneckRects) ProtoReq() string {
785	return "Overlay.setShowScrollBottleneckRects"
786}
787
788// Call sends the request.
789func (m OverlaySetShowScrollBottleneckRects) Call(c Client) error {
790	return call(m.ProtoReq(), m, nil, c)
791}
792
793// OverlaySetShowHitTestBorders (deprecated) Deprecated, no longer has any effect.
794type OverlaySetShowHitTestBorders struct {
795	// Show True for showing hit-test borders
796	Show bool `json:"show"`
797}
798
799// ProtoReq name.
800func (m OverlaySetShowHitTestBorders) ProtoReq() string { return "Overlay.setShowHitTestBorders" }
801
802// Call sends the request.
803func (m OverlaySetShowHitTestBorders) Call(c Client) error {
804	return call(m.ProtoReq(), m, nil, c)
805}
806
807// OverlaySetShowWebVitals Request that backend shows an overlay with web vital metrics.
808type OverlaySetShowWebVitals struct {
809	// Show ...
810	Show bool `json:"show"`
811}
812
813// ProtoReq name.
814func (m OverlaySetShowWebVitals) ProtoReq() string { return "Overlay.setShowWebVitals" }
815
816// Call sends the request.
817func (m OverlaySetShowWebVitals) Call(c Client) error {
818	return call(m.ProtoReq(), m, nil, c)
819}
820
821// OverlaySetShowViewportSizeOnResize Paints viewport size upon main frame resize.
822type OverlaySetShowViewportSizeOnResize struct {
823	// Show Whether to paint size or not.
824	Show bool `json:"show"`
825}
826
827// ProtoReq name.
828func (m OverlaySetShowViewportSizeOnResize) ProtoReq() string {
829	return "Overlay.setShowViewportSizeOnResize"
830}
831
832// Call sends the request.
833func (m OverlaySetShowViewportSizeOnResize) Call(c Client) error {
834	return call(m.ProtoReq(), m, nil, c)
835}
836
837// OverlaySetShowHinge Add a dual screen device hinge.
838type OverlaySetShowHinge struct {
839	// HingeConfig (optional) hinge data, null means hideHinge
840	HingeConfig *OverlayHingeConfig `json:"hingeConfig,omitempty"`
841}
842
843// ProtoReq name.
844func (m OverlaySetShowHinge) ProtoReq() string { return "Overlay.setShowHinge" }
845
846// Call sends the request.
847func (m OverlaySetShowHinge) Call(c Client) error {
848	return call(m.ProtoReq(), m, nil, c)
849}
850
851// OverlaySetShowIsolatedElements Show elements in isolation mode with overlays.
852type OverlaySetShowIsolatedElements struct {
853	// IsolatedElementHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
854	IsolatedElementHighlightConfigs []*OverlayIsolatedElementHighlightConfig `json:"isolatedElementHighlightConfigs"`
855}
856
857// ProtoReq name.
858func (m OverlaySetShowIsolatedElements) ProtoReq() string { return "Overlay.setShowIsolatedElements" }
859
860// Call sends the request.
861func (m OverlaySetShowIsolatedElements) Call(c Client) error {
862	return call(m.ProtoReq(), m, nil, c)
863}
864
865// OverlaySetShowWindowControlsOverlay Show Window Controls Overlay for PWA.
866type OverlaySetShowWindowControlsOverlay struct {
867	// WindowControlsOverlayConfig (optional) Window Controls Overlay data, null means hide Window Controls Overlay
868	WindowControlsOverlayConfig *OverlayWindowControlsOverlayConfig `json:"windowControlsOverlayConfig,omitempty"`
869}
870
871// ProtoReq name.
872func (m OverlaySetShowWindowControlsOverlay) ProtoReq() string {
873	return "Overlay.setShowWindowControlsOverlay"
874}
875
876// Call sends the request.
877func (m OverlaySetShowWindowControlsOverlay) Call(c Client) error {
878	return call(m.ProtoReq(), m, nil, c)
879}
880
881// OverlayInspectNodeRequested Fired when the node should be inspected. This happens after call to `setInspectMode` or when
882// user manually inspects an element.
883type OverlayInspectNodeRequested struct {
884	// BackendNodeID Id of the node to inspect.
885	BackendNodeID DOMBackendNodeID `json:"backendNodeId"`
886}
887
888// ProtoEvent name.
889func (evt OverlayInspectNodeRequested) ProtoEvent() string {
890	return "Overlay.inspectNodeRequested"
891}
892
893// OverlayNodeHighlightRequested Fired when the node should be highlighted. This happens after call to `setInspectMode`.
894type OverlayNodeHighlightRequested struct {
895	// NodeID ...
896	NodeID DOMNodeID `json:"nodeId"`
897}
898
899// ProtoEvent name.
900func (evt OverlayNodeHighlightRequested) ProtoEvent() string {
901	return "Overlay.nodeHighlightRequested"
902}
903
904// OverlayScreenshotRequested Fired when user asks to capture screenshot of some area on the page.
905type OverlayScreenshotRequested struct {
906	// Viewport to capture, in device independent pixels (dip).
907	Viewport *PageViewport `json:"viewport"`
908}
909
910// ProtoEvent name.
911func (evt OverlayScreenshotRequested) ProtoEvent() string {
912	return "Overlay.screenshotRequested"
913}
914
915// OverlayInspectModeCanceled Fired when user cancels the inspect mode.
916type OverlayInspectModeCanceled struct{}
917
918// ProtoEvent name.
919func (evt OverlayInspectModeCanceled) ProtoEvent() string {
920	return "Overlay.inspectModeCanceled"
921}