| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 WTF_MAKE_NONCOPYABLE(AXNodeObject); | 44 WTF_MAKE_NONCOPYABLE(AXNodeObject); |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 AXNodeObject(Node*, AXObjectCacheImpl&); | 47 AXNodeObject(Node*, AXObjectCacheImpl&); |
| 48 | 48 |
| 49 public: | 49 public: |
| 50 static AXNodeObject* create(Node*, AXObjectCacheImpl&); | 50 static AXNodeObject* create(Node*, AXObjectCacheImpl&); |
| 51 ~AXNodeObject() override; | 51 ~AXNodeObject() override; |
| 52 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
| 53 | 53 |
| 54 AccessibilityRole roleValue() const override; |
| 55 |
| 54 protected: | 56 protected: |
| 55 // Protected data. | 57 // Protected data. |
| 56 AccessibilityRole m_ariaRole; | 58 AccessibilityRole m_ariaRole; |
| 57 bool m_childrenDirty; | 59 bool m_childrenDirty; |
| 58 #if ENABLE(ASSERT) | 60 #if ENABLE(ASSERT) |
| 59 bool m_initialized; | 61 bool m_initialized; |
| 60 #endif | 62 #endif |
| 61 | 63 |
| 62 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; | 64 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; |
| 63 const AXObject* inheritsPresentationalRoleFrom() const override; | 65 const AXObject* inheritsPresentationalRoleFrom() const override; |
| 66 void setNeedsDetermineAccessibilityRole(); |
| 64 virtual AccessibilityRole determineAccessibilityRole(); | 67 virtual AccessibilityRole determineAccessibilityRole(); |
| 65 virtual AccessibilityRole nativeAccessibilityRoleIgnoringAria() const; | 68 virtual AccessibilityRole nativeAccessibilityRoleIgnoringAria() const; |
| 66 String accessibilityDescriptionForElements( | 69 String accessibilityDescriptionForElements( |
| 67 HeapVector<Member<Element>>& elements) const; | 70 HeapVector<Member<Element>>& elements) const; |
| 68 void alterSliderValue(bool increase); | 71 void alterSliderValue(bool increase); |
| 69 AXObject* activeDescendant() override; | 72 AXObject* activeDescendant() override; |
| 70 String ariaAccessibilityDescription() const; | 73 String ariaAccessibilityDescription() const; |
| 71 String ariaAutoComplete() const; | 74 String ariaAutoComplete() const; |
| 72 AccessibilityRole determineAriaRoleAttribute() const; | 75 AccessibilityRole determineAriaRoleAttribute() const; |
| 73 void accessibilityChildrenFromAttribute(QualifiedName attr, | 76 void accessibilityChildrenFromAttribute(QualifiedName attr, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 AXRelatedObjectVector*, | 235 AXRelatedObjectVector*, |
| 233 NameSources*, | 236 NameSources*, |
| 234 bool* foundTextAlternative) const; | 237 bool* foundTextAlternative) const; |
| 235 float stepValueForRange() const; | 238 float stepValueForRange() const; |
| 236 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; | 239 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; |
| 237 }; | 240 }; |
| 238 | 241 |
| 239 } // namespace blink | 242 } // namespace blink |
| 240 | 243 |
| 241 #endif // AXNodeObject_h | 244 #endif // AXNodeObject_h |
| OLD | NEW |