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

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

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix absolute bounds in AXInlineTextBox::elementRect Created 4 years, 4 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 String ariaLabelledbyAttribute() const final; 159 String ariaLabelledbyAttribute() const final;
160 AccessibilityRole ariaRoleAttribute() const final; 160 AccessibilityRole ariaRoleAttribute() const final;
161 161
162 // AX name calculation. 162 // AX name calculation.
163 String textAlternative(bool recursive, bool inAriaLabelledByTraversal, AXObj ectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*) const overri de; 163 String textAlternative(bool recursive, bool inAriaLabelledByTraversal, AXObj ectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*) const overri de;
164 String description(AXNameFrom, AXDescriptionFrom&, AXObjectVector* descripti onObjects) const override; 164 String description(AXNameFrom, AXDescriptionFrom&, AXObjectVector* descripti onObjects) const override;
165 String description(AXNameFrom, AXDescriptionFrom&, DescriptionSources*, AXRe latedObjectVector*) const override; 165 String description(AXNameFrom, AXDescriptionFrom&, DescriptionSources*, AXRe latedObjectVector*) const override;
166 String placeholder(AXNameFrom, AXDescriptionFrom) const override; 166 String placeholder(AXNameFrom, AXDescriptionFrom) const override;
167 bool nameFromLabelElement() const override; 167 bool nameFromLabelElement() const override;
168 168
169 // Location and click point in frame-relative coordinates. 169 // Location
170 LayoutRect elementRect() const override; 170 LayoutRect elementRect() const override;
171 void getRelativeBounds(AXObject** outContainer, FloatRect& outBoundsInContai ner, SkMatrix44& outContainerTransform) const override;
171 172
172 // High-level accessibility tree access. 173 // High-level accessibility tree access.
173 AXObject* computeParent() const override; 174 AXObject* computeParent() const override;
174 AXObject* computeParentIfExists() const override; 175 AXObject* computeParentIfExists() const override;
175 176
176 // Low-level accessibility tree exploration. 177 // Low-level accessibility tree exploration.
177 AXObject* rawFirstChild() const override; 178 AXObject* rawFirstChild() const override;
178 AXObject* rawNextSibling() const override; 179 AXObject* rawNextSibling() const override;
179 void addChildren() override; 180 void addChildren() override;
180 bool canHaveChildren() const override; 181 bool canHaveChildren() const override;
(...skipping 30 matching lines...) Expand all
211 bool isNativeCheckboxInMixedState() const; 212 bool isNativeCheckboxInMixedState() const;
212 String textFromDescendants(AXObjectSet& visited, bool recursive) const overr ide; 213 String textFromDescendants(AXObjectSet& visited, bool recursive) const overr ide;
213 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const; 214 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const;
214 float stepValueForRange() const; 215 float stepValueForRange() const;
215 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; 216 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
216 }; 217 };
217 218
218 } // namespace blink 219 } // namespace blink
219 220
220 #endif // AXNodeObject_h 221 #endif // AXNodeObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698