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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 bool isControl() const override; | 101 bool isControl() const override; |
102 bool isControllingVideoElement() const; | 102 bool isControllingVideoElement() const; |
103 bool isEditable() const override { return isTextControl(); } | 103 bool isEditable() const override { return isTextControl(); } |
104 bool isEmbeddedObject() const final; | 104 bool isEmbeddedObject() const final; |
105 bool isFieldset() const final; | 105 bool isFieldset() const final; |
106 bool isHeading() const final; | 106 bool isHeading() const final; |
107 bool isHovered() const final; | 107 bool isHovered() const final; |
108 bool isImage() const final; | 108 bool isImage() const final; |
109 bool isImageButton() const; | 109 bool isImageButton() const; |
110 bool isInputImage() const final; | 110 bool isInputImage() const final; |
111 bool isLink() const final; | 111 bool isLink() const override; |
112 bool isMenu() const final; | 112 bool isMenu() const final; |
113 bool isMenuButton() const final; | 113 bool isMenuButton() const final; |
114 bool isMeter() const final; | 114 bool isMeter() const final; |
115 bool isMultiSelectable() const override; | 115 bool isMultiSelectable() const override; |
116 bool isNativeImage() const; | 116 bool isNativeImage() const; |
117 bool isNativeTextControl() const final; | 117 bool isNativeTextControl() const final; |
118 bool isNonNativeTextControl() const final; | 118 bool isNonNativeTextControl() const final; |
119 bool isPasswordField() const final; | 119 bool isPasswordField() const final; |
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(); } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 // Low-level accessibility tree exploration. | 184 // Low-level accessibility tree exploration. |
185 AXObject* firstChild() const override; | 185 AXObject* firstChild() const override; |
186 AXObject* nextSibling() const override; | 186 AXObject* nextSibling() const override; |
187 void addChildren() override; | 187 void addChildren() override; |
188 bool canHaveChildren() const override; | 188 bool canHaveChildren() const override; |
189 void addChild(AXObject*); | 189 void addChild(AXObject*); |
190 void insertChild(AXObject*, unsigned index); | 190 void insertChild(AXObject*, unsigned index); |
191 | 191 |
192 // DOM and Render tree access. | 192 // DOM and Render tree access. |
193 Element* actionElement() const final; | 193 Element* actionElement() const override; |
194 Element* anchorElement() const override; | 194 Element* anchorElement() const override; |
195 Document* document() const override; | 195 Document* document() const override; |
196 Node* node() const override { return m_node; } | 196 Node* node() const override { return m_node; } |
197 | 197 |
198 // Modify or take an action on an object. | 198 // Modify or take an action on an object. |
199 void setFocused(bool) final; | 199 void setFocused(bool) final; |
200 void increment() final; | 200 void increment() final; |
201 void decrement() final; | 201 void decrement() final; |
202 | 202 |
203 // Notifications that this object may have changed. | 203 // Notifications that this object may have changed. |
(...skipping 17 matching lines...) Expand all Loading... |
221 void deprecatedAriaLabelledbyText(HeapVector<Member<AccessibilityText>>&) co
nst; | 221 void deprecatedAriaLabelledbyText(HeapVector<Member<AccessibilityText>>&) co
nst; |
222 | 222 |
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 }; | 232 }; |
232 | 233 |
233 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); | 234 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); |
234 | 235 |
235 } // namespace blink | 236 } // namespace blink |
236 | 237 |
237 #endif // AXNodeObject_h | 238 #endif // AXNodeObject_h |
OLD | NEW |