Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: Source/core/accessibility/AXRenderObject.h

Issue 23983002: Expose InlineTextBoxes in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 virtual String selectedText() const OVERRIDE; 184 virtual String selectedText() const OVERRIDE;
185 185
186 // Modify or take an action on an object. 186 // Modify or take an action on an object.
187 virtual void setSelectedTextRange(const PlainTextRange&) OVERRIDE; 187 virtual void setSelectedTextRange(const PlainTextRange&) OVERRIDE;
188 virtual void setValue(const String&) OVERRIDE; 188 virtual void setValue(const String&) OVERRIDE;
189 virtual void scrollTo(const IntPoint&) const OVERRIDE; 189 virtual void scrollTo(const IntPoint&) const OVERRIDE;
190 190
191 // Notifications that this object may have changed. 191 // Notifications that this object may have changed.
192 virtual void handleActiveDescendantChanged() OVERRIDE; 192 virtual void handleActiveDescendantChanged() OVERRIDE;
193 virtual void handleAriaExpandedChanged() OVERRIDE; 193 virtual void handleAriaExpandedChanged() OVERRIDE;
194 virtual void textChanged() OVERRIDE;
194 195
195 // Text metrics. Most of these should be deprecated, needs major cleanup. 196 // Text metrics. Most of these should be deprecated, needs major cleanup.
196 virtual int index(const VisiblePosition&) const OVERRIDE; 197 virtual int index(const VisiblePosition&) const OVERRIDE;
197 virtual VisiblePosition visiblePositionForIndex(int) const OVERRIDE; 198 virtual VisiblePosition visiblePositionForIndex(int) const OVERRIDE;
198 virtual void lineBreaks(Vector<int>&) const OVERRIDE; 199 virtual void lineBreaks(Vector<int>&) const OVERRIDE;
199 200
200 private: 201 private:
201 bool isAllowedChildOfTree() const; 202 bool isAllowedChildOfTree() const;
202 void ariaListboxSelectedChildren(AccessibilityChildrenVector&); 203 void ariaListboxSelectedChildren(AccessibilityChildrenVector&);
203 PlainTextRange ariaSelectedTextRange() const; 204 PlainTextRange ariaSelectedTextRange() const;
204 bool nodeIsTextControl(const Node*) const; 205 bool nodeIsTextControl(const Node*) const;
205 bool isTabItemSelected() const; 206 bool isTabItemSelected() const;
206 AXObject* internalLinkElement() const; 207 AXObject* internalLinkElement() const;
207 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst; 208 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst;
208 bool renderObjectIsObservable(RenderObject*) const; 209 bool renderObjectIsObservable(RenderObject*) const;
209 RenderObject* renderParentObject() const; 210 RenderObject* renderParentObject() const;
210 bool isDescendantOfElementType(const QualifiedName& tagName) const; 211 bool isDescendantOfElementType(const QualifiedName& tagName) const;
211 bool isSVGImage() const; 212 bool isSVGImage() const;
212 void detachRemoteSVGRoot(); 213 void detachRemoteSVGRoot();
213 AXSVGRoot* remoteSVGRootElement() const; 214 AXSVGRoot* remoteSVGRootElement() const;
214 AXObject* remoteSVGElementHitTest(const IntPoint&) const; 215 AXObject* remoteSVGElementHitTest(const IntPoint&) const;
215 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; 216 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const;
216 void addHiddenChildren(); 217 void addHiddenChildren();
217 void addTextFieldChildren(); 218 void addTextFieldChildren();
218 void addImageMapChildren(); 219 void addImageMapChildren();
219 void addCanvasChildren(); 220 void addCanvasChildren();
220 void addAttachmentChildren(); 221 void addAttachmentChildren();
221 void addRemoteSVGChildren(); 222 void addRemoteSVGChildren();
223 void addInlineTextBoxChildren();
224
222 void ariaSelectedRows(AccessibilityChildrenVector&); 225 void ariaSelectedRows(AccessibilityChildrenVector&);
223 bool elementAttributeValue(const QualifiedName&) const; 226 bool elementAttributeValue(const QualifiedName&) const;
224 bool inheritsPresentationalRole() const; 227 bool inheritsPresentationalRole() const;
225 LayoutRect computeElementRect() const; 228 LayoutRect computeElementRect() const;
226 VisibleSelection selection() const; 229 VisibleSelection selection() const;
227 String stringForRange(const PlainTextRange&) const; 230 String stringForRange(const PlainTextRange&) const;
228 int indexForVisiblePosition(const VisiblePosition&) const; 231 int indexForVisiblePosition(const VisiblePosition&) const;
229 }; 232 };
230 233
231 inline AXRenderObject* toAXRenderObject(AXObject* object) 234 inline AXRenderObject* toAXRenderObject(AXObject* object)
232 { 235 {
233 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXRenderObject()); 236 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXRenderObject());
234 return static_cast<AXRenderObject*>(object); 237 return static_cast<AXRenderObject*>(object);
235 } 238 }
236 239
237 inline const AXRenderObject* toAXRenderObject(const AXObject* object) 240 inline const AXRenderObject* toAXRenderObject(const AXObject* object)
238 { 241 {
239 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXRenderObject()); 242 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXRenderObject());
240 return static_cast<const AXRenderObject*>(object); 243 return static_cast<const AXRenderObject*>(object);
241 } 244 }
242 245
243 // This will catch anyone doing an unnecessary cast. 246 // This will catch anyone doing an unnecessary cast.
244 void toAXRenderObject(const AXRenderObject*); 247 void toAXRenderObject(const AXRenderObject*);
245 248
246 } // namespace WebCore 249 } // namespace WebCore
247 250
248 #endif // AXRenderObject_h 251 #endif // AXRenderObject_h
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObjectCache.cpp ('k') | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698