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