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

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

Issue 405973004: Optimize / clean up hasTagName() call sites (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 private: 203 private:
204 bool isAllowedChildOfTree() const; 204 bool isAllowedChildOfTree() const;
205 void ariaListboxSelectedChildren(AccessibilityChildrenVector&); 205 void ariaListboxSelectedChildren(AccessibilityChildrenVector&);
206 PlainTextRange ariaSelectedTextRange() const; 206 PlainTextRange ariaSelectedTextRange() const;
207 bool nodeIsTextControl(const Node*) const; 207 bool nodeIsTextControl(const Node*) const;
208 bool isTabItemSelected() const; 208 bool isTabItemSelected() const;
209 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst; 209 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst;
210 bool renderObjectIsObservable(RenderObject*) const; 210 bool renderObjectIsObservable(RenderObject*) const;
211 RenderObject* renderParentObject() const; 211 RenderObject* renderParentObject() const;
212 bool isDescendantOfElementType(const QualifiedName& tagName) const; 212 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
213 bool isSVGImage() const; 213 bool isSVGImage() const;
214 void detachRemoteSVGRoot(); 214 void detachRemoteSVGRoot();
215 AXSVGRoot* remoteSVGRootElement() const; 215 AXSVGRoot* remoteSVGRootElement() const;
216 AXObject* remoteSVGElementHitTest(const IntPoint&) const; 216 AXObject* remoteSVGElementHitTest(const IntPoint&) const;
217 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; 217 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const;
218 void addHiddenChildren(); 218 void addHiddenChildren();
219 void addTextFieldChildren(); 219 void addTextFieldChildren();
220 void addImageMapChildren(); 220 void addImageMapChildren();
221 void addCanvasChildren(); 221 void addCanvasChildren();
222 void addAttachmentChildren(); 222 void addAttachmentChildren();
223 void addRemoteSVGChildren(); 223 void addRemoteSVGChildren();
224 void addInlineTextBoxChildren(); 224 void addInlineTextBoxChildren();
225 225
226 void ariaSelectedRows(AccessibilityChildrenVector&); 226 void ariaSelectedRows(AccessibilityChildrenVector&);
227 bool elementAttributeValue(const QualifiedName&) const; 227 bool elementAttributeValue(const QualifiedName&) const;
228 bool inheritsPresentationalRole() const; 228 bool inheritsPresentationalRole() const;
229 LayoutRect computeElementRect() const; 229 LayoutRect computeElementRect() const;
230 VisibleSelection selection() const; 230 VisibleSelection selection() const;
231 int indexForVisiblePosition(const VisiblePosition&) const; 231 int indexForVisiblePosition(const VisiblePosition&) const;
232 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const; 232 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const;
233 }; 233 };
234 234
235 DEFINE_AX_OBJECT_TYPE_CASTS(AXRenderObject, isAXRenderObject()); 235 DEFINE_AX_OBJECT_TYPE_CASTS(AXRenderObject, isAXRenderObject());
236 236
237 } // namespace blink 237 } // namespace blink
238 238
239 #endif // AXRenderObject_h 239 #endif // AXRenderObject_h
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXNodeObject.cpp ('k') | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698