Path: blob/trunk/third_party/closure/goog/a11y/aria/attributes.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 states17* and properties as defined by W3C ARIA standard:18* http://www.w3.org/TR/wai-aria/.19*20* This is auto-generated code. Do not manually edit! For more details21* about how to edit it via the generator check go/closure-ariagen.22*/2324goog.provide('goog.a11y.aria.AutoCompleteValues');25goog.provide('goog.a11y.aria.CheckedValues');26goog.provide('goog.a11y.aria.DropEffectValues');27goog.provide('goog.a11y.aria.ExpandedValues');28goog.provide('goog.a11y.aria.GrabbedValues');29goog.provide('goog.a11y.aria.InvalidValues');30goog.provide('goog.a11y.aria.LivePriority');31goog.provide('goog.a11y.aria.OrientationValues');32goog.provide('goog.a11y.aria.PressedValues');33goog.provide('goog.a11y.aria.RelevantValues');34goog.provide('goog.a11y.aria.SelectedValues');35goog.provide('goog.a11y.aria.SortValues');36goog.provide('goog.a11y.aria.State');373839/**40* ARIA states and properties.41* @enum {string}42*/43goog.a11y.aria.State = {44// ARIA property for setting the currently active descendant of an element,45// for example the selected item in a list box. Value: ID of an element.46ACTIVEDESCENDANT: 'activedescendant',4748// ARIA property that, if true, indicates that all of a changed region should49// be presented, instead of only parts. Value: one of {true, false}.50ATOMIC: 'atomic',5152// ARIA property to specify that input completion is provided. Value:53// one of {'inline', 'list', 'both', 'none'}.54AUTOCOMPLETE: 'autocomplete',5556// ARIA state to indicate that an element and its subtree are being updated.57// Value: one of {true, false}.58BUSY: 'busy',5960// ARIA state for a checked item. Value: one of {'true', 'false', 'mixed',61// undefined}.62CHECKED: 'checked',6364// ARIA property that identifies the element or elements whose contents or65// presence are controlled by this element.66// Value: space-separated IDs of other elements.67CONTROLS: 'controls',6869// ARIA property that identifies the element or elements that describe70// this element. Value: space-separated IDs of other elements.71DESCRIBEDBY: 'describedby',7273// ARIA state for a disabled item. Value: one of {true, false}.74DISABLED: 'disabled',7576// ARIA property that indicates what functions can be performed when a77// dragged object is released on the drop target. Value: one of78// {'copy', 'move', 'link', 'execute', 'popup', 'none'}.79DROPEFFECT: 'dropeffect',8081// ARIA state for setting whether the element like a tree node is expanded.82// Value: one of {true, false, undefined}.83EXPANDED: 'expanded',8485// ARIA property that identifies the next element (or elements) in the86// recommended reading order of content. Value: space-separated ids of87// elements to flow to.88FLOWTO: 'flowto',8990// ARIA state that indicates an element's "grabbed" state in drag-and-drop.91// Value: one of {true, false, undefined}.92GRABBED: 'grabbed',9394// ARIA property indicating whether the element has a popup.95// Value: one of {true, false}.96HASPOPUP: 'haspopup',9798// ARIA state indicating that the element is not visible or perceivable99// to any user. Value: one of {true, false}.100HIDDEN: 'hidden',101102// ARIA state indicating that the entered value does not conform. Value:103// one of {false, true, 'grammar', 'spelling'}104INVALID: 'invalid',105106// ARIA property that provides a label to override any other text, value, or107// contents used to describe this element. Value: string.108LABEL: 'label',109110// ARIA property for setting the element which labels another element.111// Value: space-separated IDs of elements.112LABELLEDBY: 'labelledby',113114// ARIA property for setting the level of an element in the hierarchy.115// Value: integer.116LEVEL: 'level',117118// ARIA property indicating that an element will be updated, and119// describes the types of updates the user agents, assistive technologies,120// and user can expect from the live region. Value: one of {'off', 'polite',121// 'assertive'}.122LIVE: 'live',123124// ARIA property indicating whether a text box can accept multiline input.125// Value: one of {true, false}.126MULTILINE: 'multiline',127128// ARIA property indicating if the user may select more than one item.129// Value: one of {true, false}.130MULTISELECTABLE: 'multiselectable',131132// ARIA property indicating if the element is horizontal or vertical.133// Value: one of {'vertical', 'horizontal'}.134ORIENTATION: 'orientation',135136// ARIA property creating a visual, functional, or contextual parent/child137// relationship when the DOM hierarchy can't be used to represent it.138// Value: Space-separated IDs of elements.139OWNS: 'owns',140141// ARIA property that defines an element's number of position in a list.142// Value: integer.143POSINSET: 'posinset',144145// ARIA state for a pressed item.146// Value: one of {true, false, undefined, 'mixed'}.147PRESSED: 'pressed',148149// ARIA property indicating that an element is not editable.150// Value: one of {true, false}.151READONLY: 'readonly',152153// ARIA property indicating that change notifications within this subtree154// of a live region should be announced. Value: one of {'additions',155// 'removals', 'text', 'all', 'additions text'}.156RELEVANT: 'relevant',157158// ARIA property indicating that user input is required on this element159// before a form may be submitted. Value: one of {true, false}.160REQUIRED: 'required',161162// ARIA state for setting the currently selected item in the list.163// Value: one of {true, false, undefined}.164SELECTED: 'selected',165166// ARIA property defining the number of items in a list. Value: integer.167SETSIZE: 'setsize',168169// ARIA property indicating if items are sorted. Value: one of {'ascending',170// 'descending', 'none', 'other'}.171SORT: 'sort',172173// ARIA property for slider maximum value. Value: number.174VALUEMAX: 'valuemax',175176// ARIA property for slider minimum value. Value: number.177VALUEMIN: 'valuemin',178179// ARIA property for slider active value. Value: number.180VALUENOW: 'valuenow',181182// ARIA property for slider active value represented as text.183// Value: string.184VALUETEXT: 'valuetext'185};186187188/**189* ARIA state values for AutoCompleteValues.190* @enum {string}191*/192goog.a11y.aria.AutoCompleteValues = {193// The system provides text after the caret as a suggestion194// for how to complete the field.195INLINE: 'inline',196// A list of choices appears from which the user can choose,197// but the edit box retains focus.198LIST: 'list',199// A list of choices appears and the currently selected suggestion200// also appears inline.201BOTH: 'both',202// No input completion suggestions are provided.203NONE: 'none'204};205206207/**208* ARIA state values for DropEffectValues.209* @enum {string}210*/211goog.a11y.aria.DropEffectValues = {212// A duplicate of the source object will be dropped into the target.213COPY: 'copy',214// The source object will be removed from its current location215// and dropped into the target.216MOVE: 'move',217// A reference or shortcut to the dragged object218// will be created in the target object.219LINK: 'link',220// A function supported by the drop target is221// executed, using the drag source as an input.222EXECUTE: 'execute',223// There is a popup menu or dialog that allows the user to choose224// one of the drag operations (copy, move, link, execute) and any other225// drag functionality, such as cancel.226POPUP: 'popup',227// No operation can be performed; effectively228// cancels the drag operation if an attempt is made to drop on this object.229NONE: 'none'230};231232233/**234* ARIA state values for LivePriority.235* @enum {string}236*/237goog.a11y.aria.LivePriority = {238// Updates to the region will not be presented to the user239// unless the assitive technology is currently focused on that region.240OFF: 'off',241// (Background change) Assistive technologies SHOULD announce242// updates at the next graceful opportunity, such as at the end of243// speaking the current sentence or when the user pauses typing.244POLITE: 'polite',245// This information has the highest priority and assistive246// technologies SHOULD notify the user immediately.247// Because an interruption may disorient users or cause them to not complete248// their current task, authors SHOULD NOT use the assertive value unless the249// interruption is imperative.250ASSERTIVE: 'assertive'251};252253254/**255* ARIA state values for OrientationValues.256* @enum {string}257*/258goog.a11y.aria.OrientationValues = {259// The element is oriented vertically.260VERTICAL: 'vertical',261// The element is oriented horizontally.262HORIZONTAL: 'horizontal'263};264265266/**267* ARIA state values for RelevantValues.268* @enum {string}269*/270goog.a11y.aria.RelevantValues = {271// Element nodes are added to the DOM within the live region.272ADDITIONS: 'additions',273// Text or element nodes within the live region are removed from the DOM.274REMOVALS: 'removals',275// Text is added to any DOM descendant nodes of the live region.276TEXT: 'text',277// Equivalent to the combination of all values, "additions removals text".278ALL: 'all'279};280281282/**283* ARIA state values for SortValues.284* @enum {string}285*/286goog.a11y.aria.SortValues = {287// Items are sorted in ascending order by this column.288ASCENDING: 'ascending',289// Items are sorted in descending order by this column.290DESCENDING: 'descending',291// There is no defined sort applied to the column.292NONE: 'none',293// A sort algorithm other than ascending or descending has been applied.294OTHER: 'other'295};296297298/**299* ARIA state values for CheckedValues.300* @enum {string}301*/302goog.a11y.aria.CheckedValues = {303// The selectable element is checked.304TRUE: 'true',305// The selectable element is not checked.306FALSE: 'false',307// Indicates a mixed mode value for a tri-state308// checkbox or menuitemcheckbox.309MIXED: 'mixed',310// The element does not support being checked.311UNDEFINED: 'undefined'312};313314315/**316* ARIA state values for ExpandedValues.317* @enum {string}318*/319goog.a11y.aria.ExpandedValues = {320// The element, or another grouping element it controls, is expanded.321TRUE: 'true',322// The element, or another grouping element it controls, is collapsed.323FALSE: 'false',324// The element, or another grouping element325// it controls, is neither expandable nor collapsible; all its326// child elements are shown or there are no child elements.327UNDEFINED: 'undefined'328};329330331/**332* ARIA state values for GrabbedValues.333* @enum {string}334*/335goog.a11y.aria.GrabbedValues = {336// Indicates that the element has been "grabbed" for dragging.337TRUE: 'true',338// Indicates that the element supports being dragged.339FALSE: 'false',340// Indicates that the element does not support being dragged.341UNDEFINED: 'undefined'342};343344345/**346* ARIA state values for InvalidValues.347* @enum {string}348*/349goog.a11y.aria.InvalidValues = {350// There are no detected errors in the value.351FALSE: 'false',352// The value entered by the user has failed validation.353TRUE: 'true',354// A grammatical error was detected.355GRAMMAR: 'grammar',356// A spelling error was detected.357SPELLING: 'spelling'358};359360361/**362* ARIA state values for PressedValues.363* @enum {string}364*/365goog.a11y.aria.PressedValues = {366// The element is pressed.367TRUE: 'true',368// The element supports being pressed but is not currently pressed.369FALSE: 'false',370// Indicates a mixed mode value for a tri-state toggle button.371MIXED: 'mixed',372// The element does not support being pressed.373UNDEFINED: 'undefined'374};375376377/**378* ARIA state values for SelectedValues.379* @enum {string}380*/381goog.a11y.aria.SelectedValues = {382// The selectable element is selected.383TRUE: 'true',384// The selectable element is not selected.385FALSE: 'false',386// The element is not selectable.387UNDEFINED: 'undefined'388};389390391