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

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

Issue 1477043003: Handle aria-owns and presentational children in AX name calc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@garaventa_visibility_hidden
Patch Set: Better solution to handle both aria-owns and role=presentation in name calc Created 5 years 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 * 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 // Hit testing. 161 // Hit testing.
162 AXObject* accessibilityHitTest(const IntPoint&) const override; 162 AXObject* accessibilityHitTest(const IntPoint&) const override;
163 AXObject* elementAccessibilityHitTest(const IntPoint&) const override; 163 AXObject* elementAccessibilityHitTest(const IntPoint&) const override;
164 164
165 // High-level accessibility tree access. Other modules should only use these functions. 165 // High-level accessibility tree access. Other modules should only use these functions.
166 AXObject* computeParent() const override; 166 AXObject* computeParent() const override;
167 AXObject* computeParentIfExists() const override; 167 AXObject* computeParentIfExists() const override;
168 168
169 // Low-level accessibility tree exploration, only for use within the accessi bility module. 169 // Low-level accessibility tree exploration, only for use within the accessi bility module.
170 AXObject* rawFirstChild() const override; 170 AXObject* rawFirstChild() const override;
171 AXObject* rawFirstSibling() const override; 171 AXObject* rawNextSibling() const override;
172 void addChildren() override; 172 void addChildren() override;
173 bool canHaveChildren() const override; 173 bool canHaveChildren() const override;
174 void updateChildrenIfNecessary() override; 174 void updateChildrenIfNecessary() override;
175 bool needsToUpdateChildren() const override { return m_childrenDirty; } 175 bool needsToUpdateChildren() const override { return m_childrenDirty; }
176 void setNeedsToUpdateChildren() override { m_childrenDirty = true; } 176 void setNeedsToUpdateChildren() override { m_childrenDirty = true; }
177 void clearChildren() override; 177 void clearChildren() override;
178 178
179 // Properties of the object's owning document or page. 179 // Properties of the object's owning document or page.
180 double estimatedLoadingProgress() const override; 180 double estimatedLoadingProgress() const override;
181 181
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 AXRange textControlSelection() const; 224 AXRange textControlSelection() const;
225 int indexForVisiblePosition(const VisiblePosition&) const; 225 int indexForVisiblePosition(const VisiblePosition&) const;
226 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; 226 AXLayoutObject* getUnignoredObjectFromNode(Node&) const;
227 }; 227 };
228 228
229 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 229 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
230 230
231 } // namespace blink 231 } // namespace blink
232 232
233 #endif // AXLayoutObject_h 233 #endif // AXLayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698