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 WebAccessibilityRoleTab, 106 WebAccessibilityRoleTabList, 107 WebAccessibilityRoleTabPanel, 108 WebAccessibilityRoleTreeRole, 109 WebAccessibilityRoleTreeGrid, 110 WebAccessibilityRoleTreeItemRole, 111 WebAccessibilityRoleDirectory, 112 WebAccessibilityRoleEditableText, 113 114 WebAccessibilityRoleListItem, 115 WebAccessibilityRoleMenuListPopup, 116 WebAccessibilityRoleMenuListOption, 117 118 WebAccessibilityRoleLandmarkApplication, 119 WebAccessibilityRoleLandmarkBanner, 120 WebAccessibilityRoleLandmarkComplementary, 121 WebAccessibilityRoleLandmarkContentInfo, 122 WebAccessibilityRoleLandmarkMain, 123 WebAccessibilityRoleLandmarkNavigation, 124 WebAccessibilityRoleLandmarkSearch, 125 126 WebAccessibilityRoleApplicationAlert, 127 WebAccessibilityRoleApplicationAlertDialog, 128 WebAccessibilityRoleApplicationDialog, 129 WebAccessibilityRoleApplicationLog, 130 WebAccessibilityRoleApplicationMarquee, 131 WebAccessibilityRoleApplicationStatus, 132 WebAccessibilityRoleApplicationTimer, 133 134 WebAccessibilityRoleDocument, 135 WebAccessibilityRoleDocumentArticle, 136 WebAccessibilityRoleDocumentMath, 137 WebAccessibilityRoleDocumentNote, 138 WebAccessibilityRoleDocumentRegion, 139 140 WebAccessibilityRoleUserInterfaceTooltip 141 }; 142 143 } // namespace WebKit 144 145 #endif 146