| OLD | NEW |
| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 // Location and click point in frame-relative coordinates. | 165 // Location and click point in frame-relative coordinates. |
| 166 LayoutRect elementRect() const override; | 166 LayoutRect elementRect() const override; |
| 167 | 167 |
| 168 // High-level accessibility tree access. | 168 // High-level accessibility tree access. |
| 169 AXObject* computeParent() const override; | 169 AXObject* computeParent() const override; |
| 170 AXObject* computeParentIfExists() const override; | 170 AXObject* computeParentIfExists() const override; |
| 171 | 171 |
| 172 // Low-level accessibility tree exploration. | 172 // Low-level accessibility tree exploration. |
| 173 AXObject* rawFirstChild() const override; | 173 AXObject* rawFirstChild() const override; |
| 174 AXObject* rawFirstSibling() const override; | 174 AXObject* rawNextSibling() const override; |
| 175 void addChildren() override; | 175 void addChildren() override; |
| 176 bool canHaveChildren() const override; | 176 bool canHaveChildren() const override; |
| 177 void addChild(AXObject*); | 177 void addChild(AXObject*); |
| 178 void insertChild(AXObject*, unsigned index); | 178 void insertChild(AXObject*, unsigned index); |
| 179 | 179 |
| 180 // DOM and Render tree access. | 180 // DOM and Render tree access. |
| 181 Element* actionElement() const override; | 181 Element* actionElement() const override; |
| 182 Element* anchorElement() const override; | 182 Element* anchorElement() const override; |
| 183 Document* document() const override; | 183 Document* document() const override; |
| 184 Node* node() const override { return m_node; } | 184 Node* node() const override { return m_node; } |
| 185 | 185 |
| 186 // Modify or take an action on an object. | 186 // Modify or take an action on an object. |
| 187 void setFocused(bool) final; | 187 void setFocused(bool) final; |
| 188 void increment() final; | 188 void increment() final; |
| 189 void decrement() final; | 189 void decrement() final; |
| 190 | 190 |
| 191 // Notifications that this object may have changed. | 191 // Notifications that this object may have changed. |
| 192 void childrenChanged() override; | 192 void childrenChanged() override; |
| 193 void selectionChanged() final; | 193 void selectionChanged() final; |
| 194 void textChanged() override; | 194 void textChanged() override; |
| 195 void updateAccessibilityRole() final; | 195 void updateAccessibilityRole() final; |
| 196 | 196 |
| 197 // Position in set and Size of set | 197 // Position in set and Size of set |
| 198 int posInSet() const override; | 198 int posInSet() const override; |
| 199 int setSize() const override; | 199 int setSize() const override; |
| 200 | 200 |
| 201 // Aria-owns. | 201 // Aria-owns. |
| 202 void computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedChildren); | 202 void computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedChildren) co
nst; |
| 203 | 203 |
| 204 private: | 204 private: |
| 205 RawPtrWillBeMember<Node> m_node; | 205 RawPtrWillBeMember<Node> m_node; |
| 206 | 206 |
| 207 bool isNativeCheckboxInMixedState() const; | 207 bool isNativeCheckboxInMixedState() const; |
| 208 String textFromDescendants(AXObjectSet& visited) const; | 208 String textFromDescendants(AXObjectSet& visited, bool recursive) const overr
ide; |
| 209 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj
ectVector*, NameSources*, bool* foundTextAlternative) const; | 209 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj
ectVector*, NameSources*, bool* foundTextAlternative) const; |
| 210 float stepValueForRange() const; | 210 float stepValueForRange() const; |
| 211 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; | 211 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 } // namespace blink | 214 } // namespace blink |
| 215 | 215 |
| 216 #endif // AXNodeObject_h | 216 #endif // AXNodeObject_h |
| OLD | NEW |