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

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

Issue 657513002: HTML Meter tag should have MSAA+IA2 as ROLE_SYSTEM_PROGRESSBAR. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/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..51c0dc6560b3e9aeff52d5299591821c41c9c389 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -3452,6 +3452,7 @@ void BrowserAccessibilityWin::InitRoleAndState() {
break;
case ui::AX_ROLE_DIV:
role_name_ = L"div";
+ ia_role_ = ROLE_SYSTEM_GROUPING;
ia2_role_ = IA2_ROLE_SECTION;
break;
case ui::AX_ROLE_DEFINITION:
@@ -3474,6 +3475,7 @@ void BrowserAccessibilityWin::InitRoleAndState() {
ia_state_ |= STATE_SYSTEM_READONLY;
break;
case ui::AX_ROLE_DETAILS:
+ role_name_ = html_tag;
ia_role_ = ROLE_SYSTEM_GROUPING;
break;
case ui::AX_ROLE_DIALOG:
@@ -3636,6 +3638,10 @@ void BrowserAccessibilityWin::InitRoleAndState() {
ia_state_ |= STATE_SYSTEM_FOCUSED;
}
break;
+ case ui::AX_ROLE_METER:
+ role_name_ = html_tag;
+ ia_role_ = ROLE_SYSTEM_PROGRESSBAR;
+ break;
case ui::AX_ROLE_NAVIGATION:
ia_role_ = ROLE_SYSTEM_GROUPING;
ia2_role_ = IA2_ROLE_SECTION;

Powered by Google App Engine
This is Rietveld 408576698