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

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

Issue 779513007: Introduce new API ariaAutoComplete() to expose correct state and object attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixing nit Created 6 years 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
« no previous file with comments | « Source/core/html/HTMLAttributeNames.in ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #if ENABLE(ASSERT) 54 #if ENABLE(ASSERT)
55 bool m_initialized; 55 bool m_initialized;
56 #endif 56 #endif
57 57
58 virtual bool computeAccessibilityIsIgnored() const override; 58 virtual bool computeAccessibilityIsIgnored() const override;
59 virtual AccessibilityRole determineAccessibilityRole(); 59 virtual AccessibilityRole determineAccessibilityRole();
60 AccessibilityRole determineAccessibilityRoleUtil(); 60 AccessibilityRole determineAccessibilityRoleUtil();
61 String accessibilityDescriptionForElements(WillBeHeapVector<RawPtrWillBeMemb er<Element> > &elements) const; 61 String accessibilityDescriptionForElements(WillBeHeapVector<RawPtrWillBeMemb er<Element> > &elements) const;
62 void alterSliderValue(bool increase); 62 void alterSliderValue(bool increase);
63 String ariaAccessibilityDescription() const; 63 String ariaAccessibilityDescription() const;
64 String ariaAutoComplete() const;
64 void ariaLabeledByElements(WillBeHeapVector<RawPtrWillBeMember<Element> >& e lements) const; 65 void ariaLabeledByElements(WillBeHeapVector<RawPtrWillBeMember<Element> >& e lements) const;
65 void changeValueByStep(bool increase); 66 void changeValueByStep(bool increase);
66 AccessibilityRole determineAriaRoleAttribute() const; 67 AccessibilityRole determineAriaRoleAttribute() const;
67 void elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element> >& e lements, const QualifiedName&) const; 68 void elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element> >& e lements, const QualifiedName&) const;
68 bool hasContentEditableAttributeSet() const; 69 bool hasContentEditableAttributeSet() const;
69 bool isDescendantOfBarrenParent() const; 70 bool isDescendantOfBarrenParent() const;
70 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control. 71 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control.
71 bool isGenericFocusableElement() const; 72 bool isGenericFocusableElement() const;
72 HTMLLabelElement* labelForElement(Element*) const; 73 HTMLLabelElement* labelForElement(Element*) const;
73 AXObject* menuButtonForMenu() const; 74 AXObject* menuButtonForMenu() const;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void changeValueByPercent(float percentChange); 198 void changeValueByPercent(float percentChange);
198 float stepValueForRange() const; 199 float stepValueForRange() const;
199 AXObject* findChildWithTagName(const HTMLQualifiedName&) const; 200 AXObject* findChildWithTagName(const HTMLQualifiedName&) const;
200 }; 201 };
201 202
202 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); 203 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject());
203 204
204 } // namespace blink 205 } // namespace blink
205 206
206 #endif // AXNodeObject_h 207 #endif // AXNodeObject_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAttributeNames.in ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698