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

Unified Diff: Source/core/accessibility/AXNodeObject.cpp

Issue 612063002: 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/blink.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
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index a61cc2c436a3d6a0ac630045268493fa58a1ce91..5bf3d8cec5c2eeaa57fd0ba268828c23a8ae526b 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -213,6 +213,13 @@ AccessibilityRole AXNodeObject::determineAccessibilityRole()
return CheckBoxMenuItemRole;
return CheckBoxRole;
}
+ if (type == InputTypeNames::date)
+ return DateRole;
+ if (type == InputTypeNames::datetime
+ || type == InputTypeNames::datetime_local
+ || type == InputTypeNames::month
+ || type == InputTypeNames::week)
+ return DateTimeRole;
if (type == InputTypeNames::radio)
return RadioButtonRole;
if (input.isTextButton())
@@ -221,6 +228,8 @@ AccessibilityRole AXNodeObject::determineAccessibilityRole()
return SliderRole;
if (type == InputTypeNames::color)
return ColorWellRole;
+ if (type == InputTypeNames::time)
+ return TimeRole;
return TextFieldRole;
}
if (isHTMLSelectElement(*node())) {
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698