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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 2518183002: Moved action verbs out of Blink. (Closed)
Patch Set: Exposes appropriate state and action names when controls are disabled. Created 4 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
Index: ui/accessibility/ax_node_data.cc
diff --git a/ui/accessibility/ax_node_data.cc b/ui/accessibility/ax_node_data.cc
index 66deec361b660a098663da34a9a7490dbd7b4af4..cb91aad4c18187fd321c1b916c5990e9bcef110a 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -392,6 +392,9 @@ 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:
+ result += " action=" + value;
dmazzoni 2016/11/29 16:28:11 Please print this as a string, something like ui:
+ break;
case AX_ATTR_SCROLL_X:
result += " scroll_x=" + value;
break;
@@ -595,9 +598,6 @@ std::string AXNodeData::ToString() const {
case AX_ATTR_ACCESS_KEY:
result += " access_key=" + value;
break;
- case AX_ATTR_ACTION:
- result += " action=" + value;
- break;
case AX_ATTR_ARIA_INVALID_VALUE:
result += " aria_invalid_value=" + value;
break;

Powered by Google App Engine
This is Rietveld 408576698