summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_accessibility.cc
diff options
context:
space:
mode:
authorklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 18:43:06 +0000
committerklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 18:43:06 +0000
commita4a16bbc5a15fecf65d04128b55e51298286c15a (patch)
tree43c94b677381b7124c40774c9272968c1ca05370 /chrome/browser/browser_accessibility.cc
parent16fb874ec28ae410d5e172da4fd89c8a2ed01078 (diff)
downloadchromium_src-a4a16bbc5a15fecf65d04128b55e51298286c15a.zip
chromium_src-a4a16bbc5a15fecf65d04128b55e51298286c15a.tar.gz
chromium_src-a4a16bbc5a15fecf65d04128b55e51298286c15a.tar.bz2
Adds support for WAI-ARIA roles application, document, radiogroup, region, separator, status and tooltip.
BUG=19982 TEST=Assign @role application, document, radiogroup, region, separator, status or tooltip to any dom element, and use Inspect32 (or similar tool) to see it exposed correctly. Review URL: http://codereview.chromium.org/174382 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24262 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_accessibility.cc')
-rw-r--r--chrome/browser/browser_accessibility.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/browser_accessibility.cc b/chrome/browser/browser_accessibility.cc
index 83534bf..187e456 100644
--- a/chrome/browser/browser_accessibility.cc
+++ b/chrome/browser/browser_accessibility.cc
@@ -559,6 +559,8 @@ const WebAccessibility::OutParams& BrowserAccessibility::response() {
long BrowserAccessibility::MSAARole(long browser_accessibility_role) {
switch (browser_accessibility_role) {
+ case WebAccessibility::ROLE_APPLICATION:
+ return ROLE_SYSTEM_APPLICATION;
case WebAccessibility::ROLE_CELL:
return ROLE_SYSTEM_CELL;
case WebAccessibility::ROLE_CHECKBUTTON:
@@ -598,16 +600,22 @@ long BrowserAccessibility::MSAARole(long browser_accessibility_role) {
return ROLE_SYSTEM_ROW;
case WebAccessibility::ROLE_ROWHEADER:
return ROLE_SYSTEM_ROWHEADER;
+ case WebAccessibility::ROLE_SEPARATOR:
+ return ROLE_SYSTEM_SEPARATOR;
case WebAccessibility::ROLE_SLIDER:
return ROLE_SYSTEM_SLIDER;
case WebAccessibility::ROLE_STATICTEXT:
return ROLE_SYSTEM_STATICTEXT;
+ case WebAccessibility::ROLE_STATUSBAR:
+ return ROLE_SYSTEM_STATUSBAR;
case WebAccessibility::ROLE_TABLE:
return ROLE_SYSTEM_TABLE;
case WebAccessibility::ROLE_TEXT:
return ROLE_SYSTEM_TEXT;
case WebAccessibility::ROLE_TOOLBAR:
return ROLE_SYSTEM_TOOLBAR;
+ case WebAccessibility::ROLE_TOOLTIP:
+ return ROLE_SYSTEM_TOOLTIP;
case WebAccessibility::ROLE_CLIENT:
default:
// This is the default role for MSAA.