OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // Low-level accessibility tree exploration, only for use within the accessi
bility module. | 156 // Low-level accessibility tree exploration, only for use within the accessi
bility module. |
157 virtual AXObject* firstChild() const override; | 157 virtual AXObject* firstChild() const override; |
158 virtual AXObject* nextSibling() const override; | 158 virtual AXObject* nextSibling() const override; |
159 virtual void addChildren() override; | 159 virtual void addChildren() override; |
160 virtual bool canHaveChildren() const override; | 160 virtual bool canHaveChildren() const override; |
161 virtual void updateChildrenIfNecessary() override; | 161 virtual void updateChildrenIfNecessary() override; |
162 virtual bool needsToUpdateChildren() const override { return m_childrenDirty
; } | 162 virtual bool needsToUpdateChildren() const override { return m_childrenDirty
; } |
163 virtual void setNeedsToUpdateChildren() override { m_childrenDirty = true; } | 163 virtual void setNeedsToUpdateChildren() override { m_childrenDirty = true; } |
164 virtual void clearChildren() override; | 164 virtual void clearChildren() override; |
165 virtual AXObject* observableObject() const override; | |
166 | 165 |
167 // Properties of the object's owning document or page. | 166 // Properties of the object's owning document or page. |
168 virtual double estimatedLoadingProgress() const override; | 167 virtual double estimatedLoadingProgress() const override; |
169 | 168 |
170 // DOM and layout tree access. | 169 // DOM and layout tree access. |
171 virtual Node* node() const override; | 170 virtual Node* node() const override; |
172 virtual Document* document() const override; | 171 virtual Document* document() const override; |
173 virtual FrameView* documentFrameView() const override; | 172 virtual FrameView* documentFrameView() const override; |
174 virtual Element* anchorElement() const override; | 173 virtual Element* anchorElement() const override; |
175 virtual Widget* widgetForAttachmentView() const override; | 174 virtual Widget* widgetForAttachmentView() const override; |
(...skipping 16 matching lines...) Expand all Loading... |
192 virtual VisiblePosition visiblePositionForIndex(int) const override; | 191 virtual VisiblePosition visiblePositionForIndex(int) const override; |
193 virtual void lineBreaks(Vector<int>&) const override; | 192 virtual void lineBreaks(Vector<int>&) const override; |
194 | 193 |
195 private: | 194 private: |
196 bool isAllowedChildOfTree() const; | 195 bool isAllowedChildOfTree() const; |
197 void ariaListboxSelectedChildren(AccessibilityChildrenVector&); | 196 void ariaListboxSelectedChildren(AccessibilityChildrenVector&); |
198 PlainTextRange ariaSelectedTextRange() const; | 197 PlainTextRange ariaSelectedTextRange() const; |
199 bool nodeIsTextControl(const Node*) const; | 198 bool nodeIsTextControl(const Node*) const; |
200 bool isTabItemSelected() const; | 199 bool isTabItemSelected() const; |
201 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co
nst; | 200 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co
nst; |
202 bool layoutObjectIsObservable(LayoutObject*) const; | |
203 LayoutObject* layoutParentObject() const; | 201 LayoutObject* layoutParentObject() const; |
204 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; | 202 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; |
205 bool isSVGImage() const; | 203 bool isSVGImage() const; |
206 void detachRemoteSVGRoot(); | 204 void detachRemoteSVGRoot(); |
207 AXSVGRoot* remoteSVGRootElement() const; | 205 AXSVGRoot* remoteSVGRootElement() const; |
208 AXObject* remoteSVGElementHitTest(const IntPoint&) const; | 206 AXObject* remoteSVGElementHitTest(const IntPoint&) const; |
209 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; | 207 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; |
210 void addHiddenChildren(); | 208 void addHiddenChildren(); |
211 void addTextFieldChildren(); | 209 void addTextFieldChildren(); |
212 void addImageMapChildren(); | 210 void addImageMapChildren(); |
(...skipping 10 matching lines...) Expand all Loading... |
223 VisibleSelection selection() const; | 221 VisibleSelection selection() const; |
224 int indexForVisiblePosition(const VisiblePosition&) const; | 222 int indexForVisiblePosition(const VisiblePosition&) const; |
225 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi
ldrenVector&) const; | 223 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi
ldrenVector&) const; |
226 }; | 224 }; |
227 | 225 |
228 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); | 226 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); |
229 | 227 |
230 } // namespace blink | 228 } // namespace blink |
231 | 229 |
232 #endif // AXLayoutObject_h | 230 #endif // AXLayoutObject_h |
OLD | NEW |