Chromium Code Reviews

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

Issue 1488893002: Stops using SYSTEM_STATE_INDETERMINATE as it makes radio buttons appear to have a mixed state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a few test expectations. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 105 matching lines...)
116 bool isProgressIndicator() const override; 116 bool isProgressIndicator() const override;
117 bool isRichlyEditable() const override { return hasContentEditableAttributeS et(); } 117 bool isRichlyEditable() const override { return hasContentEditableAttributeS et(); }
118 bool isSlider() const override; 118 bool isSlider() const override;
119 bool isNativeSlider() const override; 119 bool isNativeSlider() const override;
120 120
121 // Check object state. 121 // Check object state.
122 bool isChecked() const final; 122 bool isChecked() const final;
123 bool isClickable() const final; 123 bool isClickable() const final;
124 bool isEnabled() const override; 124 bool isEnabled() const override;
125 AccessibilityExpanded isExpanded() const override; 125 AccessibilityExpanded isExpanded() const override;
126 bool isIndeterminate() const final;
127 bool isPressed() const final; 126 bool isPressed() const final;
128 bool isReadOnly() const override; 127 bool isReadOnly() const override;
129 bool isRequired() const final; 128 bool isRequired() const final;
130 129
131 // Check whether certain properties can be modified. 130 // Check whether certain properties can be modified.
132 bool canSetFocusAttribute() const override; 131 bool canSetFocusAttribute() const override;
133 bool canSetValueAttribute() const override; 132 bool canSetValueAttribute() const override;
134 133
135 // Properties of static elements. 134 // Properties of static elements.
136 RGBA32 colorValue() const final; 135 RGBA32 colorValue() const final;
(...skipping 61 matching lines...)
198 // Position in set and Size of set 197 // Position in set and Size of set
199 int posInSet() const override; 198 int posInSet() const override;
200 int setSize() const override; 199 int setSize() const override;
201 200
202 // Aria-owns. 201 // Aria-owns.
203 void computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedChildren); 202 void computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedChildren);
204 203
205 private: 204 private:
206 RawPtrWillBeMember<Node> m_node; 205 RawPtrWillBeMember<Node> m_node;
207 206
207 bool isNativeCheckboxInMixedState() const;
208 String textFromDescendants(AXObjectSet& visited) const; 208 String textFromDescendants(AXObjectSet& visited) const;
209 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const; 209 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const;
210 float stepValueForRange() const; 210 float stepValueForRange() const;
211 AXObject* findChildWithTagName(const HTMLQualifiedName&) const; 211 AXObject* findChildWithTagName(const HTMLQualifiedName&) const;
212 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; 212 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
213 }; 213 };
214 214
215 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); 215 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject());
216 216
217 } // namespace blink 217 } // namespace blink
218 218
219 #endif // AXNodeObject_h 219 #endif // AXNodeObject_h
OLDNEW

Powered by Google App Engine