| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const AXObjectImpl* InheritsPresentationalRoleFrom() const override; | 63 const AXObjectImpl* InheritsPresentationalRoleFrom() const override; |
| 64 virtual AccessibilityRole DetermineAccessibilityRole(); | 64 virtual AccessibilityRole DetermineAccessibilityRole(); |
| 65 virtual AccessibilityRole NativeAccessibilityRoleIgnoringAria() const; | 65 virtual AccessibilityRole NativeAccessibilityRoleIgnoringAria() const; |
| 66 String AccessibilityDescriptionForElements( | 66 String AccessibilityDescriptionForElements( |
| 67 HeapVector<Member<Element>>& elements) const; | 67 HeapVector<Member<Element>>& elements) const; |
| 68 void AlterSliderValue(bool increase); | 68 void AlterSliderValue(bool increase); |
| 69 AXObjectImpl* ActiveDescendant() override; | 69 AXObjectImpl* ActiveDescendant() override; |
| 70 String AriaAccessibilityDescription() const; | 70 String AriaAccessibilityDescription() const; |
| 71 String AriaAutoComplete() const; | 71 String AriaAutoComplete() const; |
| 72 AccessibilityRole DetermineAriaRoleAttribute() const; | 72 AccessibilityRole DetermineAriaRoleAttribute() const; |
| 73 void AccessibilityChildrenFromAttribute(QualifiedName attr, | 73 void AccessibilityChildrenFromAttribute( |
| 74 AXObjectImpl::AXObjectVector&) const; | 74 QualifiedName attr, |
| 75 AXObjectImpl::AXObjectImplVector&) const; |
| 75 | 76 |
| 76 bool HasContentEditableAttributeSet() const; | 77 bool HasContentEditableAttributeSet() const; |
| 77 bool IsTextControl() const override; | 78 bool IsTextControl() const override; |
| 78 // This returns true if it's focusable but it's not content editable and it's | 79 // This returns true if it's focusable but it's not content editable and it's |
| 79 // not a control or ARIA control. | 80 // not a control or ARIA control. |
| 80 bool IsGenericFocusableElement() const; | 81 bool IsGenericFocusableElement() const; |
| 81 AXObjectImpl* MenuButtonForMenu() const; | 82 AXObjectImpl* MenuButtonForMenu() const; |
| 82 Element* MenuItemElementForMenu() const; | 83 Element* MenuItemElementForMenu() const; |
| 83 Element* MouseButtonListener() const; | 84 Element* MouseButtonListener() const; |
| 84 AccessibilityRole RemapAriaRoleDueToParent(AccessibilityRole) const; | 85 AccessibilityRole RemapAriaRoleDueToParent(AccessibilityRole) const; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 143 |
| 143 // Properties of static elements. | 144 // Properties of static elements. |
| 144 RGBA32 ColorValue() const final; | 145 RGBA32 ColorValue() const final; |
| 145 bool CanvasHasFallbackContent() const final; | 146 bool CanvasHasFallbackContent() const final; |
| 146 int HeadingLevel() const final; | 147 int HeadingLevel() const final; |
| 147 unsigned HierarchicalLevel() const final; | 148 unsigned HierarchicalLevel() const final; |
| 148 void Markers(Vector<DocumentMarker::MarkerType>&, | 149 void Markers(Vector<DocumentMarker::MarkerType>&, |
| 149 Vector<AXRange>&) const override; | 150 Vector<AXRange>&) const override; |
| 150 AXObjectImpl* InPageLinkTarget() const override; | 151 AXObjectImpl* InPageLinkTarget() const override; |
| 151 AccessibilityOrientation Orientation() const override; | 152 AccessibilityOrientation Orientation() const override; |
| 152 AXObjectVector RadioButtonsInGroup() const override; | 153 AXObjectImplVector RadioButtonsInGroup() const override; |
| 153 static HeapVector<Member<HTMLInputElement>> FindAllRadioButtonsWithSameName( | 154 static HeapVector<Member<HTMLInputElement>> FindAllRadioButtonsWithSameName( |
| 154 HTMLInputElement* radio_button); | 155 HTMLInputElement* radio_button); |
| 155 String GetText() const override; | 156 String GetText() const override; |
| 156 | 157 |
| 157 // Properties of interactive elements. | 158 // Properties of interactive elements. |
| 158 AriaCurrentState GetAriaCurrentState() const final; | 159 AriaCurrentState GetAriaCurrentState() const final; |
| 159 InvalidState GetInvalidState() const final; | 160 InvalidState GetInvalidState() const final; |
| 160 // Only used when invalidState() returns InvalidStateOther. | 161 // Only used when invalidState() returns InvalidStateOther. |
| 161 String AriaInvalidValue() const final; | 162 String AriaInvalidValue() const final; |
| 162 String ValueDescription() const override; | 163 String ValueDescription() const override; |
| 163 float ValueForRange() const override; | 164 float ValueForRange() const override; |
| 164 float MaxValueForRange() const override; | 165 float MaxValueForRange() const override; |
| 165 float MinValueForRange() const override; | 166 float MinValueForRange() const override; |
| 166 String StringValue() const override; | 167 String StringValue() const override; |
| 167 | 168 |
| 168 // ARIA attributes. | 169 // ARIA attributes. |
| 169 AccessibilityRole AriaRoleAttribute() const final; | 170 AccessibilityRole AriaRoleAttribute() const final; |
| 170 | 171 |
| 171 // AX name calculation. | 172 // AX name calculation. |
| 172 String TextAlternative(bool recursive, | 173 String TextAlternative(bool recursive, |
| 173 bool in_aria_labelled_by_traversal, | 174 bool in_aria_labelled_by_traversal, |
| 174 AXObjectSet& visited, | 175 AXObjectSet& visited, |
| 175 AXNameFrom&, | 176 AXNameFrom&, |
| 176 AXRelatedObjectVector*, | 177 AXRelatedObjectVector*, |
| 177 NameSources*) const override; | 178 NameSources*) const override; |
| 178 String Description(AXNameFrom, | 179 String Description(AXNameFrom, |
| 179 AXDescriptionFrom&, | 180 AXDescriptionFrom&, |
| 180 AXObjectVector* description_objects) const override; | 181 AXObjectImplVector* description_objects) const override; |
| 181 String Description(AXNameFrom, | 182 String Description(AXNameFrom, |
| 182 AXDescriptionFrom&, | 183 AXDescriptionFrom&, |
| 183 DescriptionSources*, | 184 DescriptionSources*, |
| 184 AXRelatedObjectVector*) const override; | 185 AXRelatedObjectVector*) const override; |
| 185 String Placeholder(AXNameFrom) const override; | 186 String Placeholder(AXNameFrom) const override; |
| 186 bool NameFromLabelElement() const override; | 187 bool NameFromLabelElement() const override; |
| 187 | 188 |
| 188 // Location | 189 // Location |
| 189 void GetRelativeBounds(AXObjectImpl** out_container, | 190 void GetRelativeBounds(AXObjectImpl** out_container, |
| 190 FloatRect& out_bounds_in_container, | 191 FloatRect& out_bounds_in_container, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 NameSources*, | 241 NameSources*, |
| 241 bool* found_text_alternative) const; | 242 bool* found_text_alternative) const; |
| 242 float StepValueForRange() const; | 243 float StepValueForRange() const; |
| 243 bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const; | 244 bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const; |
| 244 String PlaceholderFromNativeAttribute() const; | 245 String PlaceholderFromNativeAttribute() const; |
| 245 }; | 246 }; |
| 246 | 247 |
| 247 } // namespace blink | 248 } // namespace blink |
| 248 | 249 |
| 249 #endif // AXNodeObject_h | 250 #endif // AXNodeObject_h |
| OLD | NEW |