| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class Page; | 53 class Page; |
| 54 class RenderObject; | 54 class RenderObject; |
| 55 class RenderListItem; | 55 class RenderListItem; |
| 56 class ScrollableArea; | 56 class ScrollableArea; |
| 57 class VisibleSelection; | 57 class VisibleSelection; |
| 58 class Widget; | 58 class Widget; |
| 59 | 59 |
| 60 typedef unsigned AXID; | 60 typedef unsigned AXID; |
| 61 | 61 |
| 62 enum AccessibilityRole { | 62 enum AccessibilityRole { |
| 63 AnnotationRole = 1, | 63 AlertDialogRole = 1, |
| 64 AlertRole, |
| 65 AnnotationRole, |
| 64 ApplicationRole, | 66 ApplicationRole, |
| 65 ApplicationAlertRole, | 67 ArticleRole, |
| 66 ApplicationAlertDialogRole, | 68 BannerRole, |
| 67 ApplicationDialogRole, | |
| 68 ApplicationLogRole, | |
| 69 ApplicationMarqueeRole, | |
| 70 ApplicationStatusRole, | |
| 71 ApplicationTimerRole, | |
| 72 BrowserRole, | 69 BrowserRole, |
| 73 BusyIndicatorRole, | 70 BusyIndicatorRole, |
| 74 ButtonRole, | 71 ButtonRole, |
| 75 CanvasRole, | 72 CanvasRole, |
| 76 CellRole, | 73 CellRole, |
| 77 CheckBoxRole, | 74 CheckBoxRole, |
| 78 ColorWellRole, | 75 ColorWellRole, |
| 76 ColumnHeaderRole, |
| 79 ColumnRole, | 77 ColumnRole, |
| 80 ColumnHeaderRole, | |
| 81 ComboBoxRole, | 78 ComboBoxRole, |
| 79 ComplementaryRole, |
| 80 ContentInfoRole, |
| 82 DefinitionRole, | 81 DefinitionRole, |
| 82 DescriptionListDetailRole, |
| 83 DescriptionListTermRole, | 83 DescriptionListTermRole, |
| 84 DescriptionListDetailRole, | 84 DialogRole, |
| 85 DirectoryRole, | 85 DirectoryRole, |
| 86 DisclosureTriangleRole, | 86 DisclosureTriangleRole, |
| 87 DivRole, | 87 DivRole, |
| 88 DocumentRole, | 88 DocumentRole, |
| 89 DocumentArticleRole, | |
| 90 DocumentMathRole, | |
| 91 DocumentNoteRole, | |
| 92 DocumentRegionRole, | |
| 93 DrawerRole, | 89 DrawerRole, |
| 94 EditableTextRole, | 90 EditableTextRole, |
| 95 FooterRole, | 91 FooterRole, |
| 96 FormRole, | 92 FormRole, |
| 97 GridRole, | 93 GridRole, |
| 98 GroupRole, | 94 GroupRole, |
| 99 GrowAreaRole, | 95 GrowAreaRole, |
| 100 HeadingRole, | 96 HeadingRole, |
| 101 HelpTagRole, | 97 HelpTagRole, |
| 102 HorizontalRuleRole, | 98 HorizontalRuleRole, |
| 103 IgnoredRole, | 99 IgnoredRole, |
| 100 ImageMapLinkRole, |
| 101 ImageMapRole, |
| 104 ImageRole, | 102 ImageRole, |
| 105 ImageMapRole, | |
| 106 ImageMapLinkRole, | |
| 107 IncrementorRole, | 103 IncrementorRole, |
| 108 LabelRole, | 104 LabelRole, |
| 109 LandmarkApplicationRole, | |
| 110 LandmarkBannerRole, | |
| 111 LandmarkComplementaryRole, | |
| 112 LandmarkContentInfoRole, | |
| 113 LandmarkMainRole, | |
| 114 LandmarkNavigationRole, | |
| 115 LandmarkSearchRole, | |
| 116 LegendRole, | 105 LegendRole, |
| 117 LinkRole, | 106 LinkRole, |
| 118 ListRole, | 107 ListBoxOptionRole, |
| 119 ListBoxRole, | 108 ListBoxRole, |
| 120 ListBoxOptionRole, | |
| 121 ListItemRole, | 109 ListItemRole, |
| 122 ListMarkerRole, | 110 ListMarkerRole, |
| 111 ListRole, |
| 112 LogRole, |
| 113 MainRole, |
| 114 MarqueeRole, |
| 123 MathElementRole, | 115 MathElementRole, |
| 116 MathRole, |
| 124 MatteRole, | 117 MatteRole, |
| 125 MenuRole, | |
| 126 MenuBarRole, | 118 MenuBarRole, |
| 127 MenuButtonRole, | 119 MenuButtonRole, |
| 128 MenuItemRole, | 120 MenuItemRole, |
| 121 MenuListOptionRole, |
| 129 MenuListPopupRole, | 122 MenuListPopupRole, |
| 130 MenuListOptionRole, | 123 MenuRole, |
| 124 NavigationRole, |
| 125 NoteRole, |
| 131 OutlineRole, | 126 OutlineRole, |
| 132 ParagraphRole, | 127 ParagraphRole, |
| 133 PopUpButtonRole, | 128 PopUpButtonRole, |
| 134 PresentationalRole, | 129 PresentationalRole, |
| 135 ProgressIndicatorRole, | 130 ProgressIndicatorRole, |
| 136 RadioButtonRole, | 131 RadioButtonRole, |
| 137 RadioGroupRole, | 132 RadioGroupRole, |
| 133 RegionRole, |
| 134 RootWebAreaRole, |
| 138 RowHeaderRole, | 135 RowHeaderRole, |
| 139 RowRole, | 136 RowRole, |
| 137 RulerMarkerRole, |
| 140 RulerRole, | 138 RulerRole, |
| 141 RulerMarkerRole, | 139 SVGRootRole, |
| 142 ScrollAreaRole, | 140 ScrollAreaRole, |
| 143 ScrollBarRole, | 141 ScrollBarRole, |
| 144 SeamlessWebAreaRole, | 142 SeamlessWebAreaRole, |
| 143 SearchRole, |
| 145 SheetRole, | 144 SheetRole, |
| 146 SliderRole, | 145 SliderRole, |
| 147 SliderThumbRole, | 146 SliderThumbRole, |
| 147 SpinButtonPartRole, |
| 148 SpinButtonRole, | 148 SpinButtonRole, |
| 149 SpinButtonPartRole, | |
| 150 SplitGroupRole, | 149 SplitGroupRole, |
| 151 SplitterRole, | 150 SplitterRole, |
| 152 StaticTextRole, | 151 StaticTextRole, |
| 152 StatusRole, |
| 153 SystemWideRole, | 153 SystemWideRole, |
| 154 SVGRootRole, | |
| 155 TabGroupRole, | 154 TabGroupRole, |
| 156 TabListRole, | 155 TabListRole, |
| 157 TabPanelRole, | 156 TabPanelRole, |
| 158 TabRole, | 157 TabRole, |
| 158 TableHeaderContainerRole, |
| 159 TableRole, | 159 TableRole, |
| 160 TableHeaderContainerRole, | |
| 161 TextAreaRole, | 160 TextAreaRole, |
| 162 TreeRole, | 161 TextFieldRole, |
| 162 TimerRole, |
| 163 ToggleButtonRole, |
| 164 ToolbarRole, |
| 163 TreeGridRole, | 165 TreeGridRole, |
| 164 TreeItemRole, | 166 TreeItemRole, |
| 165 TextFieldRole, | 167 TreeRole, |
| 166 ToggleButtonRole, | |
| 167 ToolbarRole, | |
| 168 UnknownRole, | 168 UnknownRole, |
| 169 UserInterfaceTooltipRole, | 169 UserInterfaceTooltipRole, |
| 170 ValueIndicatorRole, | 170 ValueIndicatorRole, |
| 171 WebAreaRole, | 171 WebAreaRole, |
| 172 WebCoreLinkRole, | |
| 173 WindowRole, | 172 WindowRole, |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 enum AccessibilityTextSource { | 175 enum AccessibilityTextSource { |
| 177 AlternativeText, | 176 AlternativeText, |
| 178 ChildrenText, | 177 ChildrenText, |
| 179 SummaryText, | 178 SummaryText, |
| 180 HelpText, | 179 HelpText, |
| 181 VisibleText, | 180 VisibleText, |
| 182 TitleTagText, | 181 TitleTagText, |
| 183 PlaceholderText, | 182 PlaceholderText, |
| 184 LabelByElementText, | 183 LabelByElementText, |
| 185 }; | 184 }; |
| 186 | 185 |
| 186 enum AccessibilityState { |
| 187 AXBusyState, |
| 188 AXCheckedState, |
| 189 AXCollapsedState, |
| 190 AXEnabledState, |
| 191 AXExpandedState, |
| 192 AXFocusableState, |
| 193 AXFocusedState, |
| 194 AXHaspopupState, |
| 195 AXHoveredState, |
| 196 AXIndeterminateState, |
| 197 AXInvisibleState, |
| 198 AXLinkedState, |
| 199 AXMultiselectableState, |
| 200 AXOffscreenState, |
| 201 AXPressedState, |
| 202 AXProtectedState, |
| 203 AXReadonlyState, |
| 204 AXRequiredState, |
| 205 AXSelectableState, |
| 206 AXSelectedState, |
| 207 AXVerticalState, |
| 208 AXVisitedState |
| 209 }; |
| 210 |
| 187 struct AccessibilityText { | 211 struct AccessibilityText { |
| 188 String text; | 212 String text; |
| 189 AccessibilityTextSource textSource; | 213 AccessibilityTextSource textSource; |
| 190 RefPtr<AccessibilityObject> textElement; | 214 RefPtr<AccessibilityObject> textElement; |
| 191 | 215 |
| 192 AccessibilityText(const String& t, const AccessibilityTextSource& s) | 216 AccessibilityText(const String& t, const AccessibilityTextSource& s) |
| 193 : text(t) | 217 : text(t) |
| 194 , textSource(s) | 218 , textSource(s) |
| 195 { } | 219 { } |
| 196 | 220 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 #if !HAVE(ACCESSIBILITY) | 584 #if !HAVE(ACCESSIBILITY) |
| 561 inline const AccessibilityObject::AccessibilityChildrenVector& AccessibilityObje
ct::children() { return m_children; } | 585 inline const AccessibilityObject::AccessibilityChildrenVector& AccessibilityObje
ct::children() { return m_children; } |
| 562 inline String AccessibilityObject::actionVerb() const { return emptyString(); } | 586 inline String AccessibilityObject::actionVerb() const { return emptyString(); } |
| 563 inline int AccessibilityObject::lineForPosition(const VisiblePosition&) const {
return -1; } | 587 inline int AccessibilityObject::lineForPosition(const VisiblePosition&) const {
return -1; } |
| 564 inline void AccessibilityObject::updateBackingStore() { } | 588 inline void AccessibilityObject::updateBackingStore() { } |
| 565 #endif | 589 #endif |
| 566 | 590 |
| 567 } // namespace WebCore | 591 } // namespace WebCore |
| 568 | 592 |
| 569 #endif // AccessibilityObject_h | 593 #endif // AccessibilityObject_h |
| OLD | NEW |