Home | History | Annotate | Download | only in web
      1 /*
      2  * Copyright (C) 2013 Google Inc. All rights reserved.
      3  *
      4  * Redistribution and use in source and binary forms, with or without
      5  * modification, are permitted provided that the following conditions are
      6  * met:
      7  *
      8  *     * Redistributions of source code must retain the above copyright
      9  * notice, this list of conditions and the following disclaimer.
     10  *     * Redistributions in binary form must reproduce the above
     11  * copyright notice, this list of conditions and the following disclaimer
     12  * in the documentation and/or other materials provided with the
     13  * distribution.
     14  *     * Neither the name of Google Inc. nor the names of its
     15  * contributors may be used to endorse or promote products derived from
     16  * this software without specific prior written permission.
     17  *
     18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     29  */
     30 
     31 #ifndef WebAXEnums_h
     32 #define WebAXEnums_h
     33 
     34 namespace blink {
     35 
     36 // Accessibility events sent from Blink to the embedder.
     37 // These values must match WebCore::AXObjectCache::AXNotification values.
     38 // Enforced in AssertMatchingEnums.cpp.
     39 enum WebAXEvent {
     40     WebAXEventActiveDescendantChanged,
     41     WebAXEventAlert,
     42     WebAXEventAriaAttributeChanged,
     43     WebAXEventAutocorrectionOccured,
     44     WebAXEventBlur,
     45     WebAXEventCheckedStateChanged,
     46     WebAXEventChildrenChanged,
     47     WebAXEventFocus,
     48     WebAXEventHide,
     49     WebAXEventInvalidStatusChanged,
     50     WebAXEventLayoutComplete,
     51     WebAXEventLiveRegionChanged,
     52     WebAXEventLoadComplete,
     53     WebAXEventLocationChanged,
     54     WebAXEventMenuListItemSelected,
     55     WebAXEventMenuListValueChanged,
     56     WebAXEventRowCollapsed,
     57     WebAXEventRowCountChanged,
     58     WebAXEventRowExpanded,
     59     WebAXEventScrollPositionChanged,
     60     WebAXEventScrolledToAnchor,
     61     WebAXEventSelectedChildrenChanged,
     62     WebAXEventSelectedTextChanged,
     63     WebAXEventShow,
     64     WebAXEventTextChanged,
     65     WebAXEventTextInserted,
     66     WebAXEventTextRemoved,
     67     WebAXEventValueChanged
     68 };
     69 
     70 // Accessibility roles.
     71 // These values must match WebCore::AccessibilityRole values.
     72 // Enforced in AssertMatchingEnums.cpp.
     73 enum WebAXRole {
     74     WebAXRoleAlertDialog = 1,
     75     WebAXRoleAlert,
     76     WebAXRoleAnnotation,
     77     WebAXRoleApplication,
     78     WebAXRoleArticle,
     79     WebAXRoleBanner,
     80     WebAXRoleBrowser,
     81     WebAXRoleBusyIndicator,
     82     WebAXRoleButton,
     83     WebAXRoleCanvas,
     84     WebAXRoleCell,
     85     WebAXRoleCheckBox,
     86     WebAXRoleColorWell,
     87     WebAXRoleColumnHeader,
     88     WebAXRoleColumn,
     89     WebAXRoleComboBox,
     90     WebAXRoleComplementary,
     91     WebAXRoleContentInfo,
     92     WebAXRoleDefinition,
     93     WebAXRoleDescriptionListDetail,
     94     WebAXRoleDescriptionListTerm,
     95     WebAXRoleDialog,
     96     WebAXRoleDirectory,
     97     WebAXRoleDisclosureTriangle,
     98     WebAXRoleDiv,
     99     WebAXRoleDocument,
    100     WebAXRoleDrawer,
    101     WebAXRoleEditableText,
    102     WebAXRoleEmbeddedObject,
    103     WebAXRoleFooter,
    104     WebAXRoleForm,
    105     WebAXRoleGrid,
    106     WebAXRoleGroup,
    107     WebAXRoleGrowArea,
    108     WebAXRoleHeading,
    109     WebAXRoleHelpTag,
    110     WebAXRoleHorizontalRule,
    111     WebAXRoleIframe,
    112     WebAXRoleIgnored,
    113     WebAXRoleImageMapLink,
    114     WebAXRoleImageMap,
    115     WebAXRoleImage,
    116     WebAXRoleIncrementor,
    117     WebAXRoleInlineTextBox,
    118     WebAXRoleLabel,
    119     WebAXRoleLegend,
    120     WebAXRoleLink,
    121     WebAXRoleListBoxOption,
    122     WebAXRoleListBox,
    123     WebAXRoleListItem,
    124     WebAXRoleListMarker,
    125     WebAXRoleList,
    126     WebAXRoleLog,
    127     WebAXRoleMain,
    128     WebAXRoleMarquee,
    129     WebAXRoleMathElement,
    130     WebAXRoleMath,
    131     WebAXRoleMatte,
    132     WebAXRoleMenuBar,
    133     WebAXRoleMenuButton,
    134     WebAXRoleMenuItem,
    135     WebAXRoleMenuListOption,
    136     WebAXRoleMenuListPopup,
    137     WebAXRoleMenu,
    138     WebAXRoleNavigation,
    139     WebAXRoleNote,
    140     WebAXRoleOutline,
    141     WebAXRoleParagraph,
    142     WebAXRolePopUpButton,
    143     WebAXRolePresentational,
    144     WebAXRoleProgressIndicator,
    145     WebAXRoleRadioButton,
    146     WebAXRoleRadioGroup,
    147     WebAXRoleRegion,
    148     WebAXRoleRootWebArea,
    149     WebAXRoleRowHeader,
    150     WebAXRoleRow,
    151     WebAXRoleRulerMarker,
    152     WebAXRoleRuler,
    153     WebAXRoleSVGRoot,
    154     WebAXRoleScrollArea,
    155     WebAXRoleScrollBar,
    156     WebAXRoleSeamlessWebArea,
    157     WebAXRoleSearch,
    158     WebAXRoleSheet,
    159     WebAXRoleSlider,
    160     WebAXRoleSliderThumb,
    161     WebAXRoleSpinButtonPart,
    162     WebAXRoleSpinButton,
    163     WebAXRoleSplitGroup,
    164     WebAXRoleSplitter,
    165     WebAXRoleStaticText,
    166     WebAXRoleStatus,
    167     WebAXRoleSystemWide,
    168     WebAXRoleTabGroup,
    169     WebAXRoleTabList,
    170     WebAXRoleTabPanel,
    171     WebAXRoleTab,
    172     WebAXRoleTableHeaderContainer,
    173     WebAXRoleTable,
    174     WebAXRoleTextArea,
    175     WebAXRoleTextField,
    176     WebAXRoleTimer,
    177     WebAXRoleToggleButton,
    178     WebAXRoleToolbar,
    179     WebAXRoleTreeGrid,
    180     WebAXRoleTreeItem,
    181     WebAXRoleTree,
    182     WebAXRoleUnknown,
    183     WebAXRoleUserInterfaceTooltip,
    184     WebAXRoleValueIndicator,
    185     WebAXRoleWebArea,
    186     WebAXRoleWindow,
    187 };
    188 
    189 // Accessibility states, used as a bitmask.
    190 enum WebAXState {
    191     WebAXStateBusy,
    192     WebAXStateChecked,
    193     WebAXStateCollapsed,
    194     WebAXStateEnabled,
    195     WebAXStateExpanded,
    196     WebAXStateFocusable,
    197     WebAXStateFocused,
    198     WebAXStateHaspopup,
    199     WebAXStateHovered,
    200     WebAXStateIndeterminate,
    201     WebAXStateInvisible,
    202     WebAXStateLinked,
    203     WebAXStateMultiselectable,
    204     WebAXStateOffscreen,
    205     WebAXStatePressed,
    206     WebAXStateProtected,
    207     WebAXStateReadonly,
    208     WebAXStateRequired,
    209     WebAXStateSelectable,
    210     WebAXStateSelected,
    211     WebAXStateVertical,
    212     WebAXStateVisited,
    213 };
    214 
    215 // Text direction, only used for role=WebAXRoleInlineTextBox.
    216 enum WebAXTextDirection {
    217     WebAXTextDirectionLR,
    218     WebAXTextDirectionRL,
    219     WebAXTextDirectionTB,
    220     WebAXTextDirectionBT
    221 };
    222 
    223 } // namespace blink
    224 
    225 #endif
    226