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

Unified Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 682833003: AXRoleDescription is not exposed correctly for aside, main, nav element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments Created 6 years, 1 month 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 | « content/app/strings/content_strings.grd ('k') | content/test/data/accessibility/aside-expected-mac.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_cocoa.mm
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
index f433db3fceeb5b8d701b2b0f7e4d119a46e30783..ac81de7ab39d3f8fd4e8175fd59c8d220404de75 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -584,16 +584,24 @@ NSDictionary* attributeToMethodNameMap = nil;
case ui::AX_ROLE_ARTICLE:
return base::SysUTF16ToNSString(content_client->GetLocalizedString(
IDS_AX_ROLE_ARTICLE));
- break;
case ui::AX_ROLE_BANNER:
return base::SysUTF16ToNSString(content_client->GetLocalizedString(
IDS_AX_ROLE_BANNER));
+ case ui::AX_ROLE_COMPLEMENTARY:
+ return base::SysUTF16ToNSString(content_client->GetLocalizedString(
+ IDS_AX_ROLE_COMPLEMENTARY));
case ui::AX_ROLE_CONTENT_INFO:
return base::SysUTF16ToNSString(content_client->GetLocalizedString(
IDS_AX_ROLE_ADDRESS));
case ui::AX_ROLE_FOOTER:
return base::SysUTF16ToNSString(content_client->GetLocalizedString(
IDS_AX_ROLE_FOOTER));
+ case ui::AX_ROLE_MAIN:
+ return base::SysUTF16ToNSString(content_client->GetLocalizedString(
+ IDS_AX_ROLE_MAIN_CONTENT));
+ case ui::AX_ROLE_NAVIGATION:
+ return base::SysUTF16ToNSString(content_client->GetLocalizedString(
+ IDS_AX_ROLE_NAVIGATIONAL_LINK));
case ui::AX_ROLE_REGION:
return base::SysUTF16ToNSString(content_client->GetLocalizedString(
IDS_AX_ROLE_REGION));
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/test/data/accessibility/aside-expected-mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698