| OLD | NEW |
| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 bool isNativeImage() const; | 118 bool isNativeImage() const; |
| 119 bool isNativeTextControl() const final; | 119 bool isNativeTextControl() const final; |
| 120 bool isNonNativeTextControl() const final; | 120 bool isNonNativeTextControl() const final; |
| 121 bool isPasswordField() const final; | 121 bool isPasswordField() const final; |
| 122 bool isProgressIndicator() const override; | 122 bool isProgressIndicator() const override; |
| 123 bool isRichlyEditable() const override; | 123 bool isRichlyEditable() const override; |
| 124 bool isSlider() const override; | 124 bool isSlider() const override; |
| 125 bool isNativeSlider() const override; | 125 bool isNativeSlider() const override; |
| 126 | 126 |
| 127 // Check object state. | 127 // Check object state. |
| 128 bool isChecked() const final; | |
| 129 bool isClickable() const final; | 128 bool isClickable() const final; |
| 130 bool isEnabled() const override; | 129 bool isEnabled() const override; |
| 131 AccessibilityExpanded isExpanded() const override; | 130 AccessibilityExpanded isExpanded() const override; |
| 132 bool isModal() const final; | 131 bool isModal() const final; |
| 133 bool isPressed() const final; | 132 bool isPressed() const final; |
| 134 bool isReadOnly() const override; | 133 bool isReadOnly() const override; |
| 135 bool isRequired() const final; | 134 bool isRequired() const final; |
| 136 | 135 |
| 137 // Check whether certain properties can be modified. | 136 // Check whether certain properties can be modified. |
| 138 bool canSetFocusAttribute() const override; | 137 bool canSetFocusAttribute() const override; |
| 139 bool canSetValueAttribute() const override; | 138 bool canSetValueAttribute() const override; |
| 140 bool canSetSelectedAttribute() const override; | 139 bool canSetSelectedAttribute() const override; |
| 141 | 140 |
| 142 // Properties of static elements. | 141 // Properties of static elements. |
| 143 RGBA32 colorValue() const final; | 142 RGBA32 colorValue() const final; |
| 144 bool canvasHasFallbackContent() const final; | 143 bool canvasHasFallbackContent() const final; |
| 145 int headingLevel() const final; | 144 int headingLevel() const final; |
| 146 unsigned hierarchicalLevel() const final; | 145 unsigned hierarchicalLevel() const final; |
| 147 void markers(Vector<DocumentMarker::MarkerType>&, | 146 void markers(Vector<DocumentMarker::MarkerType>&, |
| 148 Vector<AXRange>&) const override; | 147 Vector<AXRange>&) const override; |
| 149 AccessibilityOrientation orientation() const override; | 148 AccessibilityOrientation orientation() const override; |
| 150 String text() const override; | 149 String text() const override; |
| 151 | 150 |
| 152 // Properties of interactive elements. | 151 // Properties of interactive elements. |
| 153 AccessibilityButtonState checkboxOrRadioValue() const final; | |
| 154 AriaCurrentState ariaCurrentState() const final; | 152 AriaCurrentState ariaCurrentState() const final; |
| 155 InvalidState getInvalidState() const final; | 153 InvalidState getInvalidState() const final; |
| 156 // Only used when invalidState() returns InvalidStateOther. | 154 // Only used when invalidState() returns InvalidStateOther. |
| 157 String ariaInvalidValue() const final; | 155 String ariaInvalidValue() const final; |
| 158 String valueDescription() const override; | 156 String valueDescription() const override; |
| 159 float valueForRange() const override; | 157 float valueForRange() const override; |
| 160 float maxValueForRange() const override; | 158 float maxValueForRange() const override; |
| 161 float minValueForRange() const override; | 159 float minValueForRange() const override; |
| 162 String stringValue() const override; | 160 String stringValue() const override; |
| 163 | 161 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 int posInSet() const override; | 219 int posInSet() const override; |
| 222 int setSize() const override; | 220 int setSize() const override; |
| 223 | 221 |
| 224 // Aria-owns. | 222 // Aria-owns. |
| 225 void computeAriaOwnsChildren( | 223 void computeAriaOwnsChildren( |
| 226 HeapVector<Member<AXObject>>& ownedChildren) const; | 224 HeapVector<Member<AXObject>>& ownedChildren) const; |
| 227 | 225 |
| 228 private: | 226 private: |
| 229 Member<Node> m_node; | 227 Member<Node> m_node; |
| 230 | 228 |
| 231 bool isNativeCheckboxInMixedState() const; | |
| 232 String textFromDescendants(AXObjectSet& visited, | 229 String textFromDescendants(AXObjectSet& visited, |
| 233 bool recursive) const override; | 230 bool recursive) const override; |
| 234 String nativeTextAlternative(AXObjectSet& visited, | 231 String nativeTextAlternative(AXObjectSet& visited, |
| 235 AXNameFrom&, | 232 AXNameFrom&, |
| 236 AXRelatedObjectVector*, | 233 AXRelatedObjectVector*, |
| 237 NameSources*, | 234 NameSources*, |
| 238 bool* foundTextAlternative) const; | 235 bool* foundTextAlternative) const; |
| 239 float stepValueForRange() const; | 236 float stepValueForRange() const; |
| 240 bool isDescendantOfElementType(HashSet<QualifiedName>& tagNames) const; | 237 bool isDescendantOfElementType(HashSet<QualifiedName>& tagNames) const; |
| 241 String placeholderFromNativeAttribute() const; | 238 String placeholderFromNativeAttribute() const; |
| 242 }; | 239 }; |
| 243 | 240 |
| 244 } // namespace blink | 241 } // namespace blink |
| 245 | 242 |
| 246 #endif // AXNodeObject_h | 243 #endif // AXNodeObject_h |
| OLD | NEW |