Index: content/browser/accessibility/browser_accessibility_win.cc |
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc |
index e7b206c4fe6429a8fd91b05f7a09f20db461eaf0..cff3ddec8ed42bbf13120d35bd4870ce8063839a 100644 |
--- a/content/browser/accessibility/browser_accessibility_win.cc |
+++ b/content/browser/accessibility/browser_accessibility_win.cc |
@@ -3450,6 +3450,14 @@ void BrowserAccessibilityWin::InitRoleAndState() { |
ia_role_ = ROLE_SYSTEM_TEXT; |
ia2_role_ = IA2_ROLE_PARAGRAPH; |
break; |
+ case ui::AX_ROLE_DATE: |
+ ia_role_ = ROLE_SYSTEM_DROPLIST; |
+ ia2_role_ = IA2_ROLE_DATE_EDITOR; |
+ break; |
+ case ui::AX_ROLE_DATE_TIME: |
+ ia_role_ = ROLE_SYSTEM_DROPLIST; |
+ ia2_role_ = IA2_ROLE_DATE_EDITOR; |
+ break; |
case ui::AX_ROLE_DIV: |
role_name_ = L"div"; |
ia2_role_ = IA2_ROLE_SECTION; |
@@ -3768,6 +3776,9 @@ void BrowserAccessibilityWin::InitRoleAndState() { |
ia2_state_ |= IA2_STATE_EDITABLE; |
ia2_state_ |= IA2_STATE_SELECTABLE_TEXT; |
break; |
+ case ui::AX_ROLE_TIME: |
+ ia_role_ = ROLE_SYSTEM_SPINBUTTON; |
+ break; |
case ui::AX_ROLE_TIMER: |
ia_role_ = ROLE_SYSTEM_CLOCK; |
ia_state_ |= STATE_SYSTEM_READONLY; |