/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // The `Description` below is imported from Chromium Code. // TODO(ato): We send back a description of the protocol // when the user makes the initial HTTP request, // but the following is pure fiction. const Description = { "domains": [ { "domain": "Accessibility", "experimental": true, "dependencies": [ "DOM" ], "types": [ { "id": "AXNodeId", "description": "Unique accessibility node identifier.", "type": "string" }, { "id": "AXValueType", "description": "Enum of possible property types.", "type": "string", "enum": [ "boolean", "tristate", "booleanOrUndefined", "idref", "idrefList", "integer", "node", "nodeList", "number", "string", "computedString", "token", "tokenList", "domRelation", "role", "internalRole", "valueUndefined" ] }, { "id": "AXValueSourceType", "description": "Enum of possible property sources.", "type": "string", "enum": [ "attribute", "implicit", "style", "contents", "placeholder", "relatedElement" ] }, { "id": "AXValueNativeSourceType", "description": "Enum of possible native property sources (as a subtype of a particular AXValueSourceType).", "type": "string", "enum": [ "figcaption", "label", "labelfor", "labelwrapped", "legend", "tablecaption", "title", "other" ] }, { "id": "AXValueSource", "description": "A single source for a computed AX property.", "type": "object", "properties": [ { "name": "type", "description": "What type of source this is.", "$ref": "AXValueSourceType" }, { "name": "value", "description": "The value of this property source.", "optional": true, "$ref": "AXValue" }, { "name": "attribute", "description": "The name of the relevant attribute, if any.", "optional": true, "type": "string" }, { "name": "attributeValue", "description": "The value of the relevant attribute, if any.", "optional": true, "$ref": "AXValue" }, { "name": "superseded", "description": "Whether this source is superseded by a higher priority source.", "optional": true, "type": "boolean" }, { "name": "nativeSource", "description": "The native markup source for this value, e.g. a