Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: Source/devtools/protocol.json

Issue 1076453004: Show reasons why nodes are ignored in accessibility sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications." 10 "description": "Enables inspector domain notifications."
(...skipping 5030 matching lines...) Expand 10 before | Expand all | Expand 10 after
5041 "enum": [ "checked", "expanded", "pressed", "selected" ], 5041 "enum": [ "checked", "expanded", "pressed", "selected" ],
5042 "description": "States which apply to widgets." 5042 "description": "States which apply to widgets."
5043 }, 5043 },
5044 { 5044 {
5045 "id": "AXRelationshipAttributes", 5045 "id": "AXRelationshipAttributes",
5046 "type": "string", 5046 "type": "string",
5047 "enum": [ "activedescendant", "flowto", "controls", "describedby ", "labelledby", "owns" ], 5047 "enum": [ "activedescendant", "flowto", "controls", "describedby ", "labelledby", "owns" ],
5048 "description": "Relationships between elements other than parent /child/sibling." 5048 "description": "Relationships between elements other than parent /child/sibling."
5049 }, 5049 },
5050 { 5050 {
5051 "id": "AXIgnoredReasons",
5052 "type": "string",
5053 "enum": [ "ariaHidden", "ariaHiddenRoot", "activeModalDialog", " ancestorDisallowsChild", "ignoredRole", "labelFor", "ignoredTagName", "canvasHei ght", "canvasWidth", "alt", "noTextAlternative", "focusable", "inheritsPresentat ion", "labelContainer", "emptyText", "noFallbackContent" ],
5054 "description": "Enum of possible reasons why a node could be ign ored for accessibility.o"
dmazzoni 2015/04/09 05:46:10 nit: "o" after period
5055 },
5056 {
5051 "id": "AXNode", 5057 "id": "AXNode",
5052 "type": "object", 5058 "type": "object",
5053 "properties": [ 5059 "properties": [
5054 { "name": "nodeId", "$ref": "AXNodeId", "description": "Uniq ue identifier for this node." }, 5060 { "name": "nodeId", "$ref": "AXNodeId", "description": "Uniq ue identifier for this node." },
5055 { "name": "role", "$ref": "AXValue", "description": "This <c ode>Node</code>'s role, whether explicit or implicit." }, 5061 { "name": "ignored", "type": "boolean", "description": "Whet her this node is ignored for accessibility" },
5062 { "name": "ignoredReasons", "type": "array", "items": { "$re f": "AXProperty" }, "description": "Collection of reasons why this node is hidde n.", "optional": true },
5063 { "name": "role", "$ref": "AXValue", "description": "This <c ode>Node</code>'s role, whether explicit or implicit.", "optional": true},
5056 { "name": "name", "$ref": "AXValue", "description": "The acc essible name for this <code>Node</code>.", "optional": true }, 5064 { "name": "name", "$ref": "AXValue", "description": "The acc essible name for this <code>Node</code>.", "optional": true },
5057 { "name": "description", "$ref": "AXValue", "description": " The accessible description for this <code>Node</code>.", "optional": true }, 5065 { "name": "description", "$ref": "AXValue", "description": " The accessible description for this <code>Node</code>.", "optional": true },
5058 { "name": "value", "$ref": "AXValue", "description": "The va lue for this <code>Node</code>.", "optional": true }, 5066 { "name": "value", "$ref": "AXValue", "description": "The va lue for this <code>Node</code>.", "optional": true },
5059 { "name": "help", "$ref": "AXValue", "description": "Help.", "optional": true }, 5067 { "name": "help", "$ref": "AXValue", "description": "Help.", "optional": true },
5060 { "name": "properties", "type": "array", "items": { "$ref": "AXProperty" }, "description": "All other properties" } 5068 { "name": "properties", "type": "array", "items": { "$ref": "AXProperty" }, "description": "All other properties", "optional": true }
5061 ], 5069 ],
5062 "description": "A node in the accessibility tree." 5070 "description": "A node in the accessibility tree."
5071 },
5072 {
5073 "id": "AXIgnoredNode",
5074 "type": "object",
5075 "properties": [
5076 { "name": "nodeId", "$ref": "AXNodeId", "description": "Uniq ue identifier for this ignored node." },
5077 { "name": "ariaHidden", "type": "boolean", "description": "W hether <code>aria-hidden</code> is set directly on this node.", "optional": true },
5078 { "name": "hiddenRoot", "$ref": "AXRelatedNode", "descriptio n": "The ancestor node which has <code>aria-hidden</code> set on it causing this node to be hidden.", "optional": true },
5079 { "name": "activeModalDialog", "$ref": "AXRelatedNode", "des cription": "The active modal dialog causing this element to be inert.", "optiona l": true },
5080 { "name": "ancestorDisallowsChild", "$ref": "AXRelatedNode", "description": "The ancestor element which disallows this child for any reason (presentational, barren, tree, popup menu items, static text child of menuitems. ", "optional": true },
5081 { "name": "ignoredRole", "$ref": "AXValue", "description": " The role of this node, if it is implicitly ignored.", "optional": true },
5082 { "name": "labelFor", "$ref": "AXRelatedNode", "description" : "The control for which this node is acting as a label.", "optional": true },
5083 { "name": "hiddenTagName", "type": "string", "description": "If this is a type of element (e.g. a span) which is always hidden.", "optional" : true },
dmazzoni 2015/04/09 05:53:16 This one is misleading, because <span> is not alwa
aboxhall 2015/04/09 20:15:36 Agreed; similarly for noTextAlternative.
5084 { "name": "canvasHeight", "type": "number", "description": " The height of the canvas, if <= 1.", "optional": true },
5085 { "name": "canvasWidth", "type": "number", "description": "T he width of the canvas, if <= 1.", "optional": true },
5086 { "name": "alt", "type": "boolean", "description": "Whether this is an image with empty alt text.", "optional": true },
dmazzoni 2015/04/09 05:53:16 Maybe call this emptyAlt?
aboxhall 2015/04/09 20:15:36 This object is actually going to disappear (I crea
5087 { "name": "noTextAlternative", "type": "boolean", "descripti on": "Whether this element lacks a text alternative.", "optional": true },
dmazzoni 2015/04/09 05:53:16 This also seems like a heuristic, because lots of
5088 { "name": "focusable", "type": "boolean", "description": "Wh ether this node is focusable.", "optional": true }
5089 ],
5090 "description": "An ignored node in the accessibility tree"
5063 } 5091 }
5064 ], 5092 ],
5065 "commands": [ 5093 "commands": [
5066 { 5094 {
5067 "name": "getAXNode", 5095 "name": "getAXNode",
5068 "parameters": [ 5096 "parameters": [
5069 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "ID of node to get accessibility node for." } 5097 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "ID of node to get accessibility node for." }
5070 ], 5098 ],
5071 "returns": [ 5099 "returns": [
5072 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5100 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5073 ], 5101 ],
5074 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5102 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5075 "hidden": true 5103 "hidden": true
5076 } 5104 }
5077 ] 5105 ]
5078 }] 5106 }]
5079 } 5107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698