OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // Called when the scroll offset changes. | 139 // Called when the scroll offset changes. |
140 void handleScrollPositionChanged(ScrollView*); | 140 void handleScrollPositionChanged(ScrollView*); |
141 void handleScrollPositionChanged(RenderObject*); | 141 void handleScrollPositionChanged(RenderObject*); |
142 | 142 |
143 void handleAttributeChanged(const QualifiedName& attrName, Element*); | 143 void handleAttributeChanged(const QualifiedName& attrName, Element*); |
144 void recomputeIsIgnored(RenderObject* renderer); | 144 void recomputeIsIgnored(RenderObject* renderer); |
145 | 145 |
146 void inlineTextBoxesUpdated(RenderObject* renderer); | 146 void inlineTextBoxesUpdated(RenderObject* renderer); |
147 | 147 |
148 static void enableAccessibility() { gAccessibilityEnabled = true; } | |
149 static bool accessibilityEnabled() { return gAccessibilityEnabled; } | |
150 static void setInlineTextBoxAccessibility(bool flag) { gInlineTextBoxAccessi
bility = flag; } | |
151 static bool inlineTextBoxAccessibility() { return gInlineTextBoxAccessibilit
y; } | |
152 | |
153 void removeAXID(AXObject*); | 148 void removeAXID(AXObject*); |
154 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } | 149 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } |
155 | 150 |
156 Element* rootAXEditableElement(Node*); | 151 Element* rootAXEditableElement(Node*); |
157 const Element* rootAXEditableElement(const Node*); | 152 const Element* rootAXEditableElement(const Node*); |
158 bool nodeIsTextControl(const Node*); | 153 bool nodeIsTextControl(const Node*); |
159 | 154 |
160 AXID platformGenerateAXID() const; | 155 AXID platformGenerateAXID() const; |
161 AXObject* objectFromAXID(AXID id) const { return m_objects.get(id); } | 156 AXObject* objectFromAXID(AXID id) const { return m_objects.get(id); } |
162 | 157 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 208 |
214 private: | 209 private: |
215 Document& m_document; | 210 Document& m_document; |
216 HashMap<AXID, RefPtr<AXObject> > m_objects; | 211 HashMap<AXID, RefPtr<AXObject> > m_objects; |
217 HashMap<RenderObject*, AXID> m_renderObjectMapping; | 212 HashMap<RenderObject*, AXID> m_renderObjectMapping; |
218 HashMap<Widget*, AXID> m_widgetObjectMapping; | 213 HashMap<Widget*, AXID> m_widgetObjectMapping; |
219 HashMap<Node*, AXID> m_nodeObjectMapping; | 214 HashMap<Node*, AXID> m_nodeObjectMapping; |
220 HashMap<AbstractInlineTextBox*, AXID> m_inlineTextBoxObjectMapping; | 215 HashMap<AbstractInlineTextBox*, AXID> m_inlineTextBoxObjectMapping; |
221 HashSet<Node*> m_textMarkerNodes; | 216 HashSet<Node*> m_textMarkerNodes; |
222 OwnPtr<AXComputedObjectAttributeCache> m_computedObjectAttributeCache; | 217 OwnPtr<AXComputedObjectAttributeCache> m_computedObjectAttributeCache; |
223 static bool gAccessibilityEnabled; | |
224 static bool gInlineTextBoxAccessibility; | |
225 | 218 |
226 HashSet<AXID> m_idsInUse; | 219 HashSet<AXID> m_idsInUse; |
227 | 220 |
228 Timer<AXObjectCache> m_notificationPostTimer; | 221 Timer<AXObjectCache> m_notificationPostTimer; |
229 Vector<pair<RefPtr<AXObject>, AXNotification> > m_notificationsToPost; | 222 Vector<pair<RefPtr<AXObject>, AXNotification> > m_notificationsToPost; |
230 void notificationPostTimerFired(Timer<AXObjectCache>*); | 223 void notificationPostTimerFired(Timer<AXObjectCache>*); |
231 | 224 |
232 static AXObject* focusedImageMapUIElement(HTMLAreaElement*); | 225 static AXObject* focusedImageMapUIElement(HTMLAreaElement*); |
233 | 226 |
234 AXID getAXID(AXObject*); | 227 AXID getAXID(AXObject*); |
235 }; | 228 }; |
236 | 229 |
237 bool nodeHasRole(Node*, const String& role); | 230 bool nodeHasRole(Node*, const String& role); |
238 // This will let you know if aria-hidden was explicitly set to false. | 231 // This will let you know if aria-hidden was explicitly set to false. |
239 bool isNodeAriaVisible(Node*); | 232 bool isNodeAriaVisible(Node*); |
240 | 233 |
241 } | 234 } |
242 | 235 |
243 #endif | 236 #endif |
OLD | NEW |