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

Unified Diff: views/accessibility/view_accessibility.cc

Issue 155446: Adds MSAA information to various (previously uncovered) bits of the UI, inclu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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: views/accessibility/view_accessibility.cc
===================================================================
--- views/accessibility/view_accessibility.cc (revision 20591)
+++ views/accessibility/view_accessibility.cc (working copy)
@@ -614,21 +614,29 @@
long ViewAccessibility::MSAARole(AccessibilityTypes::Role role) {
switch (role) {
- case AccessibilityTypes::ROLE_APPLICATION :
+ case AccessibilityTypes::ROLE_APPLICATION:
return ROLE_SYSTEM_APPLICATION;
- case AccessibilityTypes::ROLE_BUTTONDROPDOWN :
+ case AccessibilityTypes::ROLE_BUTTONDROPDOWN:
return ROLE_SYSTEM_BUTTONDROPDOWN;
- case AccessibilityTypes::ROLE_GROUPING :
+ case AccessibilityTypes::ROLE_BUTTONMENU:
+ return ROLE_SYSTEM_BUTTONMENU;
+ case AccessibilityTypes::ROLE_GROUPING:
return ROLE_SYSTEM_GROUPING;
- case AccessibilityTypes::ROLE_PAGETAB :
+ case AccessibilityTypes::ROLE_PAGETAB:
return ROLE_SYSTEM_PAGETAB;
- case AccessibilityTypes::ROLE_PUSHBUTTON :
+ case AccessibilityTypes::ROLE_PAGETABLIST:
+ return ROLE_SYSTEM_PAGETABLIST;
+ case AccessibilityTypes::ROLE_PUSHBUTTON:
return ROLE_SYSTEM_PUSHBUTTON;
- case AccessibilityTypes::ROLE_TEXT :
+ case AccessibilityTypes::ROLE_SEPARATOR:
+ return ROLE_SYSTEM_SEPARATOR;
+ case AccessibilityTypes::ROLE_TEXT:
return ROLE_SYSTEM_TEXT;
- case AccessibilityTypes::ROLE_TOOLBAR :
+ case AccessibilityTypes::ROLE_TOOLBAR:
return ROLE_SYSTEM_TOOLBAR;
- case AccessibilityTypes::ROLE_CLIENT :
+ case AccessibilityTypes::ROLE_WINDOW:
+ return ROLE_SYSTEM_WINDOW;
+ case AccessibilityTypes::ROLE_CLIENT:
default:
// This is the default role for MSAA.
return ROLE_SYSTEM_CLIENT;

Powered by Google App Engine
This is Rietveld 408576698