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

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

Issue 1511603002: Merge to m48: Stops using SYSTEM_STATE_INDETERMINATE as it makes radio buttons appear to have a mix… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 years 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool isProgressIndicator() const override; 120 bool isProgressIndicator() const override;
121 bool isRichlyEditable() const override { return hasContentEditableAttributeS et(); } 121 bool isRichlyEditable() const override { return hasContentEditableAttributeS et(); }
122 bool isSlider() const override; 122 bool isSlider() const override;
123 bool isNativeSlider() const override; 123 bool isNativeSlider() const override;
124 124
125 // Check object state. 125 // Check object state.
126 bool isChecked() const final; 126 bool isChecked() const final;
127 bool isClickable() const final; 127 bool isClickable() const final;
128 bool isEnabled() const override; 128 bool isEnabled() const override;
129 AccessibilityExpanded isExpanded() const override; 129 AccessibilityExpanded isExpanded() const override;
130 bool isIndeterminate() const final;
131 bool isPressed() const final; 130 bool isPressed() const final;
132 bool isReadOnly() const override; 131 bool isReadOnly() const override;
133 bool isRequired() const final; 132 bool isRequired() const final;
134 133
135 // Check whether certain properties can be modified. 134 // Check whether certain properties can be modified.
136 bool canSetFocusAttribute() const override; 135 bool canSetFocusAttribute() const override;
137 bool canSetValueAttribute() const override; 136 bool canSetValueAttribute() const override;
138 137
139 // Properties of static elements. 138 // Properties of static elements.
140 RGBA32 colorValue() const final; 139 RGBA32 colorValue() const final;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Aria-owns. 212 // Aria-owns.
214 void computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedChildren); 213 void computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedChildren);
215 214
216 private: 215 private:
217 RawPtrWillBeMember<Node> m_node; 216 RawPtrWillBeMember<Node> m_node;
218 217
219 String deprecatedAlternativeTextForWebArea() const; 218 String deprecatedAlternativeTextForWebArea() const;
220 void deprecatedAlternativeText(HeapVector<Member<AccessibilityText>>&) const ; 219 void deprecatedAlternativeText(HeapVector<Member<AccessibilityText>>&) const ;
221 void deprecatedAriaLabelledbyText(HeapVector<Member<AccessibilityText>>&) co nst; 220 void deprecatedAriaLabelledbyText(HeapVector<Member<AccessibilityText>>&) co nst;
222 221
222 bool isNativeCheckboxInMixedState() const;
223 String textFromDescendants(AXObjectSet& visited) const; 223 String textFromDescendants(AXObjectSet& visited) const;
224 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited , WillBeHeapVector<RawPtrWillBeMember<Element>>& elements, AXRelatedObjectVector * relatedObjects) const; 224 String textFromElements(bool inAriaLabelledByTraversal, AXObjectSet& visited , WillBeHeapVector<RawPtrWillBeMember<Element>>& elements, AXRelatedObjectVector * relatedObjects) const;
225 String textFromAriaLabelledby(AXObjectSet& visited, AXRelatedObjectVector* r elatedObjects) const; 225 String textFromAriaLabelledby(AXObjectSet& visited, AXRelatedObjectVector* r elatedObjects) const;
226 String textFromAriaDescribedby(AXRelatedObjectVector* relatedObjects) const; 226 String textFromAriaDescribedby(AXRelatedObjectVector* relatedObjects) const;
227 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const; 227 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const;
228 float stepValueForRange() const; 228 float stepValueForRange() const;
229 AXObject* findChildWithTagName(const HTMLQualifiedName&) const; 229 AXObject* findChildWithTagName(const HTMLQualifiedName&) const;
230 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; 230 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
231 String stringValueOfControl() const; 231 String stringValueOfControl() const;
232 }; 232 };
233 233
234 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); 234 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject());
235 235
236 } // namespace blink 236 } // namespace blink
237 237
238 #endif // AXNodeObject_h 238 #endif // AXNodeObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698