| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 bool IsNativeImage() const; | 119 bool IsNativeImage() const; |
| 120 bool IsNativeTextControl() const final; | 120 bool IsNativeTextControl() const final; |
| 121 bool IsNonNativeTextControl() const final; | 121 bool IsNonNativeTextControl() const final; |
| 122 bool IsPasswordField() const final; | 122 bool IsPasswordField() const final; |
| 123 bool IsProgressIndicator() const override; | 123 bool IsProgressIndicator() const override; |
| 124 bool IsRichlyEditable() const override; | 124 bool IsRichlyEditable() const override; |
| 125 bool IsSlider() const override; | 125 bool IsSlider() const override; |
| 126 bool IsNativeSlider() const override; | 126 bool IsNativeSlider() const override; |
| 127 | 127 |
| 128 // Check object state. | 128 // Check object state. |
| 129 bool IsChecked() const final; | |
| 130 bool IsClickable() const final; | 129 bool IsClickable() const final; |
| 131 bool IsEnabled() const override; | 130 bool IsEnabled() const override; |
| 132 AccessibilityExpanded IsExpanded() const override; | 131 AccessibilityExpanded IsExpanded() const override; |
| 133 bool IsModal() const final; | 132 bool IsModal() const final; |
| 134 bool IsPressed() const final; | 133 bool IsPressed() const final; |
| 135 bool IsReadOnly() const override; | 134 bool IsReadOnly() const override; |
| 136 bool IsRequired() const final; | 135 bool IsRequired() const final; |
| 137 | 136 |
| 138 // Check whether certain properties can be modified. | 137 // Check whether certain properties can be modified. |
| 139 bool CanSetFocusAttribute() const override; | 138 bool CanSetFocusAttribute() const override; |
| 140 bool CanSetValueAttribute() const override; | 139 bool CanSetValueAttribute() const override; |
| 141 bool CanSetSelectedAttribute() const override; | 140 bool CanSetSelectedAttribute() const override; |
| 142 | 141 |
| 143 // Properties of static elements. | 142 // Properties of static elements. |
| 144 RGBA32 ColorValue() const final; | 143 RGBA32 ColorValue() const final; |
| 145 bool CanvasHasFallbackContent() const final; | 144 bool CanvasHasFallbackContent() const final; |
| 146 int HeadingLevel() const final; | 145 int HeadingLevel() const final; |
| 147 unsigned HierarchicalLevel() const final; | 146 unsigned HierarchicalLevel() const final; |
| 148 void Markers(Vector<DocumentMarker::MarkerType>&, | 147 void Markers(Vector<DocumentMarker::MarkerType>&, |
| 149 Vector<AXRange>&) const override; | 148 Vector<AXRange>&) const override; |
| 150 AXObject* InPageLinkTarget() const override; | 149 AXObject* InPageLinkTarget() const override; |
| 151 AccessibilityOrientation Orientation() const override; | 150 AccessibilityOrientation Orientation() const override; |
| 152 AXObjectVector RadioButtonsInGroup() const override; | 151 AXObjectVector RadioButtonsInGroup() const override; |
| 153 static HeapVector<Member<HTMLInputElement>> FindAllRadioButtonsWithSameName( | 152 static HeapVector<Member<HTMLInputElement>> FindAllRadioButtonsWithSameName( |
| 154 HTMLInputElement* radio_button); | 153 HTMLInputElement* radio_button); |
| 155 String GetText() const override; | 154 String GetText() const override; |
| 156 | 155 |
| 157 // Properties of interactive elements. | 156 // Properties of interactive elements. |
| 158 AccessibilityButtonState CheckboxOrRadioValue() const final; | |
| 159 AriaCurrentState GetAriaCurrentState() const final; | 157 AriaCurrentState GetAriaCurrentState() const final; |
| 160 InvalidState GetInvalidState() const final; | 158 InvalidState GetInvalidState() const final; |
| 161 // Only used when invalidState() returns InvalidStateOther. | 159 // Only used when invalidState() returns InvalidStateOther. |
| 162 String AriaInvalidValue() const final; | 160 String AriaInvalidValue() const final; |
| 163 String ValueDescription() const override; | 161 String ValueDescription() const override; |
| 164 float ValueForRange() const override; | 162 float ValueForRange() const override; |
| 165 float MaxValueForRange() const override; | 163 float MaxValueForRange() const override; |
| 166 float MinValueForRange() const override; | 164 float MinValueForRange() const override; |
| 167 String StringValue() const override; | 165 String StringValue() const override; |
| 168 | 166 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 NameSources*, | 240 NameSources*, |
| 243 bool* found_text_alternative) const; | 241 bool* found_text_alternative) const; |
| 244 float StepValueForRange() const; | 242 float StepValueForRange() const; |
| 245 bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const; | 243 bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const; |
| 246 String PlaceholderFromNativeAttribute() const; | 244 String PlaceholderFromNativeAttribute() const; |
| 247 }; | 245 }; |
| 248 | 246 |
| 249 } // namespace blink | 247 } // namespace blink |
| 250 | 248 |
| 251 #endif // AXNodeObject_h | 249 #endif // AXNodeObject_h |
| OLD | NEW |