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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // | 74 // |
75 // Overridden from AXObject. | 75 // Overridden from AXObject. |
76 // | 76 // |
77 | 77 |
78 void init() override; | 78 void init() override; |
79 void detach() override; | 79 void detach() override; |
80 bool isDetached() const override { return !m_layoutObject; } | 80 bool isDetached() const override { return !m_layoutObject; } |
81 bool isAXLayoutObject() const override { return true; } | 81 bool isAXLayoutObject() const override { return true; } |
82 | 82 |
83 // Check object role or purpose. | 83 // Check object role or purpose. |
84 bool isAttachment() const override; | |
85 bool isEditable() const override; | 84 bool isEditable() const override; |
86 bool isRichlyEditable() const override; | 85 bool isRichlyEditable() const override; |
87 bool isLinked() const override; | 86 bool isLinked() const override; |
88 bool isLoaded() const override; | 87 bool isLoaded() const override; |
89 bool isOffScreen() const override; | 88 bool isOffScreen() const override; |
90 bool isReadOnly() const override; | 89 bool isReadOnly() const override; |
91 bool isVisited() const override; | 90 bool isVisited() const override; |
92 | 91 |
93 // Check object state. | 92 // Check object state. |
94 bool isFocused() const override; | 93 bool isFocused() const override; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 void clearChildren() override; | 173 void clearChildren() override; |
175 | 174 |
176 // Properties of the object's owning document or page. | 175 // Properties of the object's owning document or page. |
177 double estimatedLoadingProgress() const override; | 176 double estimatedLoadingProgress() const override; |
178 | 177 |
179 // DOM and layout tree access. | 178 // DOM and layout tree access. |
180 Node* node() const override; | 179 Node* node() const override; |
181 Document* document() const override; | 180 Document* document() const override; |
182 FrameView* documentFrameView() const override; | 181 FrameView* documentFrameView() const override; |
183 Element* anchorElement() const override; | 182 Element* anchorElement() const override; |
184 Widget* widgetForAttachmentView() const override; | |
185 | 183 |
186 void setValue(const String&) override; | 184 void setValue(const String&) override; |
187 | 185 |
188 // Notifications that this object may have changed. | 186 // Notifications that this object may have changed. |
189 void handleActiveDescendantChanged() override; | 187 void handleActiveDescendantChanged() override; |
190 void handleAriaExpandedChanged() override; | 188 void handleAriaExpandedChanged() override; |
191 void textChanged() override; | 189 void textChanged() override; |
192 | 190 |
193 // Text metrics. Most of these should be deprecated, needs major cleanup. | 191 // Text metrics. Most of these should be deprecated, needs major cleanup. |
194 int index(const VisiblePosition&) const override; | 192 int index(const VisiblePosition&) const override; |
195 VisiblePosition visiblePositionForIndex(int) const override; | 193 VisiblePosition visiblePositionForIndex(int) const override; |
196 void lineBreaks(Vector<int>&) const override; | 194 void lineBreaks(Vector<int>&) const override; |
197 | 195 |
198 private: | 196 private: |
199 AXObject* treeAncestorDisallowingChild() const; | 197 AXObject* treeAncestorDisallowingChild() const; |
200 bool isTabItemSelected() const; | 198 bool isTabItemSelected() const; |
201 bool isValidSelectionBound(const AXObject*) const; | 199 bool isValidSelectionBound(const AXObject*) const; |
202 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co
nst; | 200 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co
nst; |
203 LayoutObject* layoutParentObject() const; | 201 LayoutObject* layoutParentObject() const; |
204 bool isSVGImage() const; | 202 bool isSVGImage() const; |
205 void detachRemoteSVGRoot(); | 203 void detachRemoteSVGRoot(); |
206 AXSVGRoot* remoteSVGRootElement() const; | 204 AXSVGRoot* remoteSVGRootElement() const; |
207 AXObject* remoteSVGElementHitTest(const IntPoint&) const; | 205 AXObject* remoteSVGElementHitTest(const IntPoint&) const; |
208 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; | 206 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; |
209 void addHiddenChildren(); | 207 void addHiddenChildren(); |
210 void addTextFieldChildren(); | 208 void addTextFieldChildren(); |
211 void addImageMapChildren(); | 209 void addImageMapChildren(); |
212 void addCanvasChildren(); | 210 void addCanvasChildren(); |
213 void addAttachmentChildren(); | 211 void addFrameChildren(); |
214 void addPopupChildren(); | 212 void addPopupChildren(); |
215 void addRemoteSVGChildren(); | 213 void addRemoteSVGChildren(); |
216 void addInlineTextBoxChildren(bool force); | 214 void addInlineTextBoxChildren(bool force); |
217 | 215 |
218 bool elementAttributeValue(const QualifiedName&) const; | 216 bool elementAttributeValue(const QualifiedName&) const; |
219 LayoutRect computeElementRect() const; | 217 LayoutRect computeElementRect() const; |
220 AXRange textControlSelection() const; | 218 AXRange textControlSelection() const; |
221 int indexForVisiblePosition(const VisiblePosition&) const; | 219 int indexForVisiblePosition(const VisiblePosition&) const; |
222 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; | 220 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; |
223 }; | 221 }; |
224 | 222 |
225 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); | 223 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); |
226 | 224 |
227 } // namespace blink | 225 } // namespace blink |
228 | 226 |
229 #endif // AXLayoutObject_h | 227 #endif // AXLayoutObject_h |
OLD | NEW |