summaryrefslogtreecommitdiffstats
path: root/webkit/glue/glue_accessibility_object.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 /webkit/glue/glue_accessibility_object.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 'webkit/glue/glue_accessibility_object.cc')
-rw-r--r--webkit/glue/glue_accessibility_object.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/webkit/glue/glue_accessibility_object.cc b/webkit/glue/glue_accessibility_object.cc
index d79bdea..0d82bd8 100644
--- a/webkit/glue/glue_accessibility_object.cc
+++ b/webkit/glue/glue_accessibility_object.cc
@@ -365,6 +365,8 @@ String GlueAccessibilityObject::description() const {
// WebAccessibility role (except for default role). Static function.
static WebAccessibility::Role SupportedRole(WebCore::AccessibilityRole role) {
switch (role) {
+ case WebCore::LandmarkApplicationRole:
+ return WebAccessibility::ROLE_APPLICATION;
case WebCore::CellRole:
return WebAccessibility::ROLE_CELL;
case WebCore::CheckBoxRole:
@@ -378,6 +380,8 @@ static WebAccessibility::Role SupportedRole(WebCore::AccessibilityRole role) {
case WebCore::ImageMapRole:
case WebCore::ImageRole:
return WebAccessibility::ROLE_GRAPHIC;
+ case WebCore::DocumentRegionRole:
+ case WebCore::RadioGroupRole:
case WebCore::GroupRole:
return WebAccessibility::ROLE_GROUPING;
case WebCore::LinkRole:
@@ -408,10 +412,14 @@ static WebAccessibility::Role SupportedRole(WebCore::AccessibilityRole role) {
return WebAccessibility::ROLE_ROW;
case WebCore::RowHeaderRole:
return WebAccessibility::ROLE_ROWHEADER;
+ case WebCore::SplitterRole:
+ return WebAccessibility::ROLE_SEPARATOR;
case WebCore::SliderRole:
return WebAccessibility::ROLE_SLIDER;
case WebCore::StaticTextRole:
return WebAccessibility::ROLE_STATICTEXT;
+ case WebCore::ApplicationStatusRole:
+ return WebAccessibility::ROLE_STATUSBAR;
case WebCore::TableRole:
return WebAccessibility::ROLE_TABLE;
case WebCore::ListMarkerRole:
@@ -420,6 +428,9 @@ static WebAccessibility::Role SupportedRole(WebCore::AccessibilityRole role) {
return WebAccessibility::ROLE_TEXT;
case WebCore::ToolbarRole:
return WebAccessibility::ROLE_TOOLBAR;
+ case WebCore::UserInterfaceTooltipRole:
+ return WebAccessibility::ROLE_TOOLTIP;
+ case WebCore::DocumentRole:
case WebCore::UnknownRole:
default:
// This is the default role.