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

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: Created 4 years, 7 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 AXObject* activeDescendant() const override; 67 AXObject* activeDescendant() const override;
68 String ariaAccessibilityDescription() const; 68 String ariaAccessibilityDescription() const;
69 String ariaAutoComplete() const; 69 String ariaAutoComplete() const;
70 AccessibilityRole determineAriaRoleAttribute() const; 70 AccessibilityRole determineAriaRoleAttribute() const;
71 void accessibilityChildrenFromAttribute(QualifiedName attr, AXObject::AXObje ctVector&) const; 71 void accessibilityChildrenFromAttribute(QualifiedName attr, AXObject::AXObje ctVector&) const;
72 72
73 bool hasContentEditableAttributeSet() const; 73 bool hasContentEditableAttributeSet() const;
74 bool isTextControl() const override; 74 bool isTextControl() const override;
75 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control. 75 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control.
76 bool isGenericFocusableElement() const; 76 bool isGenericFocusableElement() const;
77 HTMLLabelElement* labelForElement(const Element*) const;
78 AXObject* menuButtonForMenu() const; 77 AXObject* menuButtonForMenu() const;
79 Element* menuItemElementForMenu() const; 78 Element* menuItemElementForMenu() const;
80 Element* mouseButtonListener() const; 79 Element* mouseButtonListener() const;
81 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const; 80 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const;
82 bool isNativeCheckboxOrRadio() const; 81 bool isNativeCheckboxOrRadio() const;
83 void setNode(Node*); 82 void setNode(Node*);
84 AXObject* correspondingControlForLabelElement() const; 83 AXObject* correspondingControlForLabelElement() const;
85 HTMLLabelElement* labelElementContainer() const; 84 HTMLLabelElement* labelElementContainer() const;
86 85
87 // 86 //
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool isNativeCheckboxInMixedState() const; 208 bool isNativeCheckboxInMixedState() const;
210 String textFromDescendants(AXObjectSet& visited, bool recursive) const overr ide; 209 String textFromDescendants(AXObjectSet& visited, bool recursive) const overr ide;
211 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const; 210 String nativeTextAlternative(AXObjectSet& visited, AXNameFrom&, AXRelatedObj ectVector*, NameSources*, bool* foundTextAlternative) const;
212 float stepValueForRange() const; 211 float stepValueForRange() const;
213 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; 212 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
214 }; 213 };
215 214
216 } // namespace blink 215 } // namespace blink
217 216
218 #endif // AXNodeObject_h 217 #endif // AXNodeObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698