devtools-protocol 0.0.939404 → 0.0.939725
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -442,6 +442,40 @@
|
|
|
442
442
|
}
|
|
443
443
|
]
|
|
444
444
|
},
|
|
445
|
+
{
|
|
446
|
+
"name": "getAXNodeAndAncestors",
|
|
447
|
+
"description": "Fetches a node and all ancestors up to and including the root.\nRequires `enable()` to have been called previously.",
|
|
448
|
+
"experimental": true,
|
|
449
|
+
"parameters": [
|
|
450
|
+
{
|
|
451
|
+
"name": "nodeId",
|
|
452
|
+
"description": "Identifier of the node to get.",
|
|
453
|
+
"optional": true,
|
|
454
|
+
"$ref": "DOM.NodeId"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "backendNodeId",
|
|
458
|
+
"description": "Identifier of the backend node to get.",
|
|
459
|
+
"optional": true,
|
|
460
|
+
"$ref": "DOM.BackendNodeId"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "objectId",
|
|
464
|
+
"description": "JavaScript object id of the node wrapper to get.",
|
|
465
|
+
"optional": true,
|
|
466
|
+
"$ref": "Runtime.RemoteObjectId"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"returns": [
|
|
470
|
+
{
|
|
471
|
+
"name": "nodes",
|
|
472
|
+
"type": "array",
|
|
473
|
+
"items": {
|
|
474
|
+
"$ref": "AXNode"
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
},
|
|
445
479
|
{
|
|
446
480
|
"name": "getChildAXNodes",
|
|
447
481
|
"description": "Fetches a particular accessibility node by AXNodeId.\nRequires `enable()` to have been called previously.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -232,6 +232,19 @@ experimental domain Accessibility
|
|
|
232
232
|
returns
|
|
233
233
|
AXNode node
|
|
234
234
|
|
|
235
|
+
# Fetches a node and all ancestors up to and including the root.
|
|
236
|
+
# Requires `enable()` to have been called previously.
|
|
237
|
+
experimental command getAXNodeAndAncestors
|
|
238
|
+
parameters
|
|
239
|
+
# Identifier of the node to get.
|
|
240
|
+
optional DOM.NodeId nodeId
|
|
241
|
+
# Identifier of the backend node to get.
|
|
242
|
+
optional DOM.BackendNodeId backendNodeId
|
|
243
|
+
# JavaScript object id of the node wrapper to get.
|
|
244
|
+
optional Runtime.RemoteObjectId objectId
|
|
245
|
+
returns
|
|
246
|
+
array of AXNode nodes
|
|
247
|
+
|
|
235
248
|
# Fetches a particular accessibility node by AXNodeId.
|
|
236
249
|
# Requires `enable()` to have been called previously.
|
|
237
250
|
experimental command getChildAXNodes
|
|
@@ -1251,6 +1251,14 @@ export namespace ProtocolMapping {
|
|
|
1251
1251
|
paramsType: [Protocol.Accessibility.GetRootAXNodeRequest?];
|
|
1252
1252
|
returnType: Protocol.Accessibility.GetRootAXNodeResponse;
|
|
1253
1253
|
};
|
|
1254
|
+
/**
|
|
1255
|
+
* Fetches a node and all ancestors up to and including the root.
|
|
1256
|
+
* Requires `enable()` to have been called previously.
|
|
1257
|
+
*/
|
|
1258
|
+
'Accessibility.getAXNodeAndAncestors': {
|
|
1259
|
+
paramsType: [Protocol.Accessibility.GetAXNodeAndAncestorsRequest?];
|
|
1260
|
+
returnType: Protocol.Accessibility.GetAXNodeAndAncestorsResponse;
|
|
1261
|
+
};
|
|
1254
1262
|
/**
|
|
1255
1263
|
* Fetches a particular accessibility node by AXNodeId.
|
|
1256
1264
|
* Requires `enable()` to have been called previously.
|
|
@@ -632,6 +632,12 @@ export namespace ProtocolProxyApi {
|
|
|
632
632
|
*/
|
|
633
633
|
getRootAXNode(params: Protocol.Accessibility.GetRootAXNodeRequest): Promise<Protocol.Accessibility.GetRootAXNodeResponse>;
|
|
634
634
|
|
|
635
|
+
/**
|
|
636
|
+
* Fetches a node and all ancestors up to and including the root.
|
|
637
|
+
* Requires `enable()` to have been called previously.
|
|
638
|
+
*/
|
|
639
|
+
getAXNodeAndAncestors(params: Protocol.Accessibility.GetAXNodeAndAncestorsRequest): Promise<Protocol.Accessibility.GetAXNodeAndAncestorsResponse>;
|
|
640
|
+
|
|
635
641
|
/**
|
|
636
642
|
* Fetches a particular accessibility node by AXNodeId.
|
|
637
643
|
* Requires `enable()` to have been called previously.
|
package/types/protocol.d.ts
CHANGED
|
@@ -2709,6 +2709,25 @@ export namespace Protocol {
|
|
|
2709
2709
|
node: AXNode;
|
|
2710
2710
|
}
|
|
2711
2711
|
|
|
2712
|
+
export interface GetAXNodeAndAncestorsRequest {
|
|
2713
|
+
/**
|
|
2714
|
+
* Identifier of the node to get.
|
|
2715
|
+
*/
|
|
2716
|
+
nodeId?: DOM.NodeId;
|
|
2717
|
+
/**
|
|
2718
|
+
* Identifier of the backend node to get.
|
|
2719
|
+
*/
|
|
2720
|
+
backendNodeId?: DOM.BackendNodeId;
|
|
2721
|
+
/**
|
|
2722
|
+
* JavaScript object id of the node wrapper to get.
|
|
2723
|
+
*/
|
|
2724
|
+
objectId?: Runtime.RemoteObjectId;
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
export interface GetAXNodeAndAncestorsResponse {
|
|
2728
|
+
nodes: AXNode[];
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2712
2731
|
export interface GetChildAXNodesRequest {
|
|
2713
2732
|
id: AXNodeId;
|
|
2714
2733
|
/**
|