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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityStrings.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: all done Created 4 years, 1 month 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4
5 WebInspector.AccessibilityStrings = {}; 4 WebInspector.AccessibilityStrings = {};
6 5
7 WebInspector.AccessibilityStrings.AXAttributes = { 6 WebInspector.AccessibilityStrings.AXAttributes = {
8 "disabled" : { 7 'disabled': {
9 name : "Disabled", 8 name: 'Disabled',
10 description : "If true, this element currently cannot be interacted with .", 9 description: 'If true, this element currently cannot be interacted with.',
11 group : "AXGlobalStates" 10 group: 'AXGlobalStates'
12 }, 11 },
13 "invalid" : { 12 'invalid': {
14 name : "Invalid user entry", 13 name: 'Invalid user entry',
15 description : "If true, this element's user-entered value does not confo rm to validation requirement.", 14 description: 'If true, this element\'s user-entered value does not conform t o validation requirement.',
16 group : "AXGlobalStates" 15 group: 'AXGlobalStates'
17 }, 16 },
18 "live" : { 17 'live': {
19 name : "Live region", 18 name: 'Live region',
20 description : "Whether and what priority of live updates may be expected for this element.", 19 description: 'Whether and what priority of live updates may be expected for this element.',
21 group : "AXLiveRegionAttributes" 20 group: 'AXLiveRegionAttributes'
22 }, 21 },
23 "atomic" : { 22 'atomic': {
24 name : "Atomic (live regions)", 23 name: 'Atomic (live regions)',
25 description : "If this element may receive live updates, whether the ent ire live region should be presented to the user on changes, or only changed node s.", 24 description:
26 group : "AXLiveRegionAttributes" 25 'If this element may receive live updates, whether the entire live regio n should be presented to the user on changes, or only changed nodes.',
27 }, 26 group: 'AXLiveRegionAttributes'
28 "relevant" : { 27 },
29 name : "Relevant (live regions)", 28 'relevant': {
30 description : "If this element may receive live updates, what type of up dates should trigger a notification.", 29 name: 'Relevant (live regions)',
31 group : "AXLiveRegionAttributes" 30 description: 'If this element may receive live updates, what type of updates should trigger a notification.',
32 }, 31 group: 'AXLiveRegionAttributes'
33 "busy" : { 32 },
34 name : "Busy (live regions)", 33 'busy': {
35 description : "Whether this element or its subtree are currently being u pdated (and thus may be in an inconsistent state).", 34 name: 'Busy (live regions)',
36 group : "AXLiveRegionAttributes" 35 description:
37 }, 36 'Whether this element or its subtree are currently being updated (and th us may be in an inconsistent state).',
38 "root" : { 37 group: 'AXLiveRegionAttributes'
39 name : "Live region root", 38 },
40 description : "If this element may receive live updates, the root elemen t of the containing live region.", 39 'root': {
41 group : "AXLiveRegionAttributes" 40 name: 'Live region root',
42 }, 41 description: 'If this element may receive live updates, the root element of the containing live region.',
43 "autocomplete" : { 42 group: 'AXLiveRegionAttributes'
44 name : "Has autocomplete", 43 },
45 description : "Whether and what type of autocomplete suggestions are cur rently provided by this element.", 44 'autocomplete': {
46 group : "AXWidgetAttributes" 45 name: 'Has autocomplete',
47 }, 46 description: 'Whether and what type of autocomplete suggestions are currentl y provided by this element.',
48 "haspopup" : { 47 group: 'AXWidgetAttributes'
49 name : "Has popup", 48 },
50 description : "Whether this element has caused some kind of pop-up (such as a menu) to appear.", 49 'haspopup': {
51 group : "AXWidgetAttributes" 50 name: 'Has popup',
52 }, 51 description: 'Whether this element has caused some kind of pop-up (such as a menu) to appear.',
53 "level" : { 52 group: 'AXWidgetAttributes'
54 name : "Level", 53 },
55 description : "The hierarchical level of this element.", 54 'level': {name: 'Level', description: 'The hierarchical level of this element. ', group: 'AXWidgetAttributes'},
56 group : "AXWidgetAttributes" 55 'multiselectable': {
57 }, 56 name: 'Multi-selectable',
58 "multiselectable" : { 57 description: 'Whether a user may select more than one option from this widge t.',
59 name : "Multi-selectable", 58 group: 'AXWidgetAttributes'
60 description : "Whether a user may select more than one option from this widget.", 59 },
61 group : "AXWidgetAttributes" 60 'orientation': {
62 }, 61 name: 'Orientation',
63 "orientation" : { 62 description: 'Whether this linear element\'s orientation is horizontal or ve rtical.',
64 name : "Orientation", 63 group: 'AXWidgetAttributes'
65 description : "Whether this linear element's orientation is horizontal o r vertical.", 64 },
66 group : "AXWidgetAttributes" 65 'multiline': {
67 }, 66 name: 'Multi-line',
68 "multiline" : { 67 description: 'Whether this textbox may have more than one line.',
69 name : "Multi-line", 68 group: 'AXWidgetAttributes'
70 description : "Whether this textbox may have more than one line.", 69 },
71 group : "AXWidgetAttributes" 70 'readonly': {
72 }, 71 name: 'Read-only',
73 "readonly" : { 72 description: 'If true, this element may be interacted with, but its value ca nnot be changed.',
74 name : "Read-only", 73 group: 'AXWidgetAttributes'
75 description : "If true, this element may be interacted with, but its val ue cannot be changed.", 74 },
76 group : "AXWidgetAttributes" 75 'required': {
77 }, 76 name: 'Required',
78 "required" : { 77 description: 'Whether this element is a required field in a form.',
79 name : "Required", 78 group: 'AXWidgetAttributes'
80 description : "Whether this element is a required field in a form.", 79 },
81 group : "AXWidgetAttributes" 80 'valuemin': {
82 }, 81 name: 'Minimum value',
83 "valuemin" : { 82 description: 'For a range widget, the minimum allowed value.',
84 name : "Minimum value", 83 group: 'AXWidgetAttributes'
85 description : "For a range widget, the minimum allowed value.", 84 },
86 group : "AXWidgetAttributes" 85 'valuemax': {
87 }, 86 name: 'Maximum value',
88 "valuemax" : { 87 description: 'For a range widget, the maximum allowed value.',
89 name : "Maximum value", 88 group: 'AXWidgetAttributes'
90 description : "For a range widget, the maximum allowed value.", 89 },
91 group : "AXWidgetAttributes" 90 'valuetext': {
92 }, 91 name: 'Value description',
93 "valuetext" : { 92 description: 'A human-readable version of the value of a range widget (where necessary).',
94 name : "Value description", 93 group: 'AXWidgetAttributes'
95 description : "A human-readable version of the value of a range widget ( where necessary).", 94 },
96 group : "AXWidgetAttributes" 95 'checked': {
97 }, 96 name: 'Checked',
98 "checked" : { 97 description:
99 name : "Checked", 98 'Whether this checkbox, radio button or tree item is checked, unchecked, or mixed (e.g. has both checked and un-checked children).',
100 description : "Whether this checkbox, radio button or tree item is check ed, unchecked, or mixed (e.g. has both checked and un-checked children).", 99 group: 'AXWidgetStates'
101 group : "AXWidgetStates" 100 },
102 }, 101 'expanded': {
103 "expanded" : { 102 name: 'Expanded',
104 name : "Expanded", 103 description: 'Whether this element, or another grouping element it controls, is expanded.',
105 description : "Whether this element, or another grouping element it cont rols, is expanded.", 104 group: 'AXWidgetStates'
106 group : "AXWidgetStates" 105 },
107 }, 106 'pressed': {
108 "pressed" : { 107 name: 'Pressed',
109 name : "Pressed", 108 description: 'Whether this toggle button is currently in a pressed state.',
110 description : "Whether this toggle button is currently in a pressed stat e.", 109 group: 'AXWidgetStates'
111 group : "AXWidgetStates" 110 },
112 }, 111 'selected': {
113 "selected" : { 112 name: 'Selected',
114 name : "Selected", 113 description: 'Whether the option represented by this element is currently se lected.',
115 description : "Whether the option represented by this element is current ly selected.", 114 group: 'AXWidgetStates'
116 group : "AXWidgetStates" 115 },
117 }, 116 'activedescendant': {
118 "activedescendant" : { 117 name: 'Active descendant',
119 name : "Active descendant", 118 description: 'The descendant of this element which is active; i.e. the eleme nt to which focus should be delegated.',
120 description : "The descendant of this element which is active; i.e. the element to which focus should be delegated.", 119 group: 'AXRelationshipAttributes'
121 group : "AXRelationshipAttributes" 120 },
122 }, 121 'flowto': {
123 "flowto" : { 122 name: 'Flows to',
124 name : "Flows to", 123 description:
125 description : "Element to which the user may choose to navigate after th is one, instead of the next element in the DOM order.", 124 'Element to which the user may choose to navigate after this one, instea d of the next element in the DOM order.',
126 group : "AXRelationshipAttributes" 125 group: 'AXRelationshipAttributes'
127 }, 126 },
128 "controls" : { 127 'controls': {
129 name : "Controls", 128 name: 'Controls',
130 description : "Element or elements whose content or presence is/are cont rolled by this widget.", 129 description: 'Element or elements whose content or presence is/are controlle d by this widget.',
131 group : "AXRelationshipAttributes" 130 group: 'AXRelationshipAttributes'
132 }, 131 },
133 "describedby" : { 132 'describedby': {
134 name : "Described by", 133 name: 'Described by',
135 description : "Element or elements which form the description of this el ement.", 134 description: 'Element or elements which form the description of this element .',
136 group : "AXRelationshipAttributes" 135 group: 'AXRelationshipAttributes'
137 }, 136 },
138 "labelledby" : { 137 'labelledby': {
139 name : "Labeled by", 138 name: 'Labeled by',
140 description : "Element or elements which may form the name of this eleme nt.", 139 description: 'Element or elements which may form the name of this element.',
141 group : "AXRelationshipAttributes" 140 group: 'AXRelationshipAttributes'
142 }, 141 },
143 "owns" : { 142 'owns': {
144 name : "Owns", 143 name: 'Owns',
145 description : "Element or elements which should be considered descendant s of this element, despite not being descendants in the DOM.", 144 description:
146 group : "AXRelationshipAttributes" 145 'Element or elements which should be considered descendants of this elem ent, despite not being descendants in the DOM.',
147 }, 146 group: 'AXRelationshipAttributes'
148 "name": { 147 },
149 name : "Name", 148 'name': {name: 'Name', description: 'The computed name of this element.', grou p: 'Default'},
150 description : "The computed name of this element.", 149 'role': {
151 group : "Default" 150 name: 'Role',
152 }, 151 description:
153 "role": { 152 'Indicates the purpose of this element, such as a user interface idiom f or a widget, or structural role within a document.',
154 name: "Role", 153 group: 'Default'
155 description: "Indicates the purpose of this element, such as a user inte rface idiom for a widget, or structural role within a document.", 154 },
156 group: "Default" 155 'value': {
157 }, 156 name: 'Value',
158 "value": { 157 description:
159 name: "Value", 158 'The value of this element; this may be user-provided or developer-provi ded, depending on the element.',
160 description: "The value of this element; this may be user-provided or de veloper-provided, depending on the element.", 159 group: 'Default'
161 group: "Default" 160 },
162 }, 161 'help': {name: 'Help', description: 'The computed help text for this element.' , group: 'Default'},
163 "help": { 162 'description': {name: 'Description', description: 'The accessible description for this element.', group: 'Default'}
164 name: "Help",
165 description: "The computed help text for this element.",
166 group: "Default"
167 },
168 "description": {
169 name: "Description",
170 description: "The accessible description for this element.",
171 group: "Default"
172 }
173 }; 163 };
174 164
175 WebInspector.AccessibilityStrings.AXSourceTypes = { 165 WebInspector.AccessibilityStrings.AXSourceTypes = {
176 "attribute": { 166 'attribute': {name: 'From attribute', description: 'Value from attribute.'},
177 name: "From attribute", 167 'implicit': {
178 description: "Value from attribute." 168 name: 'Implicit',
179 }, 169 description: 'Implicit value.',
180 "implicit": { 170 },
181 name: "Implicit", 171 'style': {name: 'From style', description: 'Value from style.'},
182 description: "Implicit value.", 172 'contents': {name: 'Contents', description: 'Value from element contents.'},
183 }, 173 'placeholder': {name: 'From placeholder attribute', description: 'Value from p laceholder attribute.'},
184 "style": { 174 'relatedElement': {name: 'Related element', description: 'Value from related e lement.'}
185 name: "From style",
186 description: "Value from style."
187 },
188 "contents": {
189 name: "Contents",
190 description: "Value from element contents."
191 },
192 "placeholder": {
193 name: "From placeholder attribute",
194 description: "Value from placeholder attribute."
195 },
196 "relatedElement": {
197 name: "Related element",
198 description: "Value from related element."
199 }
200 }; 175 };
201 176
202 WebInspector.AccessibilityStrings.AXNativeSourceTypes = { 177 WebInspector.AccessibilityStrings.AXNativeSourceTypes = {
203 "figcaption": { 178 'figcaption': {name: 'From caption', description: 'Value from figcaption eleme nt.'},
204 name: "From caption", 179 'label': {name: 'From label', description: 'Value from label element.'},
205 description: "Value from figcaption element." 180 'labelfor': {name: 'From label (for)', description: 'Value from label element with for= attribute.'},
206 }, 181 'labelwrapped': {name: 'From label (wrapped)', description: 'Value from label element wrapped.'},
207 "label": { 182 'tablecaption': {name: 'From caption', description: 'Value from table caption. '},
208 name: "From label", 183 'title': {'name': 'From title', 'description': 'Value from title attribute.'},
209 description: "Value from label element." 184 'other': {name: 'From native HTML', description: 'Value from native HTML (unkn own source).'},
210 },
211 "labelfor": {
212 name: "From label (for)",
213 description: "Value from label element with for= attribute."
214 },
215 "labelwrapped": {
216 name: "From label (wrapped)",
217 description: "Value from label element wrapped."
218 },
219 "tablecaption": {
220 name: "From caption",
221 description: "Value from table caption."
222 },
223 "title": {
224 "name": "From title",
225 "description": "Value from title attribute."
226 },
227 "other": {
228 name: "From native HTML",
229 description: "Value from native HTML (unknown source)."
230 },
231 185
232 }; 186 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698