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

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

Issue 2054393002: Implemented IAccessible2 reverse relations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed content_browsertests. Created 4 years, 5 months 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, 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
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 // are only valid if m_lastModificationCount matches AXObjectCacheImpl::modi ficationCount(). 975 // are only valid if m_lastModificationCount matches AXObjectCacheImpl::modi ficationCount().
976 mutable int m_lastModificationCount; 976 mutable int m_lastModificationCount;
977 mutable RGBA32 m_cachedBackgroundColor; 977 mutable RGBA32 m_cachedBackgroundColor;
978 mutable bool m_cachedIsIgnored : 1; 978 mutable bool m_cachedIsIgnored : 1;
979 mutable bool m_cachedIsInertOrAriaHidden : 1; 979 mutable bool m_cachedIsInertOrAriaHidden : 1;
980 mutable bool m_cachedIsDescendantOfLeafNode : 1; 980 mutable bool m_cachedIsDescendantOfLeafNode : 1;
981 mutable bool m_cachedIsDescendantOfDisabledNode : 1; 981 mutable bool m_cachedIsDescendantOfDisabledNode : 1;
982 mutable bool m_cachedHasInheritedPresentationalRole : 1; 982 mutable bool m_cachedHasInheritedPresentationalRole : 1;
983 mutable bool m_cachedIsPresentationalChild : 1; 983 mutable bool m_cachedIsPresentationalChild : 1;
984 mutable bool m_cachedAncestorExposesActiveDescendant : 1; 984 mutable bool m_cachedAncestorExposesActiveDescendant : 1;
985 mutable Member<const AXObject> m_cachedLiveRegionRoot; 985 mutable Member<AXObject> m_cachedLiveRegionRoot;
986 986
987 Member<AXObjectCacheImpl> m_axObjectCache; 987 Member<AXObjectCacheImpl> m_axObjectCache;
988 988
989 // Updates the cached attribute values. This may be recursive, so to prevent deadlocks, 989 // Updates the cached attribute values. This may be recursive, so to prevent deadlocks,
990 // functions called here may only search up the tree (ancestors), not down. 990 // functions called here may only search up the tree (ancestors), not down.
991 void updateCachedAttributeValuesIfNeeded() const; 991 void updateCachedAttributeValuesIfNeeded() const;
992 992
993 private: 993 private:
994 static bool includesARIAWidgetRole(const String&); 994 static bool includesARIAWidgetRole(const String&);
995 static bool hasInteractiveARIAAttribute(const Element&); 995 static bool hasInteractiveARIAAttribute(const Element&);
996 996
997 static unsigned s_numberOfLiveAXObjects; 997 static unsigned s_numberOfLiveAXObjects;
998 }; 998 };
999 999
1000 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1000 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1001 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 1001 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
1002 1002
1003 } // namespace blink 1003 } // namespace blink
1004 1004
1005 #endif // AXObject_h 1005 #endif // AXObject_h
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_tree_source.cc ('k') | third_party/WebKit/Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698