Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/third_party/closure/goog/a11y/aria/attributes.js
1865 views
1
// Copyright 2013 The Closure Library Authors. All Rights Reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS-IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
16
/**
17
* @fileoverview The file contains generated enumerations for ARIA states
18
* and properties as defined by W3C ARIA standard:
19
* http://www.w3.org/TR/wai-aria/.
20
*
21
* This is auto-generated code. Do not manually edit! For more details
22
* about how to edit it via the generator check go/closure-ariagen.
23
*/
24
25
goog.provide('goog.a11y.aria.AutoCompleteValues');
26
goog.provide('goog.a11y.aria.CheckedValues');
27
goog.provide('goog.a11y.aria.DropEffectValues');
28
goog.provide('goog.a11y.aria.ExpandedValues');
29
goog.provide('goog.a11y.aria.GrabbedValues');
30
goog.provide('goog.a11y.aria.InvalidValues');
31
goog.provide('goog.a11y.aria.LivePriority');
32
goog.provide('goog.a11y.aria.OrientationValues');
33
goog.provide('goog.a11y.aria.PressedValues');
34
goog.provide('goog.a11y.aria.RelevantValues');
35
goog.provide('goog.a11y.aria.SelectedValues');
36
goog.provide('goog.a11y.aria.SortValues');
37
goog.provide('goog.a11y.aria.State');
38
39
40
/**
41
* ARIA states and properties.
42
* @enum {string}
43
*/
44
goog.a11y.aria.State = {
45
// ARIA property for setting the currently active descendant of an element,
46
// for example the selected item in a list box. Value: ID of an element.
47
ACTIVEDESCENDANT: 'activedescendant',
48
49
// ARIA property that, if true, indicates that all of a changed region should
50
// be presented, instead of only parts. Value: one of {true, false}.
51
ATOMIC: 'atomic',
52
53
// ARIA property to specify that input completion is provided. Value:
54
// one of {'inline', 'list', 'both', 'none'}.
55
AUTOCOMPLETE: 'autocomplete',
56
57
// ARIA state to indicate that an element and its subtree are being updated.
58
// Value: one of {true, false}.
59
BUSY: 'busy',
60
61
// ARIA state for a checked item. Value: one of {'true', 'false', 'mixed',
62
// undefined}.
63
CHECKED: 'checked',
64
65
// ARIA property that identifies the element or elements whose contents or
66
// presence are controlled by this element.
67
// Value: space-separated IDs of other elements.
68
CONTROLS: 'controls',
69
70
// ARIA property that identifies the element or elements that describe
71
// this element. Value: space-separated IDs of other elements.
72
DESCRIBEDBY: 'describedby',
73
74
// ARIA state for a disabled item. Value: one of {true, false}.
75
DISABLED: 'disabled',
76
77
// ARIA property that indicates what functions can be performed when a
78
// dragged object is released on the drop target. Value: one of
79
// {'copy', 'move', 'link', 'execute', 'popup', 'none'}.
80
DROPEFFECT: 'dropeffect',
81
82
// ARIA state for setting whether the element like a tree node is expanded.
83
// Value: one of {true, false, undefined}.
84
EXPANDED: 'expanded',
85
86
// ARIA property that identifies the next element (or elements) in the
87
// recommended reading order of content. Value: space-separated ids of
88
// elements to flow to.
89
FLOWTO: 'flowto',
90
91
// ARIA state that indicates an element's "grabbed" state in drag-and-drop.
92
// Value: one of {true, false, undefined}.
93
GRABBED: 'grabbed',
94
95
// ARIA property indicating whether the element has a popup.
96
// Value: one of {true, false}.
97
HASPOPUP: 'haspopup',
98
99
// ARIA state indicating that the element is not visible or perceivable
100
// to any user. Value: one of {true, false}.
101
HIDDEN: 'hidden',
102
103
// ARIA state indicating that the entered value does not conform. Value:
104
// one of {false, true, 'grammar', 'spelling'}
105
INVALID: 'invalid',
106
107
// ARIA property that provides a label to override any other text, value, or
108
// contents used to describe this element. Value: string.
109
LABEL: 'label',
110
111
// ARIA property for setting the element which labels another element.
112
// Value: space-separated IDs of elements.
113
LABELLEDBY: 'labelledby',
114
115
// ARIA property for setting the level of an element in the hierarchy.
116
// Value: integer.
117
LEVEL: 'level',
118
119
// ARIA property indicating that an element will be updated, and
120
// describes the types of updates the user agents, assistive technologies,
121
// and user can expect from the live region. Value: one of {'off', 'polite',
122
// 'assertive'}.
123
LIVE: 'live',
124
125
// ARIA property indicating whether a text box can accept multiline input.
126
// Value: one of {true, false}.
127
MULTILINE: 'multiline',
128
129
// ARIA property indicating if the user may select more than one item.
130
// Value: one of {true, false}.
131
MULTISELECTABLE: 'multiselectable',
132
133
// ARIA property indicating if the element is horizontal or vertical.
134
// Value: one of {'vertical', 'horizontal'}.
135
ORIENTATION: 'orientation',
136
137
// ARIA property creating a visual, functional, or contextual parent/child
138
// relationship when the DOM hierarchy can't be used to represent it.
139
// Value: Space-separated IDs of elements.
140
OWNS: 'owns',
141
142
// ARIA property that defines an element's number of position in a list.
143
// Value: integer.
144
POSINSET: 'posinset',
145
146
// ARIA state for a pressed item.
147
// Value: one of {true, false, undefined, 'mixed'}.
148
PRESSED: 'pressed',
149
150
// ARIA property indicating that an element is not editable.
151
// Value: one of {true, false}.
152
READONLY: 'readonly',
153
154
// ARIA property indicating that change notifications within this subtree
155
// of a live region should be announced. Value: one of {'additions',
156
// 'removals', 'text', 'all', 'additions text'}.
157
RELEVANT: 'relevant',
158
159
// ARIA property indicating that user input is required on this element
160
// before a form may be submitted. Value: one of {true, false}.
161
REQUIRED: 'required',
162
163
// ARIA state for setting the currently selected item in the list.
164
// Value: one of {true, false, undefined}.
165
SELECTED: 'selected',
166
167
// ARIA property defining the number of items in a list. Value: integer.
168
SETSIZE: 'setsize',
169
170
// ARIA property indicating if items are sorted. Value: one of {'ascending',
171
// 'descending', 'none', 'other'}.
172
SORT: 'sort',
173
174
// ARIA property for slider maximum value. Value: number.
175
VALUEMAX: 'valuemax',
176
177
// ARIA property for slider minimum value. Value: number.
178
VALUEMIN: 'valuemin',
179
180
// ARIA property for slider active value. Value: number.
181
VALUENOW: 'valuenow',
182
183
// ARIA property for slider active value represented as text.
184
// Value: string.
185
VALUETEXT: 'valuetext'
186
};
187
188
189
/**
190
* ARIA state values for AutoCompleteValues.
191
* @enum {string}
192
*/
193
goog.a11y.aria.AutoCompleteValues = {
194
// The system provides text after the caret as a suggestion
195
// for how to complete the field.
196
INLINE: 'inline',
197
// A list of choices appears from which the user can choose,
198
// but the edit box retains focus.
199
LIST: 'list',
200
// A list of choices appears and the currently selected suggestion
201
// also appears inline.
202
BOTH: 'both',
203
// No input completion suggestions are provided.
204
NONE: 'none'
205
};
206
207
208
/**
209
* ARIA state values for DropEffectValues.
210
* @enum {string}
211
*/
212
goog.a11y.aria.DropEffectValues = {
213
// A duplicate of the source object will be dropped into the target.
214
COPY: 'copy',
215
// The source object will be removed from its current location
216
// and dropped into the target.
217
MOVE: 'move',
218
// A reference or shortcut to the dragged object
219
// will be created in the target object.
220
LINK: 'link',
221
// A function supported by the drop target is
222
// executed, using the drag source as an input.
223
EXECUTE: 'execute',
224
// There is a popup menu or dialog that allows the user to choose
225
// one of the drag operations (copy, move, link, execute) and any other
226
// drag functionality, such as cancel.
227
POPUP: 'popup',
228
// No operation can be performed; effectively
229
// cancels the drag operation if an attempt is made to drop on this object.
230
NONE: 'none'
231
};
232
233
234
/**
235
* ARIA state values for LivePriority.
236
* @enum {string}
237
*/
238
goog.a11y.aria.LivePriority = {
239
// Updates to the region will not be presented to the user
240
// unless the assitive technology is currently focused on that region.
241
OFF: 'off',
242
// (Background change) Assistive technologies SHOULD announce
243
// updates at the next graceful opportunity, such as at the end of
244
// speaking the current sentence or when the user pauses typing.
245
POLITE: 'polite',
246
// This information has the highest priority and assistive
247
// technologies SHOULD notify the user immediately.
248
// Because an interruption may disorient users or cause them to not complete
249
// their current task, authors SHOULD NOT use the assertive value unless the
250
// interruption is imperative.
251
ASSERTIVE: 'assertive'
252
};
253
254
255
/**
256
* ARIA state values for OrientationValues.
257
* @enum {string}
258
*/
259
goog.a11y.aria.OrientationValues = {
260
// The element is oriented vertically.
261
VERTICAL: 'vertical',
262
// The element is oriented horizontally.
263
HORIZONTAL: 'horizontal'
264
};
265
266
267
/**
268
* ARIA state values for RelevantValues.
269
* @enum {string}
270
*/
271
goog.a11y.aria.RelevantValues = {
272
// Element nodes are added to the DOM within the live region.
273
ADDITIONS: 'additions',
274
// Text or element nodes within the live region are removed from the DOM.
275
REMOVALS: 'removals',
276
// Text is added to any DOM descendant nodes of the live region.
277
TEXT: 'text',
278
// Equivalent to the combination of all values, "additions removals text".
279
ALL: 'all'
280
};
281
282
283
/**
284
* ARIA state values for SortValues.
285
* @enum {string}
286
*/
287
goog.a11y.aria.SortValues = {
288
// Items are sorted in ascending order by this column.
289
ASCENDING: 'ascending',
290
// Items are sorted in descending order by this column.
291
DESCENDING: 'descending',
292
// There is no defined sort applied to the column.
293
NONE: 'none',
294
// A sort algorithm other than ascending or descending has been applied.
295
OTHER: 'other'
296
};
297
298
299
/**
300
* ARIA state values for CheckedValues.
301
* @enum {string}
302
*/
303
goog.a11y.aria.CheckedValues = {
304
// The selectable element is checked.
305
TRUE: 'true',
306
// The selectable element is not checked.
307
FALSE: 'false',
308
// Indicates a mixed mode value for a tri-state
309
// checkbox or menuitemcheckbox.
310
MIXED: 'mixed',
311
// The element does not support being checked.
312
UNDEFINED: 'undefined'
313
};
314
315
316
/**
317
* ARIA state values for ExpandedValues.
318
* @enum {string}
319
*/
320
goog.a11y.aria.ExpandedValues = {
321
// The element, or another grouping element it controls, is expanded.
322
TRUE: 'true',
323
// The element, or another grouping element it controls, is collapsed.
324
FALSE: 'false',
325
// The element, or another grouping element
326
// it controls, is neither expandable nor collapsible; all its
327
// child elements are shown or there are no child elements.
328
UNDEFINED: 'undefined'
329
};
330
331
332
/**
333
* ARIA state values for GrabbedValues.
334
* @enum {string}
335
*/
336
goog.a11y.aria.GrabbedValues = {
337
// Indicates that the element has been "grabbed" for dragging.
338
TRUE: 'true',
339
// Indicates that the element supports being dragged.
340
FALSE: 'false',
341
// Indicates that the element does not support being dragged.
342
UNDEFINED: 'undefined'
343
};
344
345
346
/**
347
* ARIA state values for InvalidValues.
348
* @enum {string}
349
*/
350
goog.a11y.aria.InvalidValues = {
351
// There are no detected errors in the value.
352
FALSE: 'false',
353
// The value entered by the user has failed validation.
354
TRUE: 'true',
355
// A grammatical error was detected.
356
GRAMMAR: 'grammar',
357
// A spelling error was detected.
358
SPELLING: 'spelling'
359
};
360
361
362
/**
363
* ARIA state values for PressedValues.
364
* @enum {string}
365
*/
366
goog.a11y.aria.PressedValues = {
367
// The element is pressed.
368
TRUE: 'true',
369
// The element supports being pressed but is not currently pressed.
370
FALSE: 'false',
371
// Indicates a mixed mode value for a tri-state toggle button.
372
MIXED: 'mixed',
373
// The element does not support being pressed.
374
UNDEFINED: 'undefined'
375
};
376
377
378
/**
379
* ARIA state values for SelectedValues.
380
* @enum {string}
381
*/
382
goog.a11y.aria.SelectedValues = {
383
// The selectable element is selected.
384
TRUE: 'true',
385
// The selectable element is not selected.
386
FALSE: 'false',
387
// The element is not selectable.
388
UNDEFINED: 'undefined'
389
};
390
391