Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: Source/modules/accessibility/AXNodeObject.h

Issue 1301993003: Last few steps of text alternative computation algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: esprehn comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 AccessibilityRole ariaRoleAttribute() const final; 161 AccessibilityRole ariaRoleAttribute() const final;
162 162
163 // Accessibility Text. 163 // Accessibility Text.
164 String deprecatedTextUnderElement(TextUnderElementMode) const override; 164 String deprecatedTextUnderElement(TextUnderElementMode) const override;
165 String deprecatedAccessibilityDescription() const override; 165 String deprecatedAccessibilityDescription() const override;
166 String deprecatedTitle(TextUnderElementMode) const override; 166 String deprecatedTitle(TextUnderElementMode) const override;
167 String deprecatedHelpText() const override; 167 String deprecatedHelpText() const override;
168 String computedName() const override; 168 String computedName() const override;
169 169
170 // New AX name calculation. 170 // New AX name calculation.
171 String textAlternative(bool recursive, bool inAriaLabelledByTraversal, AXObj ectSet& visited, AXNameFrom&, AXObjectVector& nameObjects, NameSources*) const o verride; 171 String textAlternative(bool recursive, bool inAriaLabelledByTraversal, AXObj ectSet& visited, AXNameFrom&, AXObjectVector* nameObjects, NameSources*) const o verride;
172 172
173 // Location and click point in frame-relative coordinates. 173 // Location and click point in frame-relative coordinates.
174 LayoutRect elementRect() const override; 174 LayoutRect elementRect() const override;
175 175
176 // High-level accessibility tree access. 176 // High-level accessibility tree access.
177 AXObject* computeParent() const override; 177 AXObject* computeParent() const override;
178 AXObject* computeParentIfExists() const override; 178 AXObject* computeParentIfExists() const override;
179 179
180 // Low-level accessibility tree exploration. 180 // Low-level accessibility tree exploration.
181 AXObject* firstChild() const override; 181 AXObject* firstChild() const override;
(...skipping 28 matching lines...) Expand all
210 void computeAriaOwnsChildren(Vector<AXObject*>& ownedChildren); 210 void computeAriaOwnsChildren(Vector<AXObject*>& ownedChildren);
211 211
212 private: 212 private:
213 RawPtrWillBeMember<Node> m_node; 213 RawPtrWillBeMember<Node> m_node;
214 214
215 String deprecatedAlternativeTextForWebArea() const; 215 String deprecatedAlternativeTextForWebArea() const;
216 void deprecatedAlternativeText(WillBeHeapVector<OwnPtrWillBeMember<Accessibi lityText>>&) const; 216 void deprecatedAlternativeText(WillBeHeapVector<OwnPtrWillBeMember<Accessibi lityText>>&) const;
217 void deprecatedAriaLabelledbyText(WillBeHeapVector<OwnPtrWillBeMember<Access ibilityText>>&) const; 217 void deprecatedAriaLabelledbyText(WillBeHeapVector<OwnPtrWillBeMember<Access ibilityText>>&) const;
218 218
219 String textFromDescendants(AXObjectSet& visited) const; 219 String textFromDescendants(AXObjectSet& visited) const;
220 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited , WillBeHeapVector<RawPtrWillBeMember<Element>>& elements, AXObjectVector& nameO bjects) const; 220 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited , WillBeHeapVector<RawPtrWillBeMember<Element>>& elements, AXObjectVector* nameO bjects) const;
221 String textFromAriaLabelledby(AXObjectSet& visited, AXObjectVector& nameObje cts) const; 221 String textFromAriaLabelledby(AXObjectSet& visited, AXObjectVector* nameObje cts) const;
222 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXObjectVect or& nameObjects, NameSources*, bool* foundTextAlternative) const; 222 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXObjectVect or* nameObjects, NameSources*, bool* foundTextAlternative) const;
223 float stepValueForRange() const; 223 float stepValueForRange() const;
224 AXObject* findChildWithTagName(const HTMLQualifiedName&) const; 224 AXObject* findChildWithTagName(const HTMLQualifiedName&) const;
225 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; 225 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
226 }; 226 };
227 227
228 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); 228 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject());
229 229
230 } // namespace blink 230 } // namespace blink
231 231
232 #endif // AXNodeObject_h 232 #endif // AXNodeObject_h
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/name-calc-summary.html ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698