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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 2863703003: A11y: Rename AXSupportedAction to AXDefaultActionVerb. (Closed)
Patch Set: Rebase. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_text_utils.h » ('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 ffaa3eb7405c963931605cb091fe9a8cd44d221d..3a02c6a4383c9baccbb179ceabf2bf849981e9b6 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -91,7 +91,7 @@ bool IsNodeIdIntAttribute(AXIntAttribute attr) {
// add a new attribute without explicitly considering whether it's
// a node id attribute or not.
case AX_INT_ATTRIBUTE_NONE:
- case AX_ATTR_ACTION:
+ case AX_ATTR_DEFAULT_ACTION_VERB:
case AX_ATTR_SCROLL_X:
case AX_ATTR_SCROLL_X_MIN:
case AX_ATTR_SCROLL_X_MAX:
@@ -455,11 +455,11 @@ std::string AXNodeData::ToString() const {
for (size_t i = 0; i < int_attributes.size(); ++i) {
std::string value = IntToString(int_attributes[i].second);
switch (int_attributes[i].first) {
- case AX_ATTR_ACTION:
+ case AX_ATTR_DEFAULT_ACTION_VERB:
result +=
" action=" +
- base::UTF16ToUTF8(ActionToUnlocalizedString(
- static_cast<AXSupportedAction>(int_attributes[i].second)));
+ base::UTF16ToUTF8(ActionVerbToUnlocalizedString(
+ static_cast<AXDefaultActionVerb>(int_attributes[i].second)));
break;
case AX_ATTR_SCROLL_X:
result += " scroll_x=" + value;
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_text_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698