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

Unified Diff: content/renderer/accessibility/blink_ax_tree_source.cc

Issue 609343002: xml-roles for input types {radio, range, button}, math (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: content/renderer/accessibility/blink_ax_tree_source.cc
diff --git a/content/renderer/accessibility/blink_ax_tree_source.cc b/content/renderer/accessibility/blink_ax_tree_source.cc
index 994550f32e8ef5396e158b04638d1fb2bfc3cfd4..80e8dca62e6ed0b00c6acbcb03ef8397ecdccea4 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -70,6 +70,8 @@ std::string GetEquivalentAriaRoleString(const ui::AXRole role) {
return "article";
case ui::AX_ROLE_BANNER:
return "banner";
+ case ui::AX_ROLE_BUTTON:
+ return "button";
case ui::AX_ROLE_COMPLEMENTARY:
return "complementary";
case ui::AX_ROLE_CONTENT_INFO:
@@ -81,10 +83,16 @@ std::string GetEquivalentAriaRoleString(const ui::AXRole role) {
return "img";
case ui::AX_ROLE_MAIN:
return "main";
+ case ui::AX_ROLE_MATH_ELEMENT:
+ return "math";
case ui::AX_ROLE_NAVIGATION:
return "navigation";
+ case ui::AX_ROLE_RADIO_BUTTON:
+ return "radio";
case ui::AX_ROLE_REGION:
return "region";
+ case ui::AX_ROLE_SLIDER:
+ return "slider";
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698