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

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

Issue 616473002: Expose IA and IA2 role and state for HTML input type attributes related to date and time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DISABLE AX test for input type month for WIN Platform Created 6 years, 2 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_enum_conversion.cc
diff --git a/content/renderer/accessibility/blink_ax_enum_conversion.cc b/content/renderer/accessibility/blink_ax_enum_conversion.cc
index f6fe8cd3a7632f6aa53f214b4dcd67df857b6992..a8fa4b58e5cd0e86629b1dd16d43b5026699bb67 100644
--- a/content/renderer/accessibility/blink_ax_enum_conversion.cc
+++ b/content/renderer/accessibility/blink_ax_enum_conversion.cc
@@ -118,6 +118,10 @@ ui::AXRole AXRoleFromBlink(blink::WebAXRole role) {
return ui::AX_ROLE_COMPLEMENTARY;
case blink::WebAXRoleContentInfo:
return ui::AX_ROLE_CONTENT_INFO;
+ case blink::WebAXRoleDate:
+ return ui::AX_ROLE_DATE;
+ case blink::WebAXRoleDateTime:
+ return ui::AX_ROLE_DATE_TIME;
case blink::WebAXRoleDefinition:
return ui::AX_ROLE_DEFINITION;
case blink::WebAXRoleDescriptionListDetail:
@@ -300,6 +304,8 @@ ui::AXRole AXRoleFromBlink(blink::WebAXRole role) {
return ui::AX_ROLE_TEXT_AREA;
case blink::WebAXRoleTextField:
return ui::AX_ROLE_TEXT_FIELD;
+ case blink::WebAXRoleTime:
+ return ui::AX_ROLE_TIME;
case blink::WebAXRoleTimer:
return ui::AX_ROLE_TIMER;
case blink::WebAXRoleToggleButton:

Powered by Google App Engine
This is Rietveld 408576698