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

Unified Diff: Source/modules/accessibility/AXNodeObject.cpp

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: 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/accessibility/AXNodeObject.cpp
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp
index b78ff0024555c0a172b681137b3dc14676184b6e..fa66c165ad799c219b3ca4bc9043ea795262a06c 100644
--- a/Source/modules/accessibility/AXNodeObject.cpp
+++ b/Source/modules/accessibility/AXNodeObject.cpp
@@ -950,6 +950,16 @@ unsigned AXNodeObject::hierarchicalLevel() const
return level;
}
+String AXNodeObject::ariaAutoComplete() const
+{
+ const AtomicString& ariaAutoComplete = getAttribute(aria_autocompleteAttr);
+
+ if (roleValue() == ComboBoxRole || roleValue() == TextAreaRole)
dmazzoni 2014/12/09 16:19:35 This test should come first so we don't need to ca
+ return ariaAutoComplete;
+
+ return String();
+}
+
String AXNodeObject::text() const
{
// If this is a user defined static text, use the accessible name computation.

Powered by Google App Engine
This is Rietveld 408576698