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, | |
138 RowHeaderRole, | 134 RowHeaderRole, |
139 RowRole, | 135 RowRole, |
136 RulerMarkerRole, | |
140 RulerRole, | 137 RulerRole, |
141 RulerMarkerRole, | 138 SVGRootRole, |
142 ScrollAreaRole, | 139 ScrollAreaRole, |
143 ScrollBarRole, | 140 ScrollBarRole, |
144 SeamlessWebAreaRole, | 141 SeamlessWebAreaRole, |
142 SearchRole, | |
145 SheetRole, | 143 SheetRole, |
146 SliderRole, | 144 SliderRole, |
147 SliderThumbRole, | 145 SliderThumbRole, |
146 SpinButtonPartRole, | |
148 SpinButtonRole, | 147 SpinButtonRole, |
149 SpinButtonPartRole, | |
150 SplitGroupRole, | 148 SplitGroupRole, |
151 SplitterRole, | 149 SplitterRole, |
152 StaticTextRole, | 150 StaticTextRole, |
151 StatusRole, | |
153 SystemWideRole, | 152 SystemWideRole, |
154 SVGRootRole, | |
155 TabGroupRole, | 153 TabGroupRole, |
156 TabListRole, | 154 TabListRole, |
157 TabPanelRole, | 155 TabPanelRole, |
158 TabRole, | 156 TabRole, |
157 TableHeaderContainerRole, | |
159 TableRole, | 158 TableRole, |
160 TableHeaderContainerRole, | |
161 TextAreaRole, | 159 TextAreaRole, |
162 TreeRole, | 160 TextFieldRole, |
161 TimerRole, | |
162 ToggleButtonRole, | |
163 ToolbarRole, | |
163 TreeGridRole, | 164 TreeGridRole, |
164 TreeItemRole, | 165 TreeItemRole, |
165 TextFieldRole, | 166 TreeRole, |
166 ToggleButtonRole, | |
167 ToolbarRole, | |
168 UnknownRole, | 167 UnknownRole, |
169 UserInterfaceTooltipRole, | 168 UserInterfaceTooltipRole, |
170 ValueIndicatorRole, | 169 ValueIndicatorRole, |
171 WebAreaRole, | 170 WebAreaRole, |
172 WebCoreLinkRole, | |
aboxhall
2013/08/07 15:58:10
What was this role doing previously? I see there w
dmazzoni
2013/08/07 16:23:53
No idea why WebKit had both. LinkRole was never us
| |
173 WindowRole, | 171 WindowRole, |
174 }; | 172 }; |
175 | 173 |
176 enum AccessibilityTextSource { | 174 enum AccessibilityTextSource { |
177 AlternativeText, | 175 AlternativeText, |
178 ChildrenText, | 176 ChildrenText, |
179 SummaryText, | 177 SummaryText, |
180 HelpText, | 178 HelpText, |
181 VisibleText, | 179 VisibleText, |
182 TitleTagText, | 180 TitleTagText, |
183 PlaceholderText, | 181 PlaceholderText, |
184 LabelByElementText, | 182 LabelByElementText, |
185 }; | 183 }; |
186 | 184 |
185 enum AccessibilityState { | |
186 AXBusyState, | |
187 AXCheckedState, | |
188 AXCollapsedState, | |
189 AXEnabledState, | |
190 AXExpandedState, | |
191 AXFocusableState, | |
192 AXFocusedState, | |
193 AXHaspopupState, | |
194 AXHoveredState, | |
195 AXIndeterminateState, | |
196 AXInvisibleState, | |
197 AXLinkedState, | |
198 AXMultiselectableState, | |
199 AXOffscreenState, | |
200 AXPressedState, | |
201 AXProtectedState, | |
202 AXReadonlyState, | |
203 AXRequiredState, | |
204 AXSelectableState, | |
205 AXSelectedState, | |
206 AXVerticalState, | |
207 AXVisitedState | |
208 }; | |
209 | |
187 struct AccessibilityText { | 210 struct AccessibilityText { |
188 String text; | 211 String text; |
189 AccessibilityTextSource textSource; | 212 AccessibilityTextSource textSource; |
190 RefPtr<AccessibilityObject> textElement; | 213 RefPtr<AccessibilityObject> textElement; |
191 | 214 |
192 AccessibilityText(const String& t, const AccessibilityTextSource& s) | 215 AccessibilityText(const String& t, const AccessibilityTextSource& s) |
193 : text(t) | 216 : text(t) |
194 , textSource(s) | 217 , textSource(s) |
195 { } | 218 { } |
196 | 219 |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
560 #if !HAVE(ACCESSIBILITY) | 583 #if !HAVE(ACCESSIBILITY) |
561 inline const AccessibilityObject::AccessibilityChildrenVector& AccessibilityObje ct::children() { return m_children; } | 584 inline const AccessibilityObject::AccessibilityChildrenVector& AccessibilityObje ct::children() { return m_children; } |
562 inline String AccessibilityObject::actionVerb() const { return emptyString(); } | 585 inline String AccessibilityObject::actionVerb() const { return emptyString(); } |
563 inline int AccessibilityObject::lineForPosition(const VisiblePosition&) const { return -1; } | 586 inline int AccessibilityObject::lineForPosition(const VisiblePosition&) const { return -1; } |
564 inline void AccessibilityObject::updateBackingStore() { } | 587 inline void AccessibilityObject::updateBackingStore() { } |
565 #endif | 588 #endif |
566 | 589 |
567 } // namespace WebCore | 590 } // namespace WebCore |
568 | 591 |
569 #endif // AccessibilityObject_h | 592 #endif // AccessibilityObject_h |
OLD | NEW |