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

Unified Diff: webkit/glue/glue_accessibility_object.cc

Issue 174382: Adds support for WAI-ARIA roles application, document, radiogroup, region, se... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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
« no previous file with comments | « chrome/browser/browser_accessibility.cc ('k') | webkit/glue/webaccessibility.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/glue_accessibility_object.cc
===================================================================
--- webkit/glue/glue_accessibility_object.cc (revision 24199)
+++ webkit/glue/glue_accessibility_object.cc (working copy)
@@ -365,6 +365,8 @@
// 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 @@
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 @@
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 @@
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.
« no previous file with comments | « chrome/browser/browser_accessibility.cc ('k') | webkit/glue/webaccessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698