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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.h

Issue 1939303002: Enable accessible name of a control to include multiple <label> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't modify visited set when computing aria-labelledby Created 4 years, 6 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 AXObject* activeDescendant() const override; 68 AXObject* activeDescendant() const override;
69 String ariaAccessibilityDescription() const; 69 String ariaAccessibilityDescription() const;
70 String ariaAutoComplete() const; 70 String ariaAutoComplete() const;
71 AccessibilityRole determineAriaRoleAttribute() const; 71 AccessibilityRole determineAriaRoleAttribute() const;
72 void accessibilityChildrenFromAttribute(QualifiedName attr, AXObject::AXObje ctVector&) const; 72 void accessibilityChildrenFromAttribute(QualifiedName attr, AXObject::AXObje ctVector&) const;
73 73
74 bool hasContentEditableAttributeSet() const; 74 bool hasContentEditableAttributeSet() const;
75 bool isTextControl() const override; 75 bool isTextControl() const override;
76 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control. 76 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control.
77 bool isGenericFocusableElement() const; 77 bool isGenericFocusableElement() const;
78 HTMLLabelElement* labelForElement(const Element*) const;
79 AXObject* menuButtonForMenu() const; 78 AXObject* menuButtonForMenu() const;
80 Element* menuItemElementForMenu() const; 79 Element* menuItemElementForMenu() const;
81 Element* mouseButtonListener() const; 80 Element* mouseButtonListener() const;
82 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const; 81 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const;
83 bool isNativeCheckboxOrRadio() const; 82 bool isNativeCheckboxOrRadio() const;
84 void setNode(Node*); 83 void setNode(Node*);
85 AXObject* correspondingControlForLabelElement() const; 84 AXObject* correspondingControlForLabelElement() const;
86 HTMLLabelElement* labelElementContainer() const; 85 HTMLLabelElement* labelElementContainer() const;
87 86
88 // 87 //
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 bool isNativeCheckboxInMixedState() const; 211 bool isNativeCheckboxInMixedState() const;
213 String textFromDescendants(AXObjectSet& visited, bool recursive) const overr ide; 212 String textFromDescendants(AXObjectSet& visited, bool recursive) const overr ide;
214 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const; 213 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const;
215 float stepValueForRange() const; 214 float stepValueForRange() const;
216 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; 215 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
217 }; 216 };
218 217
219 } // namespace blink 218 } // namespace blink
220 219
221 #endif // AXNodeObject_h 220 #endif // AXNodeObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698