| Index: third_party/WebKit/Source/core/inspector/protocol/Accessibility.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol/Accessibility.json b/third_party/WebKit/Source/core/inspector/protocol/Accessibility.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b6b0a518f77241031ec07919fcb362abf457f7c6
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol/Accessibility.json
|
| @@ -0,0 +1,351 @@
|
| +{
|
| + "domain": "Accessibility",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "hidden": true,
|
| + "dependencies": [
|
| + "DOM"
|
| + ],
|
| + "types": [
|
| + {
|
| + "id": "AXNodeId",
|
| + "type": "string",
|
| + "description": "Unique accessibility node identifier."
|
| + },
|
| + {
|
| + "id": "AXValueType",
|
| + "type": "string",
|
| + "enum": [
|
| + "boolean",
|
| + "tristate",
|
| + "booleanOrUndefined",
|
| + "idref",
|
| + "idrefList",
|
| + "integer",
|
| + "node",
|
| + "nodeList",
|
| + "number",
|
| + "string",
|
| + "computedString",
|
| + "token",
|
| + "tokenList",
|
| + "domRelation",
|
| + "role",
|
| + "internalRole",
|
| + "valueUndefined"
|
| + ],
|
| + "description": "Enum of possible property types."
|
| + },
|
| + {
|
| + "id": "AXValueSourceType",
|
| + "type": "string",
|
| + "enum": [
|
| + "attribute",
|
| + "implicit",
|
| + "style",
|
| + "contents",
|
| + "placeholder",
|
| + "relatedElement"
|
| + ],
|
| + "description": "Enum of possible property sources."
|
| + },
|
| + {
|
| + "id": "AXValueNativeSourceType",
|
| + "type": "string",
|
| + "enum": [
|
| + "figcaption",
|
| + "label",
|
| + "labelfor",
|
| + "labelwrapped",
|
| + "legend",
|
| + "tablecaption",
|
| + "title",
|
| + "other"
|
| + ],
|
| + "description": "Enum of possible native property sources (as a subtype of a particular AXValueSourceType)."
|
| + },
|
| + {
|
| + "id": "AXValueSource",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "type",
|
| + "$ref": "AXValueSourceType",
|
| + "description": "What type of source this is."
|
| + },
|
| + {
|
| + "name": "value",
|
| + "$ref": "AXValue",
|
| + "description": "The value of this property source.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "attribute",
|
| + "type": "string",
|
| + "description": "The name of the relevant attribute, if any.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "attributeValue",
|
| + "$ref": "AXValue",
|
| + "description": "The value of the relevant attribute, if any.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "superseded",
|
| + "type": "boolean",
|
| + "description": "Whether this source is superseded by a higher priority source.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "nativeSource",
|
| + "$ref": "AXValueNativeSourceType",
|
| + "description": "The native markup source for this value, e.g. a <label> element.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "nativeSourceValue",
|
| + "$ref": "AXValue",
|
| + "description": "The value, such as a node or node list, of the native source.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "invalid",
|
| + "type": "boolean",
|
| + "description": "Whether the value for this property is invalid.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "invalidReason",
|
| + "type": "string",
|
| + "description": "Reason for the value being invalid, if it is.",
|
| + "optional": true
|
| + }
|
| + ],
|
| + "description": "A single source for a computed AX property."
|
| + },
|
| + {
|
| + "id": "AXRelatedNode",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "backendNodeId",
|
| + "$ref": "DOM.BackendNodeId",
|
| + "description": "The BackendNodeId of the related node."
|
| + },
|
| + {
|
| + "name": "idref",
|
| + "type": "string",
|
| + "description": "The IDRef value provided, if any.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "text",
|
| + "type": "string",
|
| + "description": "The text alternative of this node in the current context.",
|
| + "optional": true
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "AXProperty",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "name",
|
| + "type": "string",
|
| + "description": "The name of this property."
|
| + },
|
| + {
|
| + "name": "value",
|
| + "$ref": "AXValue",
|
| + "description": "The value of this property."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "AXValue",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "type",
|
| + "$ref": "AXValueType",
|
| + "description": "The type of this value."
|
| + },
|
| + {
|
| + "name": "value",
|
| + "type": "any",
|
| + "description": "The computed value of this property.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "relatedNodes",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "AXRelatedNode"
|
| + },
|
| + "description": "One or more related nodes, if applicable.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "sources",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "AXValueSource"
|
| + },
|
| + "description": "The sources which contributed to the computation of this property.",
|
| + "optional": true
|
| + }
|
| + ],
|
| + "description": "A single computed AX property."
|
| + },
|
| + {
|
| + "id": "AXGlobalStates",
|
| + "type": "string",
|
| + "enum": [
|
| + "disabled",
|
| + "hidden",
|
| + "hiddenRoot",
|
| + "invalid"
|
| + ],
|
| + "description": "States which apply to every AX node."
|
| + },
|
| + {
|
| + "id": "AXLiveRegionAttributes",
|
| + "type": "string",
|
| + "enum": [
|
| + "live",
|
| + "atomic",
|
| + "relevant",
|
| + "busy",
|
| + "root"
|
| + ],
|
| + "description": "Attributes which apply to nodes in live regions."
|
| + },
|
| + {
|
| + "id": "AXWidgetAttributes",
|
| + "type": "string",
|
| + "enum": [
|
| + "autocomplete",
|
| + "haspopup",
|
| + "level",
|
| + "multiselectable",
|
| + "orientation",
|
| + "multiline",
|
| + "readonly",
|
| + "required",
|
| + "valuemin",
|
| + "valuemax",
|
| + "valuetext"
|
| + ],
|
| + "Description": "Attributes which apply to widgets."
|
| + },
|
| + {
|
| + "id": "AXWidgetStates",
|
| + "type": "string",
|
| + "enum": [
|
| + "checked",
|
| + "expanded",
|
| + "pressed",
|
| + "selected"
|
| + ],
|
| + "description": "States which apply to widgets."
|
| + },
|
| + {
|
| + "id": "AXRelationshipAttributes",
|
| + "type": "string",
|
| + "enum": [
|
| + "activedescendant",
|
| + "flowto",
|
| + "controls",
|
| + "describedby",
|
| + "labelledby",
|
| + "owns"
|
| + ],
|
| + "description": "Relationships between elements other than parent/child/sibling."
|
| + },
|
| + {
|
| + "id": "AXNode",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "nodeId",
|
| + "$ref": "AXNodeId",
|
| + "description": "Unique identifier for this node."
|
| + },
|
| + {
|
| + "name": "ignored",
|
| + "type": "boolean",
|
| + "description": "Whether this node is ignored for accessibility"
|
| + },
|
| + {
|
| + "name": "ignoredReasons",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "AXProperty"
|
| + },
|
| + "description": "Collection of reasons why this node is hidden.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "role",
|
| + "$ref": "AXValue",
|
| + "description": "This <code>Node</code>'s role, whether explicit or implicit.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "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
|
| + }
|
| + ],
|
| + "description": "A node in the accessibility tree."
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "getAXNode",
|
| + "parameters": [
|
| + {
|
| + "name": "nodeId",
|
| + "$ref": "DOM.NodeId",
|
| + "description": "ID of node to get accessibility node for."
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "accessibilityNode",
|
| + "$ref": "AXNode",
|
| + "description": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.",
|
| + "optional": true
|
| + }
|
| + ],
|
| + "description": "Fetches the accessibility node for this DOM node, if it exists.",
|
| + "hidden": true
|
| + }
|
| + ]
|
| +}
|
|
|