Chromium Code Reviews| Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
| diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| index 91d1c6f7f9b2c3fcd69a7d1018f2f7a6be681adf..2af81016de4966d4721fdae7e5cf80f27495e46f 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -4377,22 +4377,25 @@ |
| { "name": "name", "$ref": "AXValue", "description": "The accessible name for this <code>Node</code>.", "optional": true }, |
| { "name": "description", "$ref": "AXValue", "description": "The accessible description for this <code>Node</code>.", "optional": true }, |
| { "name": "value", "$ref": "AXValue", "description": "The value for this <code>Node</code>.", "optional": true }, |
| - { "name": "properties", "type": "array", "items": { "$ref": "AXProperty" }, "description": "All other properties", "optional": true } |
| + { "name": "properties", "type": "array", "items": { "$ref": "AXProperty" }, "description": "All other properties", "optional": true }, |
| + { "name": "parentId", "$ref": "AXNodeId", "description": "The ID of this node's parent node.", "optional": true }, |
| + { "name": "childIds", "type": "array", "items": { "$ref": "AXNodeId" }, "description": "IDs for each of this node's child nodes.", "optional": true }, |
|
dgozman
2016/10/31 21:36:30
It's usually unnecessary and error-prone to have b
aboxhall
2016/10/31 22:45:15
Hm, yeah, I can probably do without parentId.
|
| + { "name": "backendDomNodeId", "$ref": "DOM.BackendNodeId", "description": "The backend ID for the associated DOM node, if any.", "optional": true } |
| ], |
| "description": "A node in the accessibility tree." |
| } |
| ], |
| "commands": [ |
| { |
| - "name": "getAXNodeChain", |
| + "name": "getPartialAXTree", |
| "parameters": [ |
| - { "name": "nodeId", "$ref": "DOM.NodeId", "description": "ID of node to get accessibility node for." }, |
| - { "name": "fetchAncestors", "type": "boolean", "description": "Whether to also push down a partial tree (parent chain)." } |
| + { "name": "nodeId", "$ref": "DOM.NodeId", "description": "ID of node to get the partial accessibility tree for." }, |
| + { "name": "fetchRelatives", "type": "boolean", "description": "Whether to fetch this nodes ancestors, siblings and children. Defaults to true.", "optional": true } |
| ], |
| "returns": [ |
| - { "name": "nodes", "type": "array", "items": { "$ref": "AXNode" }, "description": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists, plus ancestors if requested." } |
| + { "name": "nodes", "type": "array", "items": { "$ref": "AXNode" }, "description": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists, plus its ancestors, siblings and children, if requested." } |
| ], |
| - "description": "Fetches the accessibility node for this DOM node, if it exists.", |
| + "description": "Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.", |
| "experimental": true |
| } |
| ] |