summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authorklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-27 21:04:35 +0000
committerklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-27 21:04:35 +0000
commit80b7f1a8bfd97d4d8b268329932efba1d4f49567 (patch)
tree6340716b37657e37d8f7b5b88b939c45d04bb2eb /webkit/glue
parent19d353286a4c0d2750315c924a4e24cdf2ba0566 (diff)
downloadchromium_src-80b7f1a8bfd97d4d8b268329932efba1d4f49567.zip
chromium_src-80b7f1a8bfd97d4d8b268329932efba1d4f49567.tar.gz
chromium_src-80b7f1a8bfd97d4d8b268329932efba1d4f49567.tar.bz2
Adds support for WAI-ARIA role option, by adding exposure of MSAA role ROLE_SYSTEM_LISTITEM.
BUG=19982 TEST=Assign @role option on a child element to either menu or listbox. It will be exposed as either menuitem or listitem, respectively. Review URL: http://codereview.chromium.org/173488 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/glue_accessibility_object.cc2
-rw-r--r--webkit/glue/webaccessibility.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/glue_accessibility_object.cc b/webkit/glue/glue_accessibility_object.cc
index 0d82bd8..37ead14 100644
--- a/webkit/glue/glue_accessibility_object.cc
+++ b/webkit/glue/glue_accessibility_object.cc
@@ -391,6 +391,8 @@ static WebAccessibility::Role SupportedRole(WebCore::AccessibilityRole role) {
return WebAccessibility::ROLE_LIST;
case WebCore::ListBoxRole:
return WebAccessibility::ROLE_LISTBOX;
+ case WebCore::ListBoxOptionRole:
+ return WebAccessibility::ROLE_LISTITEM;
case WebCore::MenuBarRole:
return WebAccessibility::ROLE_MENUBAR;
case WebCore::MenuButtonRole:
diff --git a/webkit/glue/webaccessibility.h b/webkit/glue/webaccessibility.h
index 5fa23ae..f57c06c 100644
--- a/webkit/glue/webaccessibility.h
+++ b/webkit/glue/webaccessibility.h
@@ -77,6 +77,7 @@ class WebAccessibility {
ROLE_LINK,
ROLE_LIST,
ROLE_LISTBOX,
+ ROLE_LISTITEM,
ROLE_MENUBAR,
ROLE_MENUITEM,
ROLE_MENUPOPUP,