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