Path: blob/trunk/third_party/closure/goog/a11y/aria/roles.js
1865 views
// Copyright 2013 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.131415/**16* @fileoverview The file contains generated enumerations for ARIA roles17* as defined by W3C ARIA standard: http://www.w3.org/TR/wai-aria/.18*19* This is auto-generated code. Do not manually edit! For more details20* about how to edit it via the generator check go/closure-ariagen.21*/2223goog.provide('goog.a11y.aria.Role');242526/**27* ARIA role values.28* @enum {string}29*/30goog.a11y.aria.Role = {31// ARIA role for an alert element that doesn't need to be explicitly closed.32ALERT: 'alert',3334// ARIA role for an alert dialog element that takes focus and must be closed.35ALERTDIALOG: 'alertdialog',3637// ARIA role for an application that implements its own keyboard navigation.38APPLICATION: 'application',3940// ARIA role for an article.41ARTICLE: 'article',4243// ARIA role for a banner containing mostly site content, not page content.44BANNER: 'banner',4546// ARIA role for a button element.47BUTTON: 'button',4849// ARIA role for a checkbox button element; use with the CHECKED state.50CHECKBOX: 'checkbox',5152// ARIA role for a column header of a table or grid.53COLUMNHEADER: 'columnheader',5455// ARIA role for a combo box element.56COMBOBOX: 'combobox',5758// ARIA role for a supporting section of the document.59COMPLEMENTARY: 'complementary',6061// ARIA role for a large perceivable region that contains information62// about the parent document.63CONTENTINFO: 'contentinfo',6465// ARIA role for a definition of a term or concept.66DEFINITION: 'definition',6768// ARIA role for a dialog, some descendant must take initial focus.69DIALOG: 'dialog',7071// ARIA role for a directory, like a table of contents.72DIRECTORY: 'directory',7374// ARIA role for a part of a page that's a document, not a web application.75DOCUMENT: 'document',7677// ARIA role for a landmark region logically considered one form.78FORM: 'form',7980// ARIA role for an interactive control of tabular data.81GRID: 'grid',8283// ARIA role for a cell in a grid.84GRIDCELL: 'gridcell',8586// ARIA role for a group of related elements like tree item siblings.87GROUP: 'group',8889// ARIA role for a heading element.90HEADING: 'heading',9192// ARIA role for a container of elements that together comprise one image.93IMG: 'img',9495// ARIA role for a link.96LINK: 'link',9798// ARIA role for a list of non-interactive list items.99LIST: 'list',100101// ARIA role for a listbox.102LISTBOX: 'listbox',103104// ARIA role for a list item.105LISTITEM: 'listitem',106107// ARIA role for a live region where new information is added.108LOG: 'log',109110// ARIA landmark role for the main content in a document. Use only once.111MAIN: 'main',112113// ARIA role for a live region of non-essential information that changes.114MARQUEE: 'marquee',115116// ARIA role for a mathematical expression.117MATH: 'math',118119// ARIA role for a popup menu.120MENU: 'menu',121122// ARIA role for a menubar element containing menu elements.123MENUBAR: 'menubar',124125// ARIA role for menu item elements.126MENU_ITEM: 'menuitem',127128// ARIA role for a checkbox box element inside a menu.129MENU_ITEM_CHECKBOX: 'menuitemcheckbox',130131// ARIA role for a radio button element inside a menu.132MENU_ITEM_RADIO: 'menuitemradio',133134// ARIA landmark role for a collection of navigation links.135NAVIGATION: 'navigation',136137// ARIA role for a section ancillary to the main content.138NOTE: 'note',139140// ARIA role for option items that are children of combobox, listbox, menu,141// radiogroup, or tree elements.142OPTION: 'option',143144// ARIA role for ignorable cosmetic elements with no semantic significance.145PRESENTATION: 'presentation',146147// ARIA role for a progress bar element.148PROGRESSBAR: 'progressbar',149150// ARIA role for a radio button element.151RADIO: 'radio',152153// ARIA role for a group of connected radio button elements.154RADIOGROUP: 'radiogroup',155156// ARIA role for an important region of the page.157REGION: 'region',158159// ARIA role for a row of cells in a grid.160ROW: 'row',161162// ARIA role for a group of one or more rows in a grid.163ROWGROUP: 'rowgroup',164165// ARIA role for a row header of a table or grid.166ROWHEADER: 'rowheader',167168// ARIA role for a scrollbar element.169SCROLLBAR: 'scrollbar',170171// ARIA landmark role for a part of the page providing search functionality.172SEARCH: 'search',173174// ARIA role for a menu separator.175SEPARATOR: 'separator',176177// ARIA role for a slider.178SLIDER: 'slider',179180// ARIA role for a spin button.181SPINBUTTON: 'spinbutton',182183// ARIA role for a live region with advisory info less severe than an alert.184STATUS: 'status',185186// ARIA role for a tab button.187TAB: 'tab',188189// ARIA role for a tab bar (i.e. a list of tab buttons).190TAB_LIST: 'tablist',191192// ARIA role for a tab page (i.e. the element holding tab contents).193TAB_PANEL: 'tabpanel',194195// ARIA role for a textbox element.196TEXTBOX: 'textbox',197198// ARIA role for a textinfo element.199TEXTINFO: 'textinfo',200201// ARIA role for an element displaying elapsed time or time remaining.202TIMER: 'timer',203204// ARIA role for a toolbar element.205TOOLBAR: 'toolbar',206207// ARIA role for a tooltip element.208TOOLTIP: 'tooltip',209210// ARIA role for a tree.211TREE: 'tree',212213// ARIA role for a grid whose rows can be expanded and collapsed like a tree.214TREEGRID: 'treegrid',215216// ARIA role for a tree item that sometimes may be expanded or collapsed.217TREEITEM: 'treeitem'218};219220221