roles.js 5.9 KB

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