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;
14pub type AxNodeId = String;
15#[allow(deprecated)]
16#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
17pub enum AxValueType {
18 #[serde(rename = "boolean")]
19 Boolean,
20 #[serde(rename = "tristate")]
21 Tristate,
22 #[serde(rename = "booleanOrUndefined")]
23 BooleanOrUndefined,
24 #[serde(rename = "idref")]
25 Idref,
26 #[serde(rename = "idrefList")]
27 IdrefList,
28 #[serde(rename = "integer")]
29 Integer,
30 #[serde(rename = "node")]
31 Node,
32 #[serde(rename = "nodeList")]
33 NodeList,
34 #[serde(rename = "number")]
35 Number,
36 #[serde(rename = "string")]
37 String,
38 #[serde(rename = "computedString")]
39 ComputedString,
40 #[serde(rename = "token")]
41 Token,
42 #[serde(rename = "tokenList")]
43 TokenList,
44 #[serde(rename = "domRelation")]
45 DomRelation,
46 #[serde(rename = "role")]
47 Role,
48 #[serde(rename = "internalRole")]
49 InternalRole,
50 #[serde(rename = "valueUndefined")]
51 ValueUndefined,
52}
53#[allow(deprecated)]
54#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
55pub enum AxValueSourceType {
56 #[serde(rename = "attribute")]
57 Attribute,
58 #[serde(rename = "implicit")]
59 Implicit,
60 #[serde(rename = "style")]
61 Style,
62 #[serde(rename = "contents")]
63 Contents,
64 #[serde(rename = "placeholder")]
65 Placeholder,
66 #[serde(rename = "relatedElement")]
67 RelatedElement,
68}
69#[allow(deprecated)]
70#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
71pub enum AxValueNativeSourceType {
72 #[serde(rename = "description")]
73 Description,
74 #[serde(rename = "figcaption")]
75 Figcaption,
76 #[serde(rename = "label")]
77 Label,
78 #[serde(rename = "labelfor")]
79 Labelfor,
80 #[serde(rename = "labelwrapped")]
81 Labelwrapped,
82 #[serde(rename = "legend")]
83 Legend,
84 #[serde(rename = "rubyannotation")]
85 Rubyannotation,
86 #[serde(rename = "tablecaption")]
87 Tablecaption,
88 #[serde(rename = "title")]
89 Title,
90 #[serde(rename = "other")]
91 Other,
92}
93#[allow(deprecated)]
94#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
95pub enum AxPropertyName {
96 #[serde(rename = "actions")]
97 Actions,
98 #[serde(rename = "busy")]
99 Busy,
100 #[serde(rename = "disabled")]
101 Disabled,
102 #[serde(rename = "editable")]
103 Editable,
104 #[serde(rename = "focusable")]
105 Focusable,
106 #[serde(rename = "focused")]
107 Focused,
108 #[serde(rename = "hidden")]
109 Hidden,
110 #[serde(rename = "hiddenRoot")]
111 HiddenRoot,
112 #[serde(rename = "invalid")]
113 Invalid,
114 #[serde(rename = "keyshortcuts")]
115 Keyshortcuts,
116 #[serde(rename = "settable")]
117 Settable,
118 #[serde(rename = "roledescription")]
119 Roledescription,
120 #[serde(rename = "live")]
121 Live,
122 #[serde(rename = "atomic")]
123 Atomic,
124 #[serde(rename = "relevant")]
125 Relevant,
126 #[serde(rename = "root")]
127 Root,
128 #[serde(rename = "autocomplete")]
129 Autocomplete,
130 #[serde(rename = "hasPopup")]
131 HasPopup,
132 #[serde(rename = "level")]
133 Level,
134 #[serde(rename = "multiselectable")]
135 Multiselectable,
136 #[serde(rename = "orientation")]
137 Orientation,
138 #[serde(rename = "multiline")]
139 Multiline,
140 #[serde(rename = "readonly")]
141 Readonly,
142 #[serde(rename = "required")]
143 Required,
144 #[serde(rename = "valuemin")]
145 Valuemin,
146 #[serde(rename = "valuemax")]
147 Valuemax,
148 #[serde(rename = "valuetext")]
149 Valuetext,
150 #[serde(rename = "checked")]
151 Checked,
152 #[serde(rename = "expanded")]
153 Expanded,
154 #[serde(rename = "modal")]
155 Modal,
156 #[serde(rename = "pressed")]
157 Pressed,
158 #[serde(rename = "selected")]
159 Selected,
160 #[serde(rename = "activedescendant")]
161 Activedescendant,
162 #[serde(rename = "controls")]
163 Controls,
164 #[serde(rename = "describedby")]
165 Describedby,
166 #[serde(rename = "details")]
167 Details,
168 #[serde(rename = "errormessage")]
169 Errormessage,
170 #[serde(rename = "flowto")]
171 Flowto,
172 #[serde(rename = "labelledby")]
173 Labelledby,
174 #[serde(rename = "owns")]
175 Owns,
176 #[serde(rename = "url")]
177 Url,
178 #[serde(rename = "activeFullscreenElement")]
179 ActiveFullscreenElement,
180 #[serde(rename = "activeModalDialog")]
181 ActiveModalDialog,
182 #[serde(rename = "activeAriaModalDialog")]
183 ActiveAriaModalDialog,
184 #[serde(rename = "ariaHiddenElement")]
185 AriaHiddenElement,
186 #[serde(rename = "ariaHiddenSubtree")]
187 AriaHiddenSubtree,
188 #[serde(rename = "emptyAlt")]
189 EmptyAlt,
190 #[serde(rename = "emptyText")]
191 EmptyText,
192 #[serde(rename = "inertElement")]
193 InertElement,
194 #[serde(rename = "inertSubtree")]
195 InertSubtree,
196 #[serde(rename = "labelContainer")]
197 LabelContainer,
198 #[serde(rename = "labelFor")]
199 LabelFor,
200 #[serde(rename = "notRendered")]
201 NotRendered,
202 #[serde(rename = "notVisible")]
203 NotVisible,
204 #[serde(rename = "presentationalRole")]
205 PresentationalRole,
206 #[serde(rename = "probablyPresentational")]
207 ProbablyPresentational,
208 #[serde(rename = "inactiveCarouselTabContent")]
209 InactiveCarouselTabContent,
210 #[serde(rename = "uninteresting")]
211 Uninteresting,
212}
213#[allow(deprecated)]
214#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
215#[builder(setter(into, strip_option))]
216#[serde(rename_all = "camelCase")]
217#[doc = "A single source for a computed AX property."]
218pub struct AxValueSource {
219 #[doc = "What type of source this is."]
220 pub r#type: AxValueSourceType,
221 #[builder(default)]
222 #[serde(skip_serializing_if = "Option::is_none")]
223 #[doc = "The value of this property source."]
224 pub value: Option<AxValue>,
225 #[builder(default)]
226 #[serde(skip_serializing_if = "Option::is_none")]
227 #[serde(default)]
228 #[doc = "The name of the relevant attribute, if any."]
229 pub attribute: Option<String>,
230 #[builder(default)]
231 #[serde(skip_serializing_if = "Option::is_none")]
232 #[doc = "The value of the relevant attribute, if any."]
233 pub attribute_value: Option<AxValue>,
234 #[builder(default)]
235 #[serde(skip_serializing_if = "Option::is_none")]
236 #[serde(default)]
237 #[doc = "Whether this source is superseded by a higher priority source."]
238 pub superseded: Option<bool>,
239 #[builder(default)]
240 #[serde(skip_serializing_if = "Option::is_none")]
241 #[doc = "The native markup source for this value, e.g. a `\\<label\\>` element."]
242 pub native_source: Option<AxValueNativeSourceType>,
243 #[builder(default)]
244 #[serde(skip_serializing_if = "Option::is_none")]
245 #[doc = "The value, such as a node or node list, of the native source."]
246 pub native_source_value: Option<AxValue>,
247 #[builder(default)]
248 #[serde(skip_serializing_if = "Option::is_none")]
249 #[serde(default)]
250 #[doc = "Whether the value for this property is invalid."]
251 pub invalid: Option<bool>,
252 #[builder(default)]
253 #[serde(skip_serializing_if = "Option::is_none")]
254 #[serde(default)]
255 #[doc = "Reason for the value being invalid, if it is."]
256 pub invalid_reason: Option<String>,
257}
258#[allow(deprecated)]
259#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
260#[builder(setter(into, strip_option))]
261#[serde(rename_all = "camelCase")]
262pub struct AxRelatedNode {
263 #[doc = "The BackendNodeId of the related DOM node."]
264 #[serde(rename = "backendDOMNodeId")]
265 pub backend_dom_node_id: dom::BackendNodeId,
266 #[builder(default)]
267 #[serde(skip_serializing_if = "Option::is_none")]
268 #[serde(default)]
269 #[doc = "The IDRef value provided, if any."]
270 pub idref: Option<String>,
271 #[builder(default)]
272 #[serde(skip_serializing_if = "Option::is_none")]
273 #[serde(default)]
274 #[doc = "The text alternative of this node in the current context."]
275 pub text: Option<String>,
276}
277#[allow(deprecated)]
278#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
279#[builder(setter(into, strip_option))]
280#[serde(rename_all = "camelCase")]
281pub struct AxProperty {
282 #[doc = "The name of this property."]
283 pub name: AxPropertyName,
284 #[doc = "The value of this property."]
285 pub value: AxValue,
286}
287#[allow(deprecated)]
288#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
289#[builder(setter(into, strip_option))]
290#[serde(rename_all = "camelCase")]
291#[doc = "A single computed AX property."]
292pub struct AxValue {
293 #[doc = "The type of this value."]
294 pub r#type: AxValueType,
295 #[builder(default)]
296 #[serde(skip_serializing_if = "Option::is_none")]
297 #[serde(default)]
298 #[doc = "The computed value of this property."]
299 pub value: Option<Json>,
300 #[builder(default)]
301 #[serde(skip_serializing_if = "Option::is_none")]
302 #[doc = "One or more related nodes, if applicable."]
303 pub related_nodes: Option<Vec<AxRelatedNode>>,
304 #[builder(default)]
305 #[serde(skip_serializing_if = "Option::is_none")]
306 #[doc = "The sources which contributed to the computation of this property."]
307 pub sources: Option<Vec<AxValueSource>>,
308}
309#[allow(deprecated)]
310#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
311#[builder(setter(into, strip_option))]
312#[serde(rename_all = "camelCase")]
313#[doc = "A node in the accessibility tree."]
314pub struct AxNode {
315 #[doc = "Unique identifier for this node."]
316 pub node_id: AxNodeId,
317 #[serde(default)]
318 #[doc = "Whether this node is ignored for accessibility"]
319 pub ignored: bool,
320 #[builder(default)]
321 #[serde(skip_serializing_if = "Option::is_none")]
322 #[doc = "Collection of reasons why this node is hidden."]
323 pub ignored_reasons: Option<Vec<AxProperty>>,
324 #[builder(default)]
325 #[serde(skip_serializing_if = "Option::is_none")]
326 #[doc = "This `Node`'s role, whether explicit or implicit."]
327 pub role: Option<AxValue>,
328 #[builder(default)]
329 #[serde(skip_serializing_if = "Option::is_none")]
330 #[doc = "This `Node`'s Chrome raw role."]
331 pub chrome_role: Option<AxValue>,
332 #[builder(default)]
333 #[serde(skip_serializing_if = "Option::is_none")]
334 #[doc = "The accessible name for this `Node`."]
335 pub name: Option<AxValue>,
336 #[builder(default)]
337 #[serde(skip_serializing_if = "Option::is_none")]
338 #[doc = "The accessible description for this `Node`."]
339 pub description: Option<AxValue>,
340 #[builder(default)]
341 #[serde(skip_serializing_if = "Option::is_none")]
342 #[doc = "The value for this `Node`."]
343 pub value: Option<AxValue>,
344 #[builder(default)]
345 #[serde(skip_serializing_if = "Option::is_none")]
346 #[doc = "All other properties"]
347 pub properties: Option<Vec<AxProperty>>,
348 #[builder(default)]
349 #[serde(skip_serializing_if = "Option::is_none")]
350 #[doc = "ID for this node's parent."]
351 pub parent_id: Option<AxNodeId>,
352 #[builder(default)]
353 #[serde(skip_serializing_if = "Option::is_none")]
354 #[doc = "IDs for each of this node's child nodes."]
355 pub child_ids: Option<Vec<AxNodeId>>,
356 #[builder(default)]
357 #[serde(skip_serializing_if = "Option::is_none")]
358 #[doc = "The backend ID for the associated DOM node, if any."]
359 #[serde(rename = "backendDOMNodeId")]
360 pub backend_dom_node_id: Option<dom::BackendNodeId>,
361 #[builder(default)]
362 #[serde(skip_serializing_if = "Option::is_none")]
363 #[doc = "The frame ID for the frame associated with this nodes document."]
364 pub frame_id: Option<page::FrameId>,
365}
366#[allow(deprecated)]
367#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
368pub struct Disable(pub Option<Json>);
369#[allow(deprecated)]
370#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
371pub struct Enable(pub Option<Json>);
372#[allow(deprecated)]
373#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
374#[builder(setter(into, strip_option))]
375#[serde(rename_all = "camelCase")]
376#[doc = "Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists."]
377pub struct GetPartialAXTree {
378 #[builder(default)]
379 #[serde(skip_serializing_if = "Option::is_none")]
380 #[doc = "Identifier of the node to get the partial accessibility tree for."]
381 pub node_id: Option<dom::NodeId>,
382 #[builder(default)]
383 #[serde(skip_serializing_if = "Option::is_none")]
384 #[doc = "Identifier of the backend node to get the partial accessibility tree for."]
385 pub backend_node_id: Option<dom::BackendNodeId>,
386 #[builder(default)]
387 #[serde(skip_serializing_if = "Option::is_none")]
388 #[doc = "JavaScript object id of the node wrapper to get the partial accessibility tree for."]
389 pub object_id: Option<runtime::RemoteObjectId>,
390 #[builder(default)]
391 #[serde(skip_serializing_if = "Option::is_none")]
392 #[serde(default)]
393 #[doc = "Whether to fetch this node's ancestors, siblings and children. Defaults to true."]
394 pub fetch_relatives: Option<bool>,
395}
396#[allow(deprecated)]
397#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
398#[builder(setter(into, strip_option))]
399#[serde(rename_all = "camelCase")]
400#[doc = "Fetches the entire accessibility tree for the root Document"]
401pub struct GetFullAXTree {
402 #[builder(default)]
403 #[serde(skip_serializing_if = "Option::is_none")]
404 #[serde(default)]
405 #[doc = "The maximum depth at which descendants of the root node should be retrieved.\n If omitted, the full tree is returned."]
406 pub depth: Option<JsUInt>,
407 #[builder(default)]
408 #[serde(skip_serializing_if = "Option::is_none")]
409 #[doc = "The frame for whose document the AX tree should be retrieved.\n If omitted, the root frame is used."]
410 pub frame_id: Option<page::FrameId>,
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 = "Fetches the root node.\n Requires `enable()` to have been called previously."]
417pub struct GetRootAXNode {
418 #[builder(default)]
419 #[serde(skip_serializing_if = "Option::is_none")]
420 #[doc = "The frame in whose document the node resides.\n If omitted, the root frame is used."]
421 pub frame_id: Option<page::FrameId>,
422}
423#[allow(deprecated)]
424#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
425#[builder(setter(into, strip_option))]
426#[serde(rename_all = "camelCase")]
427#[doc = "Fetches a node and all ancestors up to and including the root.\n Requires `enable()` to have been called previously."]
428pub struct GetAXNodeAndAncestors {
429 #[builder(default)]
430 #[serde(skip_serializing_if = "Option::is_none")]
431 #[doc = "Identifier of the node to get."]
432 pub node_id: Option<dom::NodeId>,
433 #[builder(default)]
434 #[serde(skip_serializing_if = "Option::is_none")]
435 #[doc = "Identifier of the backend node to get."]
436 pub backend_node_id: Option<dom::BackendNodeId>,
437 #[builder(default)]
438 #[serde(skip_serializing_if = "Option::is_none")]
439 #[doc = "JavaScript object id of the node wrapper to get."]
440 pub object_id: Option<runtime::RemoteObjectId>,
441}
442#[allow(deprecated)]
443#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
444#[builder(setter(into, strip_option))]
445#[serde(rename_all = "camelCase")]
446#[doc = "Fetches a particular accessibility node by AXNodeId.\n Requires `enable()` to have been called previously."]
447pub struct GetChildAXNodes {
448 pub id: AxNodeId,
449 #[builder(default)]
450 #[serde(skip_serializing_if = "Option::is_none")]
451 #[doc = "The frame in whose document the node resides.\n If omitted, the root frame is used."]
452 pub frame_id: Option<page::FrameId>,
453}
454#[allow(deprecated)]
455#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
456#[builder(setter(into, strip_option))]
457#[serde(rename_all = "camelCase")]
458#[doc = "Query a DOM node's accessibility subtree for accessible name and role.\n This command computes the name and role for all nodes in the subtree, including those that are\n ignored for accessibility, and returns those that match the specified name and role. If no DOM\n node is specified, or the DOM node does not exist, the command returns an error. If neither\n `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree."]
459pub struct QueryAXTree {
460 #[builder(default)]
461 #[serde(skip_serializing_if = "Option::is_none")]
462 #[doc = "Identifier of the node for the root to query."]
463 pub node_id: Option<dom::NodeId>,
464 #[builder(default)]
465 #[serde(skip_serializing_if = "Option::is_none")]
466 #[doc = "Identifier of the backend node for the root to query."]
467 pub backend_node_id: Option<dom::BackendNodeId>,
468 #[builder(default)]
469 #[serde(skip_serializing_if = "Option::is_none")]
470 #[doc = "JavaScript object id of the node wrapper for the root to query."]
471 pub object_id: Option<runtime::RemoteObjectId>,
472 #[builder(default)]
473 #[serde(skip_serializing_if = "Option::is_none")]
474 #[serde(default)]
475 #[doc = "Find nodes with this computed name."]
476 pub accessible_name: Option<String>,
477 #[builder(default)]
478 #[serde(skip_serializing_if = "Option::is_none")]
479 #[serde(default)]
480 #[doc = "Find nodes with this computed role."]
481 pub role: Option<String>,
482}
483#[allow(deprecated)]
484#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
485#[doc = "Disables the accessibility domain."]
486pub struct DisableReturnObject(pub Option<Json>);
487#[allow(deprecated)]
488#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
489#[doc = "Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls.\n This turns on accessibility for the page, which can impact performance until accessibility is disabled."]
490pub struct EnableReturnObject(pub Option<Json>);
491#[allow(deprecated)]
492#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
493#[serde(rename_all = "camelCase")]
494#[doc = "Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists."]
495pub struct GetPartialAXTreeReturnObject {
496 #[doc = "The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and\n children, if requested."]
497 pub nodes: Vec<AxNode>,
498}
499#[allow(deprecated)]
500#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
501#[serde(rename_all = "camelCase")]
502#[doc = "Fetches the entire accessibility tree for the root Document"]
503pub struct GetFullAXTreeReturnObject {
504 pub nodes: Vec<AxNode>,
505}
506#[allow(deprecated)]
507#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
508#[serde(rename_all = "camelCase")]
509#[doc = "Fetches the root node.\n Requires `enable()` to have been called previously."]
510pub struct GetRootAXNodeReturnObject {
511 pub node: AxNode,
512}
513#[allow(deprecated)]
514#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
515#[serde(rename_all = "camelCase")]
516#[doc = "Fetches a node and all ancestors up to and including the root.\n Requires `enable()` to have been called previously."]
517pub struct GetAXNodeAndAncestorsReturnObject {
518 pub nodes: Vec<AxNode>,
519}
520#[allow(deprecated)]
521#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
522#[serde(rename_all = "camelCase")]
523#[doc = "Fetches a particular accessibility node by AXNodeId.\n Requires `enable()` to have been called previously."]
524pub struct GetChildAXNodesReturnObject {
525 pub nodes: Vec<AxNode>,
526}
527#[allow(deprecated)]
528#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
529#[serde(rename_all = "camelCase")]
530#[doc = "Query a DOM node's accessibility subtree for accessible name and role.\n This command computes the name and role for all nodes in the subtree, including those that are\n ignored for accessibility, and returns those that match the specified name and role. If no DOM\n node is specified, or the DOM node does not exist, the command returns an error. If neither\n `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree."]
531pub struct QueryAXTreeReturnObject {
532 #[doc = "A list of `Accessibility.AXNode` matching the specified attributes,\n including nodes that are ignored for accessibility."]
533 pub nodes: Vec<AxNode>,
534}
535#[allow(deprecated)]
536impl Method for Disable {
537 const NAME: &'static str = "Accessibility.disable";
538 type ReturnObject = DisableReturnObject;
539}
540#[allow(deprecated)]
541impl Method for Enable {
542 const NAME: &'static str = "Accessibility.enable";
543 type ReturnObject = EnableReturnObject;
544}
545#[allow(deprecated)]
546impl Method for GetPartialAXTree {
547 const NAME: &'static str = "Accessibility.getPartialAXTree";
548 type ReturnObject = GetPartialAXTreeReturnObject;
549}
550#[allow(deprecated)]
551impl Method for GetFullAXTree {
552 const NAME: &'static str = "Accessibility.getFullAXTree";
553 type ReturnObject = GetFullAXTreeReturnObject;
554}
555#[allow(deprecated)]
556impl Method for GetRootAXNode {
557 const NAME: &'static str = "Accessibility.getRootAXNode";
558 type ReturnObject = GetRootAXNodeReturnObject;
559}
560#[allow(deprecated)]
561impl Method for GetAXNodeAndAncestors {
562 const NAME: &'static str = "Accessibility.getAXNodeAndAncestors";
563 type ReturnObject = GetAXNodeAndAncestorsReturnObject;
564}
565#[allow(deprecated)]
566impl Method for GetChildAXNodes {
567 const NAME: &'static str = "Accessibility.getChildAXNodes";
568 type ReturnObject = GetChildAXNodesReturnObject;
569}
570#[allow(deprecated)]
571impl Method for QueryAXTree {
572 const NAME: &'static str = "Accessibility.queryAXTree";
573 type ReturnObject = QueryAXTreeReturnObject;
574}
575#[allow(dead_code)]
576pub mod events {
577 #[allow(unused_imports)]
578 use super::super::types::*;
579 #[allow(unused_imports)]
580 use derive_builder::Builder;
581 #[allow(unused_imports)]
582 use serde::{Deserialize, Serialize};
583 #[allow(unused_imports)]
584 use serde_json::Value as Json;
585 #[allow(deprecated)]
586 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
587 pub struct LoadCompleteEvent {
588 pub params: LoadCompleteEventParams,
589 }
590 #[allow(deprecated)]
591 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
592 #[serde(rename_all = "camelCase")]
593 pub struct LoadCompleteEventParams {
594 #[doc = "New document root node."]
595 pub root: super::AxNode,
596 }
597 #[allow(deprecated)]
598 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
599 pub struct NodesUpdatedEvent {
600 pub params: NodesUpdatedEventParams,
601 }
602 #[allow(deprecated)]
603 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
604 #[serde(rename_all = "camelCase")]
605 pub struct NodesUpdatedEventParams {
606 #[doc = "Updated node data."]
607 pub nodes: Vec<super::AxNode>,
608 }
609}