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

Unified Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 785943002: ARIA state/property aria-autocomplete should expose IA2_STATE_SUPPORTS_AUTOCOMPLETION. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating expectations 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
« no previous file with comments | « no previous file | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc
index a6173c2e63e20fb716facdb1ff4d6a4837382a5c..9ea39a761d590fa3db21cc480779ad55111a12ce 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -2909,6 +2909,9 @@ void BrowserAccessibilityWin::OnDataChanged() {
InitRoleAndState();
+ // Expose autocomplete attribute for combobox and textbox.
+ StringAttributeToIA2(ui::AX_ATTR_AUTO_COMPLETE, "autocomplete");
+
// Expose the "display" and "tag" attributes.
StringAttributeToIA2(ui::AX_ATTR_DISPLAY, "display");
StringAttributeToIA2(ui::AX_ATTR_TEXT_INPUT_TYPE, "text-input-type");
@@ -3380,6 +3383,9 @@ void BrowserAccessibilityWin::InitRoleAndState() {
if (GetBoolAttribute(ui::AX_ATTR_CAN_SET_VALUE))
ia2_state_ |= IA2_STATE_EDITABLE;
+ if (!GetStringAttribute(ui::AX_ATTR_AUTO_COMPLETE).empty())
+ ia2_state_ |= IA2_STATE_SUPPORTS_AUTOCOMPLETION;
+
base::string16 html_tag = GetString16Attribute(
ui::AX_ATTR_HTML_TAG);
ia_role_ = 0;
« no previous file with comments | « no previous file | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698