| 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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 mutable bool m_haveChildren; | 906 mutable bool m_haveChildren; |
| 907 AccessibilityRole m_role; | 907 AccessibilityRole m_role; |
| 908 AXObjectInclusion m_lastKnownIsIgnoredValue; | 908 AXObjectInclusion m_lastKnownIsIgnoredValue; |
| 909 LayoutRect m_explicitElementRect; | 909 LayoutRect m_explicitElementRect; |
| 910 | 910 |
| 911 // Used only inside textAlternative(): | 911 // Used only inside textAlternative(): |
| 912 static String collapseWhitespace(const String&); | 912 static String collapseWhitespace(const String&); |
| 913 static String recursiveTextAlternative(const AXObject&, bool inAriaLabelledB
yTraversal, AXObjectSet& visited); | 913 static String recursiveTextAlternative(const AXObject&, bool inAriaLabelledB
yTraversal, AXObjectSet& visited); |
| 914 bool isHiddenForTextAlternativeCalculation() const; | 914 bool isHiddenForTextAlternativeCalculation() const; |
| 915 String ariaTextAlternative(bool recursive, bool inAriaLabelledByTraversal, A
XObjectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*, bool* fo
undTextAlternative) const; | 915 String ariaTextAlternative(bool recursive, bool inAriaLabelledByTraversal, A
XObjectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*, bool* fo
undTextAlternative) const; |
| 916 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited
, WillBeHeapVector<RawPtrWillBeMember<Element>>& elements, AXRelatedObjectVector
* relatedObjects) const; | 916 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited
, HeapVector<Member<Element>>& elements, AXRelatedObjectVector* relatedObjects)
const; |
| 917 void tokenVectorFromAttribute(Vector<String>&, const QualifiedName&) const; | 917 void tokenVectorFromAttribute(Vector<String>&, const QualifiedName&) const; |
| 918 void elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element>>& el
ements, const QualifiedName&) const; | 918 void elementsFromAttribute(HeapVector<Member<Element>>& elements, const Qual
ifiedName&) const; |
| 919 void ariaLabelledbyElementVector(WillBeHeapVector<RawPtrWillBeMember<Element
>>& elements) const; | 919 void ariaLabelledbyElementVector(HeapVector<Member<Element>>& elements) cons
t; |
| 920 String textFromAriaLabelledby(AXObjectSet& visited, AXRelatedObjectVector* r
elatedObjects) const; | 920 String textFromAriaLabelledby(AXObjectSet& visited, AXRelatedObjectVector* r
elatedObjects) const; |
| 921 String textFromAriaDescribedby(AXRelatedObjectVector* relatedObjects) const; | 921 String textFromAriaDescribedby(AXRelatedObjectVector* relatedObjects) const; |
| 922 | 922 |
| 923 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; } | 923 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; } |
| 924 | 924 |
| 925 virtual bool nameFromContents() const; | 925 virtual bool nameFromContents() const; |
| 926 | 926 |
| 927 AccessibilityRole buttonRoleType() const; | 927 AccessibilityRole buttonRoleType() const; |
| 928 | 928 |
| 929 mutable Member<AXObject> m_parent; | 929 mutable Member<AXObject> m_parent; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 955 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 955 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 956 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 956 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
| 957 | 957 |
| 958 } // namespace blink | 958 } // namespace blink |
| 959 | 959 |
| 960 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); | 960 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); |
| 961 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); | 961 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); |
| 962 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); | 962 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); |
| 963 | 963 |
| 964 #endif // AXObject_h | 964 #endif // AXObject_h |
| OLD | NEW |