Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/third_party/closure/goog/a11y/aria/roles.js
4284 views
1
/**
2
* @license
3
* Copyright The Closure Library Authors.
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
8
/**
9
* @fileoverview The file contains generated enumerations for ARIA roles
10
* as defined by W3C ARIA standard: http://www.w3.org/TR/wai-aria/.
11
*
12
* This is auto-generated code. Do not manually edit! For more details
13
* about how to edit it via the generator check go/closure-ariagen.
14
*/
15
16
goog.provide('goog.a11y.aria.Role');
17
18
19
/**
20
* ARIA role values.
21
* @enum {string}
22
*/
23
goog.a11y.aria.Role = {
24
// ARIA role for an alert element that doesn't need to be explicitly closed.
25
ALERT: 'alert',
26
27
// ARIA role for an alert dialog element that takes focus and must be closed.
28
ALERTDIALOG: 'alertdialog',
29
30
// ARIA role for an application that implements its own keyboard navigation.
31
APPLICATION: 'application',
32
33
// ARIA role for an article.
34
ARTICLE: 'article',
35
36
// ARIA role for a banner containing mostly site content, not page content.
37
BANNER: 'banner',
38
39
// ARIA role for a button element.
40
BUTTON: 'button',
41
42
// ARIA role for a checkbox button element; use with the CHECKED state.
43
CHECKBOX: 'checkbox',
44
45
// ARIA role for a column header of a table or grid.
46
COLUMNHEADER: 'columnheader',
47
48
// ARIA role for a combo box element.
49
COMBOBOX: 'combobox',
50
51
// ARIA role for a supporting section of the document.
52
COMPLEMENTARY: 'complementary',
53
54
// ARIA role for a large perceivable region that contains information
55
// about the parent document.
56
CONTENTINFO: 'contentinfo',
57
58
// ARIA role for a definition of a term or concept.
59
DEFINITION: 'definition',
60
61
// ARIA role for a dialog, some descendant must take initial focus.
62
DIALOG: 'dialog',
63
64
// ARIA role for a directory, like a table of contents.
65
DIRECTORY: 'directory',
66
67
// ARIA role for a part of a page that's a document, not a web application.
68
DOCUMENT: 'document',
69
70
// ARIA role for a landmark region logically considered one form.
71
FORM: 'form',
72
73
// ARIA role for an interactive control of tabular data.
74
GRID: 'grid',
75
76
// ARIA role for a cell in a grid.
77
GRIDCELL: 'gridcell',
78
79
// ARIA role for a group of related elements like tree item siblings.
80
GROUP: 'group',
81
82
// ARIA role for a heading element.
83
HEADING: 'heading',
84
85
// ARIA role for a container of elements that together comprise one image.
86
IMG: 'img',
87
88
// ARIA role for a link.
89
LINK: 'link',
90
91
// ARIA role for a list of non-interactive list items.
92
LIST: 'list',
93
94
// ARIA role for a listbox.
95
LISTBOX: 'listbox',
96
97
// ARIA role for a list item.
98
LISTITEM: 'listitem',
99
100
// ARIA role for a live region where new information is added.
101
LOG: 'log',
102
103
// ARIA landmark role for the main content in a document. Use only once.
104
MAIN: 'main',
105
106
// ARIA role for a live region of non-essential information that changes.
107
MARQUEE: 'marquee',
108
109
// ARIA role for a mathematical expression.
110
MATH: 'math',
111
112
// ARIA role for a popup menu.
113
MENU: 'menu',
114
115
// ARIA role for a menubar element containing menu elements.
116
MENUBAR: 'menubar',
117
118
// ARIA role for menu item elements.
119
MENU_ITEM: 'menuitem',
120
121
// ARIA role for a checkbox box element inside a menu.
122
MENU_ITEM_CHECKBOX: 'menuitemcheckbox',
123
124
// ARIA role for a radio button element inside a menu.
125
MENU_ITEM_RADIO: 'menuitemradio',
126
127
// ARIA landmark role for a collection of navigation links.
128
NAVIGATION: 'navigation',
129
130
// ARIA role for a section ancillary to the main content.
131
NOTE: 'note',
132
133
// ARIA role for option items that are children of combobox, listbox, menu,
134
// radiogroup, or tree elements.
135
OPTION: 'option',
136
137
// ARIA role for ignorable cosmetic elements with no semantic significance.
138
PRESENTATION: 'presentation',
139
140
// ARIA role for a progress bar element.
141
PROGRESSBAR: 'progressbar',
142
143
// ARIA role for a radio button element.
144
RADIO: 'radio',
145
146
// ARIA role for a group of connected radio button elements.
147
RADIOGROUP: 'radiogroup',
148
149
// ARIA role for an important region of the page.
150
REGION: 'region',
151
152
// ARIA role for a row of cells in a grid.
153
ROW: 'row',
154
155
// ARIA role for a group of one or more rows in a grid.
156
ROWGROUP: 'rowgroup',
157
158
// ARIA role for a row header of a table or grid.
159
ROWHEADER: 'rowheader',
160
161
// ARIA role for a scrollbar element.
162
SCROLLBAR: 'scrollbar',
163
164
// ARIA landmark role for a part of the page providing search functionality.
165
SEARCH: 'search',
166
167
// ARIA role for a menu separator.
168
SEPARATOR: 'separator',
169
170
// ARIA role for a slider.
171
SLIDER: 'slider',
172
173
// ARIA role for a spin button.
174
SPINBUTTON: 'spinbutton',
175
176
// ARIA role for a live region with advisory info less severe than an alert.
177
STATUS: 'status',
178
179
// ARIA role for a tab button.
180
TAB: 'tab',
181
182
// ARIA role for a tab bar (i.e. a list of tab buttons).
183
TAB_LIST: 'tablist',
184
185
// ARIA role for a tab page (i.e. the element holding tab contents).
186
TAB_PANEL: 'tabpanel',
187
188
// ARIA role for a textbox element.
189
TEXTBOX: 'textbox',
190
191
// ARIA role for a textinfo element.
192
TEXTINFO: 'textinfo',
193
194
// ARIA role for an element displaying elapsed time or time remaining.
195
TIMER: 'timer',
196
197
// ARIA role for a toolbar element.
198
TOOLBAR: 'toolbar',
199
200
// ARIA role for a tooltip element.
201
TOOLTIP: 'tooltip',
202
203
// ARIA role for a tree.
204
TREE: 'tree',
205
206
// ARIA role for a grid whose rows can be expanded and collapsed like a tree.
207
TREEGRID: 'treegrid',
208
209
// ARIA role for a tree item that sometimes may be expanded or collapsed.
210
TREEITEM: 'treeitem'
211
};
212
213