| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 // Returns 0-based index. | 802 // Returns 0-based index. |
| 803 int indexInParent() const; | 803 int indexInParent() const; |
| 804 | 804 |
| 805 // Returns 1-based position in set. | 805 // Returns 1-based position in set. |
| 806 virtual int posInSet() const { return 0; } | 806 virtual int posInSet() const { return 0; } |
| 807 virtual int setSize() const { return 0; } | 807 virtual int setSize() const { return 0; } |
| 808 bool supportsSetSizeAndPosInSet() const; | 808 bool supportsSetSizeAndPosInSet() const; |
| 809 | 809 |
| 810 // ARIA live-region features. | 810 // ARIA live-region features. |
| 811 bool isLiveRegion() const; | 811 bool isLiveRegion() const; |
| 812 const AXObject* liveRegionRoot() const; | 812 AXObject* liveRegionRoot() const; |
| 813 virtual const AtomicString& liveRegionStatus() const { return nullAtom; } | 813 virtual const AtomicString& liveRegionStatus() const { return nullAtom; } |
| 814 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; } | 814 virtual const AtomicString& liveRegionRelevant() const { return nullAtom; } |
| 815 virtual bool liveRegionAtomic() const { return false; } | 815 virtual bool liveRegionAtomic() const { return false; } |
| 816 virtual bool liveRegionBusy() const { return false; } | 816 virtual bool liveRegionBusy() const { return false; } |
| 817 | 817 |
| 818 const AtomicString& containerLiveRegionStatus() const; | 818 const AtomicString& containerLiveRegionStatus() const; |
| 819 const AtomicString& containerLiveRegionRelevant() const; | 819 const AtomicString& containerLiveRegionRelevant() const; |
| 820 bool containerLiveRegionAtomic() const; | 820 bool containerLiveRegionAtomic() const; |
| 821 bool containerLiveRegionBusy() const; | 821 bool containerLiveRegionBusy() const; |
| 822 | 822 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 // are only valid if m_lastModificationCount matches AXObjectCacheImpl::modi
ficationCount(). | 963 // are only valid if m_lastModificationCount matches AXObjectCacheImpl::modi
ficationCount(). |
| 964 mutable int m_lastModificationCount; | 964 mutable int m_lastModificationCount; |
| 965 mutable RGBA32 m_cachedBackgroundColor; | 965 mutable RGBA32 m_cachedBackgroundColor; |
| 966 mutable bool m_cachedIsIgnored : 1; | 966 mutable bool m_cachedIsIgnored : 1; |
| 967 mutable bool m_cachedIsInertOrAriaHidden : 1; | 967 mutable bool m_cachedIsInertOrAriaHidden : 1; |
| 968 mutable bool m_cachedIsDescendantOfLeafNode : 1; | 968 mutable bool m_cachedIsDescendantOfLeafNode : 1; |
| 969 mutable bool m_cachedIsDescendantOfDisabledNode : 1; | 969 mutable bool m_cachedIsDescendantOfDisabledNode : 1; |
| 970 mutable bool m_cachedHasInheritedPresentationalRole : 1; | 970 mutable bool m_cachedHasInheritedPresentationalRole : 1; |
| 971 mutable bool m_cachedIsPresentationalChild : 1; | 971 mutable bool m_cachedIsPresentationalChild : 1; |
| 972 mutable bool m_cachedAncestorExposesActiveDescendant : 1; | 972 mutable bool m_cachedAncestorExposesActiveDescendant : 1; |
| 973 mutable Member<const AXObject> m_cachedLiveRegionRoot; | 973 mutable Member<AXObject> m_cachedLiveRegionRoot; |
| 974 | 974 |
| 975 Member<AXObjectCacheImpl> m_axObjectCache; | 975 Member<AXObjectCacheImpl> m_axObjectCache; |
| 976 | 976 |
| 977 // Updates the cached attribute values. This may be recursive, so to prevent
deadlocks, | 977 // Updates the cached attribute values. This may be recursive, so to prevent
deadlocks, |
| 978 // functions called here may only search up the tree (ancestors), not down. | 978 // functions called here may only search up the tree (ancestors), not down. |
| 979 void updateCachedAttributeValuesIfNeeded() const; | 979 void updateCachedAttributeValuesIfNeeded() const; |
| 980 | 980 |
| 981 private: | 981 private: |
| 982 static bool includesARIAWidgetRole(const String&); | 982 static bool includesARIAWidgetRole(const String&); |
| 983 static bool hasInteractiveARIAAttribute(const Element&); | 983 static bool hasInteractiveARIAAttribute(const Element&); |
| 984 | 984 |
| 985 static unsigned s_numberOfLiveAXObjects; | 985 static unsigned s_numberOfLiveAXObjects; |
| 986 }; | 986 }; |
| 987 | 987 |
| 988 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 988 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 989 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 989 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
| 990 | 990 |
| 991 } // namespace blink | 991 } // namespace blink |
| 992 | 992 |
| 993 #endif // AXObject_h | 993 #endif // AXObject_h |
| OLD | NEW |