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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month 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 | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.cc
diff --git a/ui/accessibility/ax_node_data.cc b/ui/accessibility/ax_node_data.cc
index 280e10b602dd9955ead84368fc18d4a43a765654..194880cc52be26e41f21fe3be2f6ff7619badf50 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -389,8 +389,13 @@ std::string AXNodeData::ToString() const {
break;
}
break;
- case AX_ATTR_TITLE_UI_ELEMENT:
- result += " title_elem=" + value;
+ case AX_ATTR_NAME_FROM:
+ result += " name_from=" + ui::ToString(
+ static_cast<ui::AXNameFrom>(int_attributes[i].second));
+ break;
+ case AX_ATTR_DESCRIPTION_FROM:
+ result += " description_from=" + ui::ToString(
+ static_cast<ui::AXDescriptionFrom>(int_attributes[i].second));
break;
case AX_ATTR_ACTIVEDESCENDANT_ID:
result += " activedescendant=" + value;
@@ -488,9 +493,6 @@ std::string AXNodeData::ToString() const {
case AX_ATTR_DISPLAY:
result += " display=" + value;
break;
- case AX_ATTR_HELP:
- result += " help=" + value;
- break;
case AX_ATTR_HTML_TAG:
result += " html_tag=" + value;
break;
@@ -510,7 +512,7 @@ std::string AXNodeData::ToString() const {
result += " container_live=" + value;
break;
case AX_ATTR_PLACEHOLDER:
- result += "placeholder" + value;
+ result += " placeholder=" + value;
break;
case AX_ATTR_ROLE:
result += " role=" + value;
@@ -605,9 +607,6 @@ std::string AXNodeData::ToString() const {
case AX_ATTR_LABELLEDBY_IDS:
result += " labelledby_ids=" + IntVectorToString(values);
break;
- case AX_ATTR_OWNS_IDS:
- result += " owns_ids=" + IntVectorToString(values);
- break;
case AX_ATTR_LINE_BREAKS:
result += " line_breaks=" + IntVectorToString(values);
break;
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698