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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
422 // Whether objects are ignored, i.e. not included in the tree. | 422 // Whether objects are ignored, i.e. not included in the tree. |
423 bool accessibilityIsIgnored() const; | 423 bool accessibilityIsIgnored() const; |
424 bool accessibilityIsIgnoredByDefault() const; | 424 bool accessibilityIsIgnoredByDefault() const; |
425 AXObjectInclusion accessibilityPlatformIncludesObject() const; | 425 AXObjectInclusion accessibilityPlatformIncludesObject() const; |
426 virtual AXObjectInclusion defaultObjectInclusion() const; | 426 virtual AXObjectInclusion defaultObjectInclusion() const; |
427 bool isInertOrAriaHidden() const; | 427 bool isInertOrAriaHidden() const; |
428 const AXObject* ariaHiddenRoot() const; | 428 const AXObject* ariaHiddenRoot() const; |
429 bool computeIsInertOrAriaHidden() const; | 429 bool computeIsInertOrAriaHidden() const; |
430 bool isDescendantOfBarrenParent() const; | 430 bool isDescendantOfBarrenParent() const; |
431 bool computeIsDescendantOfBarrenParent() const; | 431 bool computeIsDescendantOfBarrenParent() const; |
432 bool isDescendantOfDisabledParent() const; | |
dmazzoni
2015/03/27 19:21:17
One small nitpick, sorry - let's call it isDescend
| |
433 bool computeIsDescendantOfDisabledParent() const; | |
432 bool lastKnownIsIgnoredValue(); | 434 bool lastKnownIsIgnoredValue(); |
433 void setLastKnownIsIgnoredValue(bool); | 435 void setLastKnownIsIgnoredValue(bool); |
434 | 436 |
435 // Properties of static elements. | 437 // Properties of static elements. |
436 virtual const AtomicString& accessKey() const { return nullAtom; } | 438 virtual const AtomicString& accessKey() const { return nullAtom; } |
437 virtual bool canvasHasFallbackContent() const { return false; } | 439 virtual bool canvasHasFallbackContent() const { return false; } |
438 virtual bool exposesTitleUIElement() const { return true; } | 440 virtual bool exposesTitleUIElement() const { return true; } |
439 virtual int headingLevel() const { return 0; } | 441 virtual int headingLevel() const { return 0; } |
440 // 1-based, to match the aria-level spec. | 442 // 1-based, to match the aria-level spec. |
441 virtual unsigned hierarchicalLevel() const { return 0; } | 443 virtual unsigned hierarchicalLevel() const { return 0; } |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
642 bool m_detached; | 644 bool m_detached; |
643 | 645 |
644 mutable AXObject* m_parent; | 646 mutable AXObject* m_parent; |
645 | 647 |
646 // The following cached attribute values (the ones starting with m_cached*) | 648 // The following cached attribute values (the ones starting with m_cached*) |
647 // are only valid if m_lastModificationCount matches AXObjectCacheImpl::modi ficationCount(). | 649 // are only valid if m_lastModificationCount matches AXObjectCacheImpl::modi ficationCount(). |
648 mutable int m_lastModificationCount; | 650 mutable int m_lastModificationCount; |
649 mutable bool m_cachedIsIgnored : 1; | 651 mutable bool m_cachedIsIgnored : 1; |
650 mutable bool m_cachedIsInertOrAriaHidden : 1; | 652 mutable bool m_cachedIsInertOrAriaHidden : 1; |
651 mutable bool m_cachedIsDescendantOfBarrenParent : 1; | 653 mutable bool m_cachedIsDescendantOfBarrenParent : 1; |
654 mutable bool m_cachedIsDescendantOfDisabledParent : 1; | |
652 mutable const AXObject* m_cachedLiveRegionRoot; | 655 mutable const AXObject* m_cachedLiveRegionRoot; |
653 | 656 |
654 AXObjectCacheImpl* m_axObjectCache; | 657 AXObjectCacheImpl* m_axObjectCache; |
655 | 658 |
656 // Updates the cached attribute values. This may be recursive, so to prevent deadlocks, | 659 // Updates the cached attribute values. This may be recursive, so to prevent deadlocks, |
657 // functions called here may only search up the tree (ancestors), not down. | 660 // functions called here may only search up the tree (ancestors), not down. |
658 void updateCachedAttributeValuesIfNeeded() const; | 661 void updateCachedAttributeValuesIfNeeded() const; |
659 | 662 |
660 private: | 663 private: |
661 static bool includesARIAWidgetRole(const String&); | 664 static bool includesARIAWidgetRole(const String&); |
662 static bool hasInteractiveARIAAttribute(const Element&); | 665 static bool hasInteractiveARIAAttribute(const Element&); |
663 }; | 666 }; |
664 | 667 |
665 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 668 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
666 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) | 669 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) |
667 | 670 |
668 } // namespace blink | 671 } // namespace blink |
669 | 672 |
670 #endif // AXObject_h | 673 #endif // AXObject_h |
OLD | NEW |