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

Side by Side Diff: Source/modules/accessibility/AXLayoutObject.h

Issue 1012383002: Removes direct checking node on AXLayoutObject::determineAccessibilityRole. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update nits Created 5 years, 8 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
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 virtual void lineBreaks(Vector<int>&) const override; 192 virtual void lineBreaks(Vector<int>&) const override;
193 193
194 private: 194 private:
195 bool isAllowedChildOfTree() const; 195 bool isAllowedChildOfTree() const;
196 void ariaListboxSelectedChildren(AccessibilityChildrenVector&); 196 void ariaListboxSelectedChildren(AccessibilityChildrenVector&);
197 PlainTextRange ariaSelectedTextRange() const; 197 PlainTextRange ariaSelectedTextRange() const;
198 bool nodeIsTextControl(const Node*) const; 198 bool nodeIsTextControl(const Node*) const;
199 bool isTabItemSelected() const; 199 bool isTabItemSelected() const;
200 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst; 200 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst;
201 LayoutObject* layoutParentObject() const; 201 LayoutObject* layoutParentObject() const;
202 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
203 bool isSVGImage() const; 202 bool isSVGImage() const;
204 void detachRemoteSVGRoot(); 203 void detachRemoteSVGRoot();
205 AXSVGRoot* remoteSVGRootElement() const; 204 AXSVGRoot* remoteSVGRootElement() const;
206 AXObject* remoteSVGElementHitTest(const IntPoint&) const; 205 AXObject* remoteSVGElementHitTest(const IntPoint&) const;
207 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; 206 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const;
208 void addHiddenChildren(); 207 void addHiddenChildren();
209 void addTextFieldChildren(); 208 void addTextFieldChildren();
210 void addImageMapChildren(); 209 void addImageMapChildren();
211 void addCanvasChildren(); 210 void addCanvasChildren();
212 void addAttachmentChildren(); 211 void addAttachmentChildren();
213 void addPopupChildren(); 212 void addPopupChildren();
214 void addRemoteSVGChildren(); 213 void addRemoteSVGChildren();
215 void addInlineTextBoxChildren(bool force); 214 void addInlineTextBoxChildren(bool force);
216 215
217 void ariaSelectedRows(AccessibilityChildrenVector&); 216 void ariaSelectedRows(AccessibilityChildrenVector&);
218 bool elementAttributeValue(const QualifiedName&) const; 217 bool elementAttributeValue(const QualifiedName&) const;
219 LayoutRect computeElementRect() const; 218 LayoutRect computeElementRect() const;
220 VisibleSelection selection() const; 219 VisibleSelection selection() const;
221 int indexForVisiblePosition(const VisiblePosition&) const; 220 int indexForVisiblePosition(const VisiblePosition&) const;
222 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const; 221 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const;
223 }; 222 };
224 223
225 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 224 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
226 225
227 } // namespace blink 226 } // namespace blink
228 227
229 #endif // AXLayoutObject_h 228 #endif // AXLayoutObject_h
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/element-role-mapping-normal-expected.txt ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698