1#![allow(dead_code)]
3use super::dom;
4use super::page;
5use super::runtime;
6#[allow(unused_imports)]
7use super::types::*;
8#[allow(unused_imports)]
9use derive_builder::Builder;
10#[allow(unused_imports)]
11use serde::{Deserialize, Serialize};
12#[allow(unused_imports)]
13use serde_json::Value as Json;
14#[allow(deprecated)]
15#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
16pub enum LineStylePattern {
17 #[serde(rename = "dashed")]
18 Dashed,
19 #[serde(rename = "dotted")]
20 Dotted,
21}
22#[allow(deprecated)]
23#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
24pub enum ContrastAlgorithm {
25 #[serde(rename = "aa")]
26 Aa,
27 #[serde(rename = "aaa")]
28 Aaa,
29 #[serde(rename = "apca")]
30 Apca,
31}
32#[allow(deprecated)]
33#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
34pub enum ColorFormat {
35 #[serde(rename = "rgb")]
36 Rgb,
37 #[serde(rename = "hsl")]
38 Hsl,
39 #[serde(rename = "hwb")]
40 Hwb,
41 #[serde(rename = "hex")]
42 Hex,
43}
44#[allow(deprecated)]
45#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
46pub enum InspectMode {
47 #[serde(rename = "searchForNode")]
48 SearchForNode,
49 #[serde(rename = "searchForUAShadowDOM")]
50 SearchForUaShadowDom,
51 #[serde(rename = "captureAreaScreenshot")]
52 CaptureAreaScreenshot,
53 #[serde(rename = "none")]
54 None,
55}
56#[allow(deprecated)]
57#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
58#[builder(setter(into, strip_option))]
59#[serde(rename_all = "camelCase")]
60#[doc = "Configuration data for drawing the source order of an elements children."]
61pub struct SourceOrderConfig {
62 #[doc = "the color to outline the given element in."]
63 pub parent_outline_color: dom::Rgba,
64 #[doc = "the color to outline the child elements in."]
65 pub child_outline_color: dom::Rgba,
66}
67#[allow(deprecated)]
68#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
69#[builder(setter(into, strip_option))]
70#[serde(rename_all = "camelCase")]
71#[doc = "Configuration data for the highlighting of Grid elements."]
72pub struct GridHighlightConfig {
73 #[builder(default)]
74 #[serde(skip_serializing_if = "Option::is_none")]
75 #[serde(default)]
76 #[doc = "Whether the extension lines from grid cells to the rulers should be shown (default: false)."]
77 pub show_grid_extension_lines: Option<bool>,
78 #[builder(default)]
79 #[serde(skip_serializing_if = "Option::is_none")]
80 #[serde(default)]
81 #[doc = "Show Positive line number labels (default: false)."]
82 pub show_positive_line_numbers: Option<bool>,
83 #[builder(default)]
84 #[serde(skip_serializing_if = "Option::is_none")]
85 #[serde(default)]
86 #[doc = "Show Negative line number labels (default: false)."]
87 pub show_negative_line_numbers: Option<bool>,
88 #[builder(default)]
89 #[serde(skip_serializing_if = "Option::is_none")]
90 #[serde(default)]
91 #[doc = "Show area name labels (default: false)."]
92 pub show_area_names: Option<bool>,
93 #[builder(default)]
94 #[serde(skip_serializing_if = "Option::is_none")]
95 #[serde(default)]
96 #[doc = "Show line name labels (default: false)."]
97 pub show_line_names: Option<bool>,
98 #[builder(default)]
99 #[serde(skip_serializing_if = "Option::is_none")]
100 #[serde(default)]
101 #[doc = "Show track size labels (default: false)."]
102 pub show_track_sizes: Option<bool>,
103 #[builder(default)]
104 #[serde(skip_serializing_if = "Option::is_none")]
105 #[doc = "The grid container border highlight color (default: transparent)."]
106 pub grid_border_color: Option<dom::Rgba>,
107 #[builder(default)]
108 #[serde(skip_serializing_if = "Option::is_none")]
109 #[doc = "The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead."]
110 #[deprecated]
111 pub cell_border_color: Option<dom::Rgba>,
112 #[builder(default)]
113 #[serde(skip_serializing_if = "Option::is_none")]
114 #[doc = "The row line color (default: transparent)."]
115 pub row_line_color: Option<dom::Rgba>,
116 #[builder(default)]
117 #[serde(skip_serializing_if = "Option::is_none")]
118 #[doc = "The column line color (default: transparent)."]
119 pub column_line_color: Option<dom::Rgba>,
120 #[builder(default)]
121 #[serde(skip_serializing_if = "Option::is_none")]
122 #[serde(default)]
123 #[doc = "Whether the grid border is dashed (default: false)."]
124 pub grid_border_dash: Option<bool>,
125 #[builder(default)]
126 #[serde(skip_serializing_if = "Option::is_none")]
127 #[serde(default)]
128 #[doc = "Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead."]
129 #[deprecated]
130 pub cell_border_dash: Option<bool>,
131 #[builder(default)]
132 #[serde(skip_serializing_if = "Option::is_none")]
133 #[serde(default)]
134 #[doc = "Whether row lines are dashed (default: false)."]
135 pub row_line_dash: Option<bool>,
136 #[builder(default)]
137 #[serde(skip_serializing_if = "Option::is_none")]
138 #[serde(default)]
139 #[doc = "Whether column lines are dashed (default: false)."]
140 pub column_line_dash: Option<bool>,
141 #[builder(default)]
142 #[serde(skip_serializing_if = "Option::is_none")]
143 #[doc = "The row gap highlight fill color (default: transparent)."]
144 pub row_gap_color: Option<dom::Rgba>,
145 #[builder(default)]
146 #[serde(skip_serializing_if = "Option::is_none")]
147 #[doc = "The row gap hatching fill color (default: transparent)."]
148 pub row_hatch_color: Option<dom::Rgba>,
149 #[builder(default)]
150 #[serde(skip_serializing_if = "Option::is_none")]
151 #[doc = "The column gap highlight fill color (default: transparent)."]
152 pub column_gap_color: Option<dom::Rgba>,
153 #[builder(default)]
154 #[serde(skip_serializing_if = "Option::is_none")]
155 #[doc = "The column gap hatching fill color (default: transparent)."]
156 pub column_hatch_color: Option<dom::Rgba>,
157 #[builder(default)]
158 #[serde(skip_serializing_if = "Option::is_none")]
159 #[doc = "The named grid areas border color (Default: transparent)."]
160 pub area_border_color: Option<dom::Rgba>,
161 #[builder(default)]
162 #[serde(skip_serializing_if = "Option::is_none")]
163 #[doc = "The grid container background color (Default: transparent)."]
164 pub grid_background_color: Option<dom::Rgba>,
165}
166#[allow(deprecated)]
167#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
168#[builder(setter(into, strip_option))]
169#[serde(rename_all = "camelCase")]
170#[doc = "Configuration data for the highlighting of Flex container elements."]
171pub struct FlexContainerHighlightConfig {
172 #[builder(default)]
173 #[serde(skip_serializing_if = "Option::is_none")]
174 #[doc = "The style of the container border"]
175 pub container_border: Option<LineStyle>,
176 #[builder(default)]
177 #[serde(skip_serializing_if = "Option::is_none")]
178 #[doc = "The style of the separator between lines"]
179 pub line_separator: Option<LineStyle>,
180 #[builder(default)]
181 #[serde(skip_serializing_if = "Option::is_none")]
182 #[doc = "The style of the separator between items"]
183 pub item_separator: Option<LineStyle>,
184 #[builder(default)]
185 #[serde(skip_serializing_if = "Option::is_none")]
186 #[doc = "Style of content-distribution space on the main axis (justify-content)."]
187 pub main_distributed_space: Option<BoxStyle>,
188 #[builder(default)]
189 #[serde(skip_serializing_if = "Option::is_none")]
190 #[doc = "Style of content-distribution space on the cross axis (align-content)."]
191 pub cross_distributed_space: Option<BoxStyle>,
192 #[builder(default)]
193 #[serde(skip_serializing_if = "Option::is_none")]
194 #[doc = "Style of empty space caused by row gaps (gap/row-gap)."]
195 pub row_gap_space: Option<BoxStyle>,
196 #[builder(default)]
197 #[serde(skip_serializing_if = "Option::is_none")]
198 #[doc = "Style of empty space caused by columns gaps (gap/column-gap)."]
199 pub column_gap_space: Option<BoxStyle>,
200 #[builder(default)]
201 #[serde(skip_serializing_if = "Option::is_none")]
202 #[doc = "Style of the self-alignment line (align-items)."]
203 pub cross_alignment: Option<LineStyle>,
204}
205#[allow(deprecated)]
206#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
207#[builder(setter(into, strip_option))]
208#[serde(rename_all = "camelCase")]
209#[doc = "Configuration data for the highlighting of Flex item elements."]
210pub struct FlexItemHighlightConfig {
211 #[builder(default)]
212 #[serde(skip_serializing_if = "Option::is_none")]
213 #[doc = "Style of the box representing the item's base size"]
214 pub base_size_box: Option<BoxStyle>,
215 #[builder(default)]
216 #[serde(skip_serializing_if = "Option::is_none")]
217 #[doc = "Style of the border around the box representing the item's base size"]
218 pub base_size_border: Option<LineStyle>,
219 #[builder(default)]
220 #[serde(skip_serializing_if = "Option::is_none")]
221 #[doc = "Style of the arrow representing if the item grew or shrank"]
222 pub flexibility_arrow: Option<LineStyle>,
223}
224#[allow(deprecated)]
225#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
226#[builder(setter(into, strip_option))]
227#[serde(rename_all = "camelCase")]
228#[doc = "Style information for drawing a line."]
229pub struct LineStyle {
230 #[builder(default)]
231 #[serde(skip_serializing_if = "Option::is_none")]
232 #[doc = "The color of the line (default: transparent)"]
233 pub color: Option<dom::Rgba>,
234 #[builder(default)]
235 #[serde(skip_serializing_if = "Option::is_none")]
236 #[doc = "The line pattern (default: solid)"]
237 pub pattern: Option<LineStylePattern>,
238}
239#[allow(deprecated)]
240#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
241#[builder(setter(into, strip_option))]
242#[serde(rename_all = "camelCase")]
243#[doc = "Style information for drawing a box."]
244pub struct BoxStyle {
245 #[builder(default)]
246 #[serde(skip_serializing_if = "Option::is_none")]
247 #[doc = "The background color for the box (default: transparent)"]
248 pub fill_color: Option<dom::Rgba>,
249 #[builder(default)]
250 #[serde(skip_serializing_if = "Option::is_none")]
251 #[doc = "The hatching color for the box (default: transparent)"]
252 pub hatch_color: Option<dom::Rgba>,
253}
254#[allow(deprecated)]
255#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
256#[builder(setter(into, strip_option))]
257#[serde(rename_all = "camelCase")]
258#[doc = "Configuration data for the highlighting of page elements."]
259pub struct HighlightConfig {
260 #[builder(default)]
261 #[serde(skip_serializing_if = "Option::is_none")]
262 #[serde(default)]
263 #[doc = "Whether the node info tooltip should be shown (default: false)."]
264 pub show_info: Option<bool>,
265 #[builder(default)]
266 #[serde(skip_serializing_if = "Option::is_none")]
267 #[serde(default)]
268 #[doc = "Whether the node styles in the tooltip (default: false)."]
269 pub show_styles: Option<bool>,
270 #[builder(default)]
271 #[serde(skip_serializing_if = "Option::is_none")]
272 #[serde(default)]
273 #[doc = "Whether the rulers should be shown (default: false)."]
274 pub show_rulers: Option<bool>,
275 #[builder(default)]
276 #[serde(skip_serializing_if = "Option::is_none")]
277 #[serde(default)]
278 #[doc = "Whether the a11y info should be shown (default: true)."]
279 pub show_accessibility_info: Option<bool>,
280 #[builder(default)]
281 #[serde(skip_serializing_if = "Option::is_none")]
282 #[serde(default)]
283 #[doc = "Whether the extension lines from node to the rulers should be shown (default: false)."]
284 pub show_extension_lines: Option<bool>,
285 #[builder(default)]
286 #[serde(skip_serializing_if = "Option::is_none")]
287 #[doc = "The content box highlight fill color (default: transparent)."]
288 pub content_color: Option<dom::Rgba>,
289 #[builder(default)]
290 #[serde(skip_serializing_if = "Option::is_none")]
291 #[doc = "The padding highlight fill color (default: transparent)."]
292 pub padding_color: Option<dom::Rgba>,
293 #[builder(default)]
294 #[serde(skip_serializing_if = "Option::is_none")]
295 #[doc = "The border highlight fill color (default: transparent)."]
296 pub border_color: Option<dom::Rgba>,
297 #[builder(default)]
298 #[serde(skip_serializing_if = "Option::is_none")]
299 #[doc = "The margin highlight fill color (default: transparent)."]
300 pub margin_color: Option<dom::Rgba>,
301 #[builder(default)]
302 #[serde(skip_serializing_if = "Option::is_none")]
303 #[doc = "The event target element highlight fill color (default: transparent)."]
304 pub event_target_color: Option<dom::Rgba>,
305 #[builder(default)]
306 #[serde(skip_serializing_if = "Option::is_none")]
307 #[doc = "The shape outside fill color (default: transparent)."]
308 pub shape_color: Option<dom::Rgba>,
309 #[builder(default)]
310 #[serde(skip_serializing_if = "Option::is_none")]
311 #[doc = "The shape margin fill color (default: transparent)."]
312 pub shape_margin_color: Option<dom::Rgba>,
313 #[builder(default)]
314 #[serde(skip_serializing_if = "Option::is_none")]
315 #[doc = "The grid layout color (default: transparent)."]
316 pub css_grid_color: Option<dom::Rgba>,
317 #[builder(default)]
318 #[serde(skip_serializing_if = "Option::is_none")]
319 #[doc = "The color format used to format color styles (default: hex)."]
320 pub color_format: Option<ColorFormat>,
321 #[builder(default)]
322 #[serde(skip_serializing_if = "Option::is_none")]
323 #[doc = "The grid layout highlight configuration (default: all transparent)."]
324 pub grid_highlight_config: Option<GridHighlightConfig>,
325 #[builder(default)]
326 #[serde(skip_serializing_if = "Option::is_none")]
327 #[doc = "The flex container highlight configuration (default: all transparent)."]
328 pub flex_container_highlight_config: Option<FlexContainerHighlightConfig>,
329 #[builder(default)]
330 #[serde(skip_serializing_if = "Option::is_none")]
331 #[doc = "The flex item highlight configuration (default: all transparent)."]
332 pub flex_item_highlight_config: Option<FlexItemHighlightConfig>,
333 #[builder(default)]
334 #[serde(skip_serializing_if = "Option::is_none")]
335 #[doc = "The contrast algorithm to use for the contrast ratio (default: aa)."]
336 pub contrast_algorithm: Option<ContrastAlgorithm>,
337 #[builder(default)]
338 #[serde(skip_serializing_if = "Option::is_none")]
339 #[doc = "The container query container highlight configuration (default: all transparent)."]
340 pub container_query_container_highlight_config: Option<ContainerQueryContainerHighlightConfig>,
341}
342#[allow(deprecated)]
343#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
344#[builder(setter(into, strip_option))]
345#[serde(rename_all = "camelCase")]
346#[doc = "Configurations for Persistent Grid Highlight"]
347pub struct GridNodeHighlightConfig {
348 #[doc = "A descriptor for the highlight appearance."]
349 pub grid_highlight_config: GridHighlightConfig,
350 #[doc = "Identifier of the node to highlight."]
351 pub node_id: dom::NodeId,
352}
353#[allow(deprecated)]
354#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
355#[builder(setter(into, strip_option))]
356#[serde(rename_all = "camelCase")]
357pub struct FlexNodeHighlightConfig {
358 #[doc = "A descriptor for the highlight appearance of flex containers."]
359 pub flex_container_highlight_config: FlexContainerHighlightConfig,
360 #[doc = "Identifier of the node to highlight."]
361 pub node_id: dom::NodeId,
362}
363#[allow(deprecated)]
364#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
365#[builder(setter(into, strip_option))]
366#[serde(rename_all = "camelCase")]
367pub struct ScrollSnapContainerHighlightConfig {
368 #[builder(default)]
369 #[serde(skip_serializing_if = "Option::is_none")]
370 #[doc = "The style of the snapport border (default: transparent)"]
371 pub snapport_border: Option<LineStyle>,
372 #[builder(default)]
373 #[serde(skip_serializing_if = "Option::is_none")]
374 #[doc = "The style of the snap area border (default: transparent)"]
375 pub snap_area_border: Option<LineStyle>,
376 #[builder(default)]
377 #[serde(skip_serializing_if = "Option::is_none")]
378 #[doc = "The margin highlight fill color (default: transparent)."]
379 pub scroll_margin_color: Option<dom::Rgba>,
380 #[builder(default)]
381 #[serde(skip_serializing_if = "Option::is_none")]
382 #[doc = "The padding highlight fill color (default: transparent)."]
383 pub scroll_padding_color: Option<dom::Rgba>,
384}
385#[allow(deprecated)]
386#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
387#[builder(setter(into, strip_option))]
388#[serde(rename_all = "camelCase")]
389pub struct ScrollSnapHighlightConfig {
390 #[doc = "A descriptor for the highlight appearance of scroll snap containers."]
391 pub scroll_snap_container_highlight_config: ScrollSnapContainerHighlightConfig,
392 #[doc = "Identifier of the node to highlight."]
393 pub node_id: dom::NodeId,
394}
395#[allow(deprecated)]
396#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
397#[builder(setter(into, strip_option))]
398#[serde(rename_all = "camelCase")]
399#[doc = "Configuration for dual screen hinge"]
400pub struct HingeConfig {
401 #[doc = "A rectangle represent hinge"]
402 pub rect: dom::Rect,
403 #[builder(default)]
404 #[serde(skip_serializing_if = "Option::is_none")]
405 #[doc = "The content box highlight fill color (default: a dark color)."]
406 pub content_color: Option<dom::Rgba>,
407 #[builder(default)]
408 #[serde(skip_serializing_if = "Option::is_none")]
409 #[doc = "The content box highlight outline color (default: transparent)."]
410 pub outline_color: Option<dom::Rgba>,
411}
412#[allow(deprecated)]
413#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
414#[builder(setter(into, strip_option))]
415#[serde(rename_all = "camelCase")]
416#[doc = "Configuration for Window Controls Overlay"]
417pub struct WindowControlsOverlayConfig {
418 #[serde(default)]
419 #[doc = "Whether the title bar CSS should be shown when emulating the Window Controls Overlay."]
420 #[serde(rename = "showCSS")]
421 pub show_css: bool,
422 #[serde(default)]
423 #[doc = "Selected platforms to show the overlay."]
424 pub selected_platform: String,
425 #[serde(default)]
426 #[doc = "The theme color defined in app manifest."]
427 pub theme_color: String,
428}
429#[allow(deprecated)]
430#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
431#[builder(setter(into, strip_option))]
432#[serde(rename_all = "camelCase")]
433pub struct ContainerQueryHighlightConfig {
434 #[doc = "A descriptor for the highlight appearance of container query containers."]
435 pub container_query_container_highlight_config: ContainerQueryContainerHighlightConfig,
436 #[doc = "Identifier of the container node to highlight."]
437 pub node_id: dom::NodeId,
438}
439#[allow(deprecated)]
440#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
441#[builder(setter(into, strip_option))]
442#[serde(rename_all = "camelCase")]
443pub struct ContainerQueryContainerHighlightConfig {
444 #[builder(default)]
445 #[serde(skip_serializing_if = "Option::is_none")]
446 #[doc = "The style of the container border."]
447 pub container_border: Option<LineStyle>,
448 #[builder(default)]
449 #[serde(skip_serializing_if = "Option::is_none")]
450 #[doc = "The style of the descendants' borders."]
451 pub descendant_border: Option<LineStyle>,
452}
453#[allow(deprecated)]
454#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
455#[builder(setter(into, strip_option))]
456#[serde(rename_all = "camelCase")]
457pub struct IsolatedElementHighlightConfig {
458 #[doc = "A descriptor for the highlight appearance of an element in isolation mode."]
459 pub isolation_mode_highlight_config: IsolationModeHighlightConfig,
460 #[doc = "Identifier of the isolated element to highlight."]
461 pub node_id: dom::NodeId,
462}
463#[allow(deprecated)]
464#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
465#[builder(setter(into, strip_option))]
466#[serde(rename_all = "camelCase")]
467pub struct IsolationModeHighlightConfig {
468 #[builder(default)]
469 #[serde(skip_serializing_if = "Option::is_none")]
470 #[doc = "The fill color of the resizers (default: transparent)."]
471 pub resizer_color: Option<dom::Rgba>,
472 #[builder(default)]
473 #[serde(skip_serializing_if = "Option::is_none")]
474 #[doc = "The fill color for resizer handles (default: transparent)."]
475 pub resizer_handle_color: Option<dom::Rgba>,
476 #[builder(default)]
477 #[serde(skip_serializing_if = "Option::is_none")]
478 #[doc = "The fill color for the mask covering non-isolated elements (default: transparent)."]
479 pub mask_color: Option<dom::Rgba>,
480}
481#[allow(deprecated)]
482#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
483#[builder(setter(into, strip_option))]
484#[serde(rename_all = "camelCase")]
485pub struct InspectedElementAnchorConfig {
486 #[builder(default)]
487 #[serde(skip_serializing_if = "Option::is_none")]
488 #[doc = "Identifier of the node to highlight."]
489 pub node_id: Option<dom::NodeId>,
490 #[builder(default)]
491 #[serde(skip_serializing_if = "Option::is_none")]
492 #[doc = "Identifier of the backend node to highlight."]
493 pub backend_node_id: Option<dom::BackendNodeId>,
494}
495#[allow(deprecated)]
496#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
497pub struct Disable(pub Option<Json>);
498#[allow(deprecated)]
499#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
500pub struct Enable(pub Option<Json>);
501#[allow(deprecated)]
502#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
503#[builder(setter(into, strip_option))]
504#[serde(rename_all = "camelCase")]
505#[doc = "For testing."]
506pub struct GetHighlightObjectForTest {
507 #[doc = "Id of the node to get highlight object for."]
508 pub node_id: dom::NodeId,
509 #[builder(default)]
510 #[serde(skip_serializing_if = "Option::is_none")]
511 #[serde(default)]
512 #[doc = "Whether to include distance info."]
513 pub include_distance: Option<bool>,
514 #[builder(default)]
515 #[serde(skip_serializing_if = "Option::is_none")]
516 #[serde(default)]
517 #[doc = "Whether to include style info."]
518 pub include_style: Option<bool>,
519 #[builder(default)]
520 #[serde(skip_serializing_if = "Option::is_none")]
521 #[doc = "The color format to get config with (default: hex)."]
522 pub color_format: Option<ColorFormat>,
523 #[builder(default)]
524 #[serde(skip_serializing_if = "Option::is_none")]
525 #[serde(default)]
526 #[doc = "Whether to show accessibility info (default: true)."]
527 pub show_accessibility_info: Option<bool>,
528}
529#[allow(deprecated)]
530#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
531#[builder(setter(into, strip_option))]
532#[serde(rename_all = "camelCase")]
533#[doc = "For Persistent Grid testing."]
534pub struct GetGridHighlightObjectsForTest {
535 #[doc = "Ids of the node to get highlight object for."]
536 pub node_ids: dom::NodeId,
537}
538#[allow(deprecated)]
539#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
540#[builder(setter(into, strip_option))]
541#[serde(rename_all = "camelCase")]
542#[doc = "For Source Order Viewer testing."]
543pub struct GetSourceOrderHighlightObjectForTest {
544 #[doc = "Id of the node to highlight."]
545 pub node_id: dom::NodeId,
546}
547#[allow(deprecated)]
548#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
549pub struct HideHighlight(pub Option<Json>);
550#[allow(deprecated)]
551#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
552#[builder(setter(into, strip_option))]
553#[serde(rename_all = "camelCase")]
554#[doc = "Highlights owner element of the frame with given id.\n Deprecated: Doesn't work reliably and cannot be fixed due to process\n separation (the owner node might be in a different process). Determine\n the owner node in the client and use highlightNode."]
555#[deprecated]
556pub struct HighlightFrame {
557 #[doc = "Identifier of the frame to highlight."]
558 pub frame_id: page::FrameId,
559 #[builder(default)]
560 #[serde(skip_serializing_if = "Option::is_none")]
561 #[doc = "The content box highlight fill color (default: transparent)."]
562 pub content_color: Option<dom::Rgba>,
563 #[builder(default)]
564 #[serde(skip_serializing_if = "Option::is_none")]
565 #[doc = "The content box highlight outline color (default: transparent)."]
566 pub content_outline_color: Option<dom::Rgba>,
567}
568#[allow(deprecated)]
569#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
570#[builder(setter(into, strip_option))]
571#[serde(rename_all = "camelCase")]
572#[doc = "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or\n objectId must be specified."]
573pub struct HighlightNode {
574 #[doc = "A descriptor for the highlight appearance."]
575 pub highlight_config: HighlightConfig,
576 #[builder(default)]
577 #[serde(skip_serializing_if = "Option::is_none")]
578 #[doc = "Identifier of the node to highlight."]
579 pub node_id: Option<dom::NodeId>,
580 #[builder(default)]
581 #[serde(skip_serializing_if = "Option::is_none")]
582 #[doc = "Identifier of the backend node to highlight."]
583 pub backend_node_id: Option<dom::BackendNodeId>,
584 #[builder(default)]
585 #[serde(skip_serializing_if = "Option::is_none")]
586 #[doc = "JavaScript object id of the node to be highlighted."]
587 pub object_id: Option<runtime::RemoteObjectId>,
588 #[builder(default)]
589 #[serde(skip_serializing_if = "Option::is_none")]
590 #[serde(default)]
591 #[doc = "Selectors to highlight relevant nodes."]
592 pub selector: Option<String>,
593}
594#[allow(deprecated)]
595#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
596#[builder(setter(into, strip_option))]
597#[serde(rename_all = "camelCase")]
598#[doc = "Highlights given quad. Coordinates are absolute with respect to the main frame viewport."]
599pub struct HighlightQuad {
600 #[doc = "Quad to highlight"]
601 pub quad: dom::Quad,
602 #[builder(default)]
603 #[serde(skip_serializing_if = "Option::is_none")]
604 #[doc = "The highlight fill color (default: transparent)."]
605 pub color: Option<dom::Rgba>,
606 #[builder(default)]
607 #[serde(skip_serializing_if = "Option::is_none")]
608 #[doc = "The highlight outline color (default: transparent)."]
609 pub outline_color: Option<dom::Rgba>,
610}
611#[allow(deprecated)]
612#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
613#[builder(setter(into, strip_option))]
614#[serde(rename_all = "camelCase")]
615#[doc = "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.\n Issue: the method does not handle device pixel ratio (DPR) correctly.\n The coordinates currently have to be adjusted by the client\n if DPR is not 1 (see crbug.com/437807128)."]
616pub struct HighlightRect {
617 #[serde(default)]
618 #[doc = "X coordinate"]
619 pub x: JsUInt,
620 #[serde(default)]
621 #[doc = "Y coordinate"]
622 pub y: JsUInt,
623 #[serde(default)]
624 #[doc = "Rectangle width"]
625 pub width: JsUInt,
626 #[serde(default)]
627 #[doc = "Rectangle height"]
628 pub height: JsUInt,
629 #[builder(default)]
630 #[serde(skip_serializing_if = "Option::is_none")]
631 #[doc = "The highlight fill color (default: transparent)."]
632 pub color: Option<dom::Rgba>,
633 #[builder(default)]
634 #[serde(skip_serializing_if = "Option::is_none")]
635 #[doc = "The highlight outline color (default: transparent)."]
636 pub outline_color: Option<dom::Rgba>,
637}
638#[allow(deprecated)]
639#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
640#[builder(setter(into, strip_option))]
641#[serde(rename_all = "camelCase")]
642#[doc = "Highlights the source order of the children of the DOM node with given id or with the given\n JavaScript object wrapper. Either nodeId or objectId must be specified."]
643pub struct HighlightSourceOrder {
644 #[doc = "A descriptor for the appearance of the overlay drawing."]
645 pub source_order_config: SourceOrderConfig,
646 #[builder(default)]
647 #[serde(skip_serializing_if = "Option::is_none")]
648 #[doc = "Identifier of the node to highlight."]
649 pub node_id: Option<dom::NodeId>,
650 #[builder(default)]
651 #[serde(skip_serializing_if = "Option::is_none")]
652 #[doc = "Identifier of the backend node to highlight."]
653 pub backend_node_id: Option<dom::BackendNodeId>,
654 #[builder(default)]
655 #[serde(skip_serializing_if = "Option::is_none")]
656 #[doc = "JavaScript object id of the node to be highlighted."]
657 pub object_id: Option<runtime::RemoteObjectId>,
658}
659#[allow(deprecated)]
660#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
661#[builder(setter(into, strip_option))]
662#[serde(rename_all = "camelCase")]
663#[doc = "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.\n Backend then generates 'inspectNodeRequested' event upon element selection."]
664pub struct SetInspectMode {
665 #[doc = "Set an inspection mode."]
666 pub mode: InspectMode,
667 #[builder(default)]
668 #[serde(skip_serializing_if = "Option::is_none")]
669 #[doc = "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled\n == false`."]
670 pub highlight_config: Option<HighlightConfig>,
671}
672#[allow(deprecated)]
673#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
674#[builder(setter(into, strip_option))]
675#[serde(rename_all = "camelCase")]
676#[doc = "Highlights owner element of all frames detected to be ads."]
677pub struct SetShowAdHighlights {
678 #[serde(default)]
679 #[doc = "True for showing ad highlights"]
680 pub show: bool,
681}
682#[allow(deprecated)]
683#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
684#[builder(setter(into, strip_option))]
685#[serde(rename_all = "camelCase")]
686pub struct SetPausedInDebuggerMessage {
687 #[builder(default)]
688 #[serde(skip_serializing_if = "Option::is_none")]
689 #[serde(default)]
690 #[doc = "The message to display, also triggers resume and step over controls."]
691 pub message: Option<String>,
692}
693#[allow(deprecated)]
694#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
695#[builder(setter(into, strip_option))]
696#[serde(rename_all = "camelCase")]
697#[doc = "Requests that backend shows debug borders on layers"]
698pub struct SetShowDebugBorders {
699 #[serde(default)]
700 #[doc = "True for showing debug borders"]
701 pub show: bool,
702}
703#[allow(deprecated)]
704#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
705#[builder(setter(into, strip_option))]
706#[serde(rename_all = "camelCase")]
707#[doc = "Requests that backend shows the FPS counter"]
708pub struct SetShowFPSCounter {
709 #[serde(default)]
710 #[doc = "True for showing the FPS counter"]
711 pub show: bool,
712}
713#[allow(deprecated)]
714#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
715#[builder(setter(into, strip_option))]
716#[serde(rename_all = "camelCase")]
717#[doc = "Highlight multiple elements with the CSS Grid overlay."]
718pub struct SetShowGridOverlays {
719 #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
720 pub grid_node_highlight_configs: Vec<GridNodeHighlightConfig>,
721}
722#[allow(deprecated)]
723#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
724#[builder(setter(into, strip_option))]
725#[serde(rename_all = "camelCase")]
726pub struct SetShowFlexOverlays {
727 #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
728 pub flex_node_highlight_configs: Vec<FlexNodeHighlightConfig>,
729}
730#[allow(deprecated)]
731#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
732#[builder(setter(into, strip_option))]
733#[serde(rename_all = "camelCase")]
734pub struct SetShowScrollSnapOverlays {
735 #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
736 pub scroll_snap_highlight_configs: Vec<ScrollSnapHighlightConfig>,
737}
738#[allow(deprecated)]
739#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
740#[builder(setter(into, strip_option))]
741#[serde(rename_all = "camelCase")]
742pub struct SetShowContainerQueryOverlays {
743 #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
744 pub container_query_highlight_configs: Vec<ContainerQueryHighlightConfig>,
745}
746#[allow(deprecated)]
747#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
748#[builder(setter(into, strip_option))]
749#[serde(rename_all = "camelCase")]
750pub struct SetShowInspectedElementAnchor {
751 #[doc = "Node identifier for which to show an anchor for."]
752 pub inspected_element_anchor_config: InspectedElementAnchorConfig,
753}
754#[allow(deprecated)]
755#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
756#[builder(setter(into, strip_option))]
757#[serde(rename_all = "camelCase")]
758#[doc = "Requests that backend shows paint rectangles"]
759pub struct SetShowPaintRects {
760 #[serde(default)]
761 #[doc = "True for showing paint rectangles"]
762 pub result: bool,
763}
764#[allow(deprecated)]
765#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
766#[builder(setter(into, strip_option))]
767#[serde(rename_all = "camelCase")]
768#[doc = "Requests that backend shows layout shift regions"]
769pub struct SetShowLayoutShiftRegions {
770 #[serde(default)]
771 #[doc = "True for showing layout shift regions"]
772 pub result: bool,
773}
774#[allow(deprecated)]
775#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
776#[builder(setter(into, strip_option))]
777#[serde(rename_all = "camelCase")]
778#[doc = "Requests that backend shows scroll bottleneck rects"]
779pub struct SetShowScrollBottleneckRects {
780 #[serde(default)]
781 #[doc = "True for showing scroll bottleneck rects"]
782 pub show: bool,
783}
784#[allow(deprecated)]
785#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
786#[builder(setter(into, strip_option))]
787#[serde(rename_all = "camelCase")]
788#[doc = "Deprecated, no longer has any effect."]
789#[deprecated]
790pub struct SetShowHitTestBorders {
791 #[serde(default)]
792 #[doc = "True for showing hit-test borders"]
793 pub show: bool,
794}
795#[allow(deprecated)]
796#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
797#[builder(setter(into, strip_option))]
798#[serde(rename_all = "camelCase")]
799#[doc = "Deprecated, no longer has any effect."]
800#[deprecated]
801pub struct SetShowWebVitals {
802 #[serde(default)]
803 pub show: bool,
804}
805#[allow(deprecated)]
806#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
807#[builder(setter(into, strip_option))]
808#[serde(rename_all = "camelCase")]
809#[doc = "Paints viewport size upon main frame resize."]
810pub struct SetShowViewportSizeOnResize {
811 #[serde(default)]
812 #[doc = "Whether to paint size or not."]
813 pub show: bool,
814}
815#[allow(deprecated)]
816#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
817#[builder(setter(into, strip_option))]
818#[serde(rename_all = "camelCase")]
819#[doc = "Add a dual screen device hinge"]
820pub struct SetShowHinge {
821 #[builder(default)]
822 #[serde(skip_serializing_if = "Option::is_none")]
823 #[doc = "hinge data, null means hideHinge"]
824 pub hinge_config: Option<HingeConfig>,
825}
826#[allow(deprecated)]
827#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
828#[builder(setter(into, strip_option))]
829#[serde(rename_all = "camelCase")]
830#[doc = "Show elements in isolation mode with overlays."]
831pub struct SetShowIsolatedElements {
832 #[doc = "An array of node identifiers and descriptors for the highlight appearance."]
833 pub isolated_element_highlight_configs: Vec<IsolatedElementHighlightConfig>,
834}
835#[allow(deprecated)]
836#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
837#[builder(setter(into, strip_option))]
838#[serde(rename_all = "camelCase")]
839#[doc = "Show Window Controls Overlay for PWA"]
840pub struct SetShowWindowControlsOverlay {
841 #[builder(default)]
842 #[serde(skip_serializing_if = "Option::is_none")]
843 #[doc = "Window Controls Overlay data, null means hide Window Controls Overlay"]
844 pub window_controls_overlay_config: Option<WindowControlsOverlayConfig>,
845}
846#[allow(deprecated)]
847#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
848#[doc = "Disables domain notifications."]
849pub struct DisableReturnObject(pub Option<Json>);
850#[allow(deprecated)]
851#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
852#[doc = "Enables domain notifications."]
853pub struct EnableReturnObject(pub Option<Json>);
854#[allow(deprecated)]
855#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
856#[serde(rename_all = "camelCase")]
857#[doc = "For testing."]
858pub struct GetHighlightObjectForTestReturnObject {
859 #[serde(default)]
860 #[doc = "Highlight data for the node."]
861 pub highlight: Json,
862}
863#[allow(deprecated)]
864#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
865#[serde(rename_all = "camelCase")]
866#[doc = "For Persistent Grid testing."]
867pub struct GetGridHighlightObjectsForTestReturnObject {
868 #[serde(default)]
869 #[doc = "Grid Highlight data for the node ids provided."]
870 pub highlights: Json,
871}
872#[allow(deprecated)]
873#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
874#[serde(rename_all = "camelCase")]
875#[doc = "For Source Order Viewer testing."]
876pub struct GetSourceOrderHighlightObjectForTestReturnObject {
877 #[serde(default)]
878 #[doc = "Source order highlight data for the node id provided."]
879 pub highlight: Json,
880}
881#[allow(deprecated)]
882#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
883#[doc = "Hides any highlight."]
884pub struct HideHighlightReturnObject(pub Option<Json>);
885#[allow(deprecated)]
886#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
887#[doc = "Highlights owner element of the frame with given id.\n Deprecated: Doesn't work reliably and cannot be fixed due to process\n separation (the owner node might be in a different process). Determine\n the owner node in the client and use highlightNode."]
888#[deprecated]
889pub struct HighlightFrameReturnObject(pub Option<Json>);
890#[allow(deprecated)]
891#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
892#[doc = "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or\n objectId must be specified."]
893pub struct HighlightNodeReturnObject(pub Option<Json>);
894#[allow(deprecated)]
895#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
896#[doc = "Highlights given quad. Coordinates are absolute with respect to the main frame viewport."]
897pub struct HighlightQuadReturnObject(pub Option<Json>);
898#[allow(deprecated)]
899#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
900#[doc = "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.\n Issue: the method does not handle device pixel ratio (DPR) correctly.\n The coordinates currently have to be adjusted by the client\n if DPR is not 1 (see crbug.com/437807128)."]
901pub struct HighlightRectReturnObject(pub Option<Json>);
902#[allow(deprecated)]
903#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
904#[doc = "Highlights the source order of the children of the DOM node with given id or with the given\n JavaScript object wrapper. Either nodeId or objectId must be specified."]
905pub struct HighlightSourceOrderReturnObject(pub Option<Json>);
906#[allow(deprecated)]
907#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
908#[doc = "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.\n Backend then generates 'inspectNodeRequested' event upon element selection."]
909pub struct SetInspectModeReturnObject(pub Option<Json>);
910#[allow(deprecated)]
911#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
912#[doc = "Highlights owner element of all frames detected to be ads."]
913pub struct SetShowAdHighlightsReturnObject(pub Option<Json>);
914#[allow(deprecated)]
915#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
916pub struct SetPausedInDebuggerMessageReturnObject(pub Option<Json>);
917#[allow(deprecated)]
918#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
919#[doc = "Requests that backend shows debug borders on layers"]
920pub struct SetShowDebugBordersReturnObject(pub Option<Json>);
921#[allow(deprecated)]
922#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
923#[doc = "Requests that backend shows the FPS counter"]
924pub struct SetShowFPSCounterReturnObject(pub Option<Json>);
925#[allow(deprecated)]
926#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
927#[doc = "Highlight multiple elements with the CSS Grid overlay."]
928pub struct SetShowGridOverlaysReturnObject(pub Option<Json>);
929#[allow(deprecated)]
930#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
931pub struct SetShowFlexOverlaysReturnObject(pub Option<Json>);
932#[allow(deprecated)]
933#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
934pub struct SetShowScrollSnapOverlaysReturnObject(pub Option<Json>);
935#[allow(deprecated)]
936#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
937pub struct SetShowContainerQueryOverlaysReturnObject(pub Option<Json>);
938#[allow(deprecated)]
939#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
940pub struct SetShowInspectedElementAnchorReturnObject(pub Option<Json>);
941#[allow(deprecated)]
942#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
943#[doc = "Requests that backend shows paint rectangles"]
944pub struct SetShowPaintRectsReturnObject(pub Option<Json>);
945#[allow(deprecated)]
946#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
947#[doc = "Requests that backend shows layout shift regions"]
948pub struct SetShowLayoutShiftRegionsReturnObject(pub Option<Json>);
949#[allow(deprecated)]
950#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
951#[doc = "Requests that backend shows scroll bottleneck rects"]
952pub struct SetShowScrollBottleneckRectsReturnObject(pub Option<Json>);
953#[allow(deprecated)]
954#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
955#[doc = "Deprecated, no longer has any effect."]
956#[deprecated]
957pub struct SetShowHitTestBordersReturnObject(pub Option<Json>);
958#[allow(deprecated)]
959#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
960#[doc = "Deprecated, no longer has any effect."]
961#[deprecated]
962pub struct SetShowWebVitalsReturnObject(pub Option<Json>);
963#[allow(deprecated)]
964#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
965#[doc = "Paints viewport size upon main frame resize."]
966pub struct SetShowViewportSizeOnResizeReturnObject(pub Option<Json>);
967#[allow(deprecated)]
968#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
969#[doc = "Add a dual screen device hinge"]
970pub struct SetShowHingeReturnObject(pub Option<Json>);
971#[allow(deprecated)]
972#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
973#[doc = "Show elements in isolation mode with overlays."]
974pub struct SetShowIsolatedElementsReturnObject(pub Option<Json>);
975#[allow(deprecated)]
976#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
977#[doc = "Show Window Controls Overlay for PWA"]
978pub struct SetShowWindowControlsOverlayReturnObject(pub Option<Json>);
979#[allow(deprecated)]
980impl Method for Disable {
981 const NAME: &'static str = "Overlay.disable";
982 type ReturnObject = DisableReturnObject;
983}
984#[allow(deprecated)]
985impl Method for Enable {
986 const NAME: &'static str = "Overlay.enable";
987 type ReturnObject = EnableReturnObject;
988}
989#[allow(deprecated)]
990impl Method for GetHighlightObjectForTest {
991 const NAME: &'static str = "Overlay.getHighlightObjectForTest";
992 type ReturnObject = GetHighlightObjectForTestReturnObject;
993}
994#[allow(deprecated)]
995impl Method for GetGridHighlightObjectsForTest {
996 const NAME: &'static str = "Overlay.getGridHighlightObjectsForTest";
997 type ReturnObject = GetGridHighlightObjectsForTestReturnObject;
998}
999#[allow(deprecated)]
1000impl Method for GetSourceOrderHighlightObjectForTest {
1001 const NAME: &'static str = "Overlay.getSourceOrderHighlightObjectForTest";
1002 type ReturnObject = GetSourceOrderHighlightObjectForTestReturnObject;
1003}
1004#[allow(deprecated)]
1005impl Method for HideHighlight {
1006 const NAME: &'static str = "Overlay.hideHighlight";
1007 type ReturnObject = HideHighlightReturnObject;
1008}
1009#[allow(deprecated)]
1010impl Method for HighlightFrame {
1011 const NAME: &'static str = "Overlay.highlightFrame";
1012 type ReturnObject = HighlightFrameReturnObject;
1013}
1014#[allow(deprecated)]
1015impl Method for HighlightNode {
1016 const NAME: &'static str = "Overlay.highlightNode";
1017 type ReturnObject = HighlightNodeReturnObject;
1018}
1019#[allow(deprecated)]
1020impl Method for HighlightQuad {
1021 const NAME: &'static str = "Overlay.highlightQuad";
1022 type ReturnObject = HighlightQuadReturnObject;
1023}
1024#[allow(deprecated)]
1025impl Method for HighlightRect {
1026 const NAME: &'static str = "Overlay.highlightRect";
1027 type ReturnObject = HighlightRectReturnObject;
1028}
1029#[allow(deprecated)]
1030impl Method for HighlightSourceOrder {
1031 const NAME: &'static str = "Overlay.highlightSourceOrder";
1032 type ReturnObject = HighlightSourceOrderReturnObject;
1033}
1034#[allow(deprecated)]
1035impl Method for SetInspectMode {
1036 const NAME: &'static str = "Overlay.setInspectMode";
1037 type ReturnObject = SetInspectModeReturnObject;
1038}
1039#[allow(deprecated)]
1040impl Method for SetShowAdHighlights {
1041 const NAME: &'static str = "Overlay.setShowAdHighlights";
1042 type ReturnObject = SetShowAdHighlightsReturnObject;
1043}
1044#[allow(deprecated)]
1045impl Method for SetPausedInDebuggerMessage {
1046 const NAME: &'static str = "Overlay.setPausedInDebuggerMessage";
1047 type ReturnObject = SetPausedInDebuggerMessageReturnObject;
1048}
1049#[allow(deprecated)]
1050impl Method for SetShowDebugBorders {
1051 const NAME: &'static str = "Overlay.setShowDebugBorders";
1052 type ReturnObject = SetShowDebugBordersReturnObject;
1053}
1054#[allow(deprecated)]
1055impl Method for SetShowFPSCounter {
1056 const NAME: &'static str = "Overlay.setShowFPSCounter";
1057 type ReturnObject = SetShowFPSCounterReturnObject;
1058}
1059#[allow(deprecated)]
1060impl Method for SetShowGridOverlays {
1061 const NAME: &'static str = "Overlay.setShowGridOverlays";
1062 type ReturnObject = SetShowGridOverlaysReturnObject;
1063}
1064#[allow(deprecated)]
1065impl Method for SetShowFlexOverlays {
1066 const NAME: &'static str = "Overlay.setShowFlexOverlays";
1067 type ReturnObject = SetShowFlexOverlaysReturnObject;
1068}
1069#[allow(deprecated)]
1070impl Method for SetShowScrollSnapOverlays {
1071 const NAME: &'static str = "Overlay.setShowScrollSnapOverlays";
1072 type ReturnObject = SetShowScrollSnapOverlaysReturnObject;
1073}
1074#[allow(deprecated)]
1075impl Method for SetShowContainerQueryOverlays {
1076 const NAME: &'static str = "Overlay.setShowContainerQueryOverlays";
1077 type ReturnObject = SetShowContainerQueryOverlaysReturnObject;
1078}
1079#[allow(deprecated)]
1080impl Method for SetShowInspectedElementAnchor {
1081 const NAME: &'static str = "Overlay.setShowInspectedElementAnchor";
1082 type ReturnObject = SetShowInspectedElementAnchorReturnObject;
1083}
1084#[allow(deprecated)]
1085impl Method for SetShowPaintRects {
1086 const NAME: &'static str = "Overlay.setShowPaintRects";
1087 type ReturnObject = SetShowPaintRectsReturnObject;
1088}
1089#[allow(deprecated)]
1090impl Method for SetShowLayoutShiftRegions {
1091 const NAME: &'static str = "Overlay.setShowLayoutShiftRegions";
1092 type ReturnObject = SetShowLayoutShiftRegionsReturnObject;
1093}
1094#[allow(deprecated)]
1095impl Method for SetShowScrollBottleneckRects {
1096 const NAME: &'static str = "Overlay.setShowScrollBottleneckRects";
1097 type ReturnObject = SetShowScrollBottleneckRectsReturnObject;
1098}
1099#[allow(deprecated)]
1100impl Method for SetShowHitTestBorders {
1101 const NAME: &'static str = "Overlay.setShowHitTestBorders";
1102 type ReturnObject = SetShowHitTestBordersReturnObject;
1103}
1104#[allow(deprecated)]
1105impl Method for SetShowWebVitals {
1106 const NAME: &'static str = "Overlay.setShowWebVitals";
1107 type ReturnObject = SetShowWebVitalsReturnObject;
1108}
1109#[allow(deprecated)]
1110impl Method for SetShowViewportSizeOnResize {
1111 const NAME: &'static str = "Overlay.setShowViewportSizeOnResize";
1112 type ReturnObject = SetShowViewportSizeOnResizeReturnObject;
1113}
1114#[allow(deprecated)]
1115impl Method for SetShowHinge {
1116 const NAME: &'static str = "Overlay.setShowHinge";
1117 type ReturnObject = SetShowHingeReturnObject;
1118}
1119#[allow(deprecated)]
1120impl Method for SetShowIsolatedElements {
1121 const NAME: &'static str = "Overlay.setShowIsolatedElements";
1122 type ReturnObject = SetShowIsolatedElementsReturnObject;
1123}
1124#[allow(deprecated)]
1125impl Method for SetShowWindowControlsOverlay {
1126 const NAME: &'static str = "Overlay.setShowWindowControlsOverlay";
1127 type ReturnObject = SetShowWindowControlsOverlayReturnObject;
1128}
1129#[allow(dead_code)]
1130pub mod events {
1131 #[allow(unused_imports)]
1132 use super::super::types::*;
1133 #[allow(unused_imports)]
1134 use derive_builder::Builder;
1135 #[allow(unused_imports)]
1136 use serde::{Deserialize, Serialize};
1137 #[allow(unused_imports)]
1138 use serde_json::Value as Json;
1139 #[allow(deprecated)]
1140 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1141 pub struct InspectNodeRequestedEvent {
1142 pub params: InspectNodeRequestedEventParams,
1143 }
1144 #[allow(deprecated)]
1145 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1146 #[serde(rename_all = "camelCase")]
1147 pub struct InspectNodeRequestedEventParams {
1148 #[doc = "Id of the node to inspect."]
1149 pub backend_node_id: super::super::dom::BackendNodeId,
1150 }
1151 #[allow(deprecated)]
1152 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1153 pub struct NodeHighlightRequestedEvent {
1154 pub params: NodeHighlightRequestedEventParams,
1155 }
1156 #[allow(deprecated)]
1157 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1158 #[serde(rename_all = "camelCase")]
1159 pub struct NodeHighlightRequestedEventParams {
1160 pub node_id: super::super::dom::NodeId,
1161 }
1162 #[allow(deprecated)]
1163 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1164 pub struct ScreenshotRequestedEvent {
1165 pub params: ScreenshotRequestedEventParams,
1166 }
1167 #[allow(deprecated)]
1168 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1169 #[serde(rename_all = "camelCase")]
1170 pub struct ScreenshotRequestedEventParams {
1171 #[doc = "Viewport to capture, in device independent pixels (dip)."]
1172 pub viewport: super::super::page::Viewport,
1173 }
1174 #[allow(deprecated)]
1175 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1176 pub struct InspectPanelShowRequestedEvent {
1177 pub params: InspectPanelShowRequestedEventParams,
1178 }
1179 #[allow(deprecated)]
1180 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1181 #[serde(rename_all = "camelCase")]
1182 pub struct InspectPanelShowRequestedEventParams {
1183 #[doc = "Id of the node to show in the panel."]
1184 pub backend_node_id: super::super::dom::BackendNodeId,
1185 }
1186 #[allow(deprecated)]
1187 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1188 pub struct InspectedElementWindowRestoredEvent {
1189 pub params: InspectedElementWindowRestoredEventParams,
1190 }
1191 #[allow(deprecated)]
1192 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1193 #[serde(rename_all = "camelCase")]
1194 pub struct InspectedElementWindowRestoredEventParams {
1195 #[doc = "Id of the node to restore the floating window for."]
1196 pub backend_node_id: super::super::dom::BackendNodeId,
1197 }
1198 #[allow(deprecated)]
1199 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1200 pub struct InspectModeCanceledEvent(pub Option<Json>);
1201}