Home | History | Annotate | Download | only in web
      1 /*
      2  * Copyright (C) 2009 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 WebAccessibilityRole_h
     32 #define WebAccessibilityRole_h
     33 
     34 #include "../platform/WebCommon.h"
     35 
     36 namespace WebKit {
     37 
     38 // These values must match WebCore::AccessibilityRole values
     39 enum WebAccessibilityRole {
     40     WebAccessibilityRoleAnnotation = 1,
     41     WebAccessibilityRoleApplication,
     42     WebAccessibilityRoleApplicationAlert,
     43     WebAccessibilityRoleApplicationAlertDialog,
     44     WebAccessibilityRoleApplicationDialog,
     45     WebAccessibilityRoleApplicationLog,
     46     WebAccessibilityRoleApplicationMarquee,
     47     WebAccessibilityRoleApplicationStatus,
     48     WebAccessibilityRoleApplicationTimer,
     49     WebAccessibilityRoleBrowser,
     50     WebAccessibilityRoleBusyIndicator,
     51     WebAccessibilityRoleButton,
     52     WebAccessibilityRoleCanvas,
     53     WebAccessibilityRoleCell,
     54     WebAccessibilityRoleCheckBox,
     55     WebAccessibilityRoleColorWell,
     56     WebAccessibilityRoleColumn,
     57     WebAccessibilityRoleColumnHeader,
     58     WebAccessibilityRoleComboBox,
     59     WebAccessibilityRoleDefinition,
     60     WebAccessibilityRoleDescriptionListTerm,
     61     WebAccessibilityRoleDescriptionListDetail,
     62     WebAccessibilityRoleDirectory,
     63     WebAccessibilityRoleDisclosureTriangle,
     64     WebAccessibilityRoleDiv,
     65     WebAccessibilityRoleDocument,
     66     WebAccessibilityRoleDocumentArticle,
     67     WebAccessibilityRoleDocumentMath,
     68     WebAccessibilityRoleDocumentNote,
     69     WebAccessibilityRoleDocumentRegion,
     70     WebAccessibilityRoleDrawer,
     71     WebAccessibilityRoleEditableText,
     72     WebAccessibilityRoleFooter,
     73     WebAccessibilityRoleForm,
     74     WebAccessibilityRoleGrid,
     75     WebAccessibilityRoleGroup,
     76     WebAccessibilityRoleGrowArea,
     77     WebAccessibilityRoleHeading,
     78     WebAccessibilityRoleHelpTag,
     79     WebAccessibilityRoleHorizontalRule,
     80     WebAccessibilityRoleIgnored,
     81     WebAccessibilityRoleImage,
     82     WebAccessibilityRoleImageMap,
     83     WebAccessibilityRoleImageMapLink,
     84     WebAccessibilityRoleIncrementor,
     85     WebAccessibilityRoleLabel,
     86     WebAccessibilityRoleLandmarkApplication,
     87     WebAccessibilityRoleLandmarkBanner,
     88     WebAccessibilityRoleLandmarkComplementary,
     89     WebAccessibilityRoleLandmarkContentInfo,
     90     WebAccessibilityRoleLandmarkMain,
     91     WebAccessibilityRoleLandmarkNavigation,
     92     WebAccessibilityRoleLandmarkSearch,
     93     WebAccessibilityRoleLegend,
     94     WebAccessibilityRoleLink,
     95     WebAccessibilityRoleList,
     96     WebAccessibilityRoleListBox,
     97     WebAccessibilityRoleListBoxOption,
     98     WebAccessibilityRoleListItem,
     99     WebAccessibilityRoleListMarker,
    100     WebAccessibilityRoleMathElement,
    101     WebAccessibilityRoleMatte,
    102     WebAccessibilityRoleMenu,
    103     WebAccessibilityRoleMenuBar,
    104     WebAccessibilityRoleMenuButton,
    105     WebAccessibilityRoleMenuItem,
    106     WebAccessibilityRoleMenuListPopup,
    107     WebAccessibilityRoleMenuListOption,
    108     WebAccessibilityRoleOutline,
    109     WebAccessibilityRoleParagraph,
    110     WebAccessibilityRolePopUpButton,
    111     WebAccessibilityRolePresentational,
    112     WebAccessibilityRoleProgressIndicator,
    113     WebAccessibilityRoleRadioButton,
    114     WebAccessibilityRoleRadioGroup,
    115     WebAccessibilityRoleRowHeader,
    116     WebAccessibilityRoleRow,
    117     WebAccessibilityRoleRuler,
    118     WebAccessibilityRoleRulerMarker,
    119     WebAccessibilityRoleScrollArea,
    120     WebAccessibilityRoleScrollBar,
    121     WebAccessibilityRoleSeamlessWebArea,
    122     WebAccessibilityRoleSheet,
    123     WebAccessibilityRoleSlider,
    124     WebAccessibilityRoleSliderThumb,
    125     WebAccessibilityRoleSpinButton,
    126     WebAccessibilityRoleSpinButtonPart,
    127     WebAccessibilityRoleSplitGroup,
    128     WebAccessibilityRoleSplitter,
    129     WebAccessibilityRoleStaticText,
    130     WebAccessibilityRoleSystemWide,
    131     WebAccessibilityRoleSVGRoot,
    132     WebAccessibilityRoleTabGroup,
    133     WebAccessibilityRoleTabList,
    134     WebAccessibilityRoleTabPanel,
    135     WebAccessibilityRoleTab,
    136     WebAccessibilityRoleTable,
    137     WebAccessibilityRoleTableHeaderContainer,
    138     WebAccessibilityRoleTextArea,
    139     WebAccessibilityRoleTreeRole,
    140     WebAccessibilityRoleTreeGrid,
    141     WebAccessibilityRoleTreeItemRole,
    142     WebAccessibilityRoleTextField,
    143     WebAccessibilityRoleToggleButton,
    144     WebAccessibilityRoleToolbar,
    145     WebAccessibilityRoleUnknown,
    146     WebAccessibilityRoleUserInterfaceTooltip,
    147     WebAccessibilityRoleValueIndicator,
    148     WebAccessibilityRoleWebArea,
    149     WebAccessibilityRoleWebCoreLink,
    150     WebAccessibilityRoleWindow,
    151 };
    152 
    153 } // namespace WebKit
    154 
    155 #endif
    156