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

Unified Diff: ui/accessibility/platform/ax_platform_node_auralinux.cc

Issue 1009513005: Mapping roles to make Chrome UI accessible on linux(ATK). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_node_auralinux.cc
diff --git a/ui/accessibility/platform/ax_platform_node_auralinux.cc b/ui/accessibility/platform/ax_platform_node_auralinux.cc
index b675dc4a42ea1c277cb4c241eba563f7a2c39f04..3fed9e89a06bc509c47daed0e3b2539c187cf974 100644
--- a/ui/accessibility/platform/ax_platform_node_auralinux.cc
+++ b/ui/accessibility/platform/ax_platform_node_auralinux.cc
@@ -231,6 +231,8 @@ void AXPlatformNodeAuraLinux::SetApplication(AXPlatformNode* application) {
AtkRole AXPlatformNodeAuraLinux::GetAtkRole() {
switch (GetData().role) {
+ case ui::AX_ROLE_ALERT:
+ return ATK_ROLE_ALERT;
case ui::AX_ROLE_APPLICATION:
return ATK_ROLE_APPLICATION;
case ui::AX_ROLE_BUTTON:
@@ -239,10 +241,22 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkRole() {
return ATK_ROLE_CHECK_BOX;
case ui::AX_ROLE_COMBO_BOX:
return ATK_ROLE_COMBO_BOX;
+ case ui::AX_ROLE_GROUP:
+ return ATK_ROLE_PANEL;
+ case ui::AX_ROLE_MENU_ITEM:
+ return ATK_ROLE_MENU_ITEM;
+ case ui::AX_ROLE_SPLITTER:
+ return ATK_ROLE_SEPARATOR;
case ui::AX_ROLE_STATIC_TEXT:
return ATK_ROLE_TEXT;
+ case ui::AX_ROLE_TAB:
+ return ATK_ROLE_PAGE_TAB;
+ case ui::AX_ROLE_TAB_LIST:
+ return ATK_ROLE_PAGE_TAB_LIST;
case ui::AX_ROLE_TEXT_FIELD:
return ATK_ROLE_ENTRY;
+ case ui::AX_ROLE_TOOLBAR:
+ return ATK_ROLE_TOOL_BAR;
case ui::AX_ROLE_WINDOW:
return ATK_ROLE_WINDOW;
default:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698