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

Unified Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 1132963002: Handles conversion rule for TimeRole and updates InputTimeRole. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Maps InputTime role to ROLE_SYSTEM_GROUPING Created 5 years, 7 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/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 3d5907bb173dc076a05db267e23dc92230483243..6866ca987cf702d1326e51bc20a79c2c27a60062 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -4068,6 +4068,9 @@ void BrowserAccessibilityWin::InitRoleAndState() {
ia_state |= STATE_SYSTEM_LINKED;
ia_state |= STATE_SYSTEM_READONLY;
break;
+ case ui::AX_ROLE_INPUT_TIME:
+ ia_role = ROLE_SYSTEM_GROUPING;
+ break;
case ui::AX_ROLE_LABEL_TEXT:
case ui::AX_ROLE_LEGEND:
ia_role = ROLE_SYSTEM_TEXT;
@@ -4282,7 +4285,8 @@ void BrowserAccessibilityWin::InitRoleAndState() {
ia2_state |= IA2_STATE_SELECTABLE_TEXT;
break;
case ui::AX_ROLE_TIME:
- ia_role = ROLE_SYSTEM_SPINBUTTON;
+ ia_role = ROLE_SYSTEM_TEXT;
+ ia2_role = IA2_ROLE_TEXT_FRAME;
break;
case ui::AX_ROLE_TIMER:
ia_role = ROLE_SYSTEM_CLOCK;

Powered by Google App Engine
This is Rietveld 408576698