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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 mutable bool m_haveChildren; 900 mutable bool m_haveChildren;
901 AccessibilityRole m_role; 901 AccessibilityRole m_role;
902 AXObjectInclusion m_lastKnownIsIgnoredValue; 902 AXObjectInclusion m_lastKnownIsIgnoredValue;
903 LayoutRect m_explicitElementRect; 903 LayoutRect m_explicitElementRect;
904 904
905 // Used only inside textAlternative(): 905 // Used only inside textAlternative():
906 static String collapseWhitespace(const String&); 906 static String collapseWhitespace(const String&);
907 static String recursiveTextAlternative(const AXObject&, bool inAriaLabelledB yTraversal, AXObjectSet& visited); 907 static String recursiveTextAlternative(const AXObject&, bool inAriaLabelledB yTraversal, AXObjectSet& visited);
908 bool isHiddenForTextAlternativeCalculation() const; 908 bool isHiddenForTextAlternativeCalculation() const;
909 String ariaTextAlternative(bool recursive, bool inAriaLabelledByTraversal, A XObjectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*, bool* fo undTextAlternative) const; 909 String ariaTextAlternative(bool recursive, bool inAriaLabelledByTraversal, A XObjectSet& visited, AXNameFrom&, AXRelatedObjectVector*, NameSources*, bool* fo undTextAlternative) const;
910 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited , WillBeHeapVector<RawPtrWillBeMember<Element>>& elements, AXRelatedObjectVector * relatedObjects) const; 910 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited , HeapVector<Member<Element>>& elements, AXRelatedObjectVector* relatedObjects) const;
911 void tokenVectorFromAttribute(Vector<String>&, const QualifiedName&) const; 911 void tokenVectorFromAttribute(Vector<String>&, const QualifiedName&) const;
912 void elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element>>& el ements, const QualifiedName&) const; 912 void elementsFromAttribute(HeapVector<Member<Element>>& elements, const Qual ifiedName&) const;
913 void ariaLabelledbyElementVector(WillBeHeapVector<RawPtrWillBeMember<Element >>& elements) const; 913 void ariaLabelledbyElementVector(HeapVector<Member<Element>>& elements) cons t;
914 String textFromAriaLabelledby(AXObjectSet& visited, AXRelatedObjectVector* r elatedObjects) const; 914 String textFromAriaLabelledby(AXObjectSet& visited, AXRelatedObjectVector* r elatedObjects) const;
915 String textFromAriaDescribedby(AXRelatedObjectVector* relatedObjects) const; 915 String textFromAriaDescribedby(AXRelatedObjectVector* relatedObjects) const;
916 916
917 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; } 917 virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; }
918 918
919 virtual bool nameFromContents() const; 919 virtual bool nameFromContents() const;
920 920
921 AccessibilityRole buttonRoleType() const; 921 AccessibilityRole buttonRoleType() const;
922 922
923 mutable Member<AXObject> m_parent; 923 mutable Member<AXObject> m_parent;
(...skipping 25 matching lines...) Expand all
949 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 949 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
950 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 950 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
951 951
952 } // namespace blink 952 } // namespace blink
953 953
954 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); 954 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason);
955 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); 955 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource);
956 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); 956 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource);
957 957
958 #endif // AXObject_h 958 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698