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

Side by Side Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 2948883003: Update AX role mapping for summary to AXButton on Mac (Closed)
Patch Set: Fixed duplicate resources error. Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "content/browser/accessibility/browser_accessibility_cocoa.h" 5 #import "content/browser/accessibility/browser_accessibility_cocoa.h"
6 6
7 #include <execinfo.h> 7 #include <execinfo.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 IDS_AX_ROLE_CONTENT_INFO)); 1448 IDS_AX_ROLE_CONTENT_INFO));
1449 case ui::AX_ROLE_DESCRIPTION_LIST: 1449 case ui::AX_ROLE_DESCRIPTION_LIST:
1450 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 1450 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
1451 IDS_AX_ROLE_DESCRIPTION_LIST)); 1451 IDS_AX_ROLE_DESCRIPTION_LIST));
1452 case ui::AX_ROLE_DESCRIPTION_LIST_DETAIL: 1452 case ui::AX_ROLE_DESCRIPTION_LIST_DETAIL:
1453 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 1453 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
1454 IDS_AX_ROLE_DEFINITION)); 1454 IDS_AX_ROLE_DEFINITION));
1455 case ui::AX_ROLE_DESCRIPTION_LIST_TERM: 1455 case ui::AX_ROLE_DESCRIPTION_LIST_TERM:
1456 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 1456 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
1457 IDS_AX_ROLE_DESCRIPTION_TERM)); 1457 IDS_AX_ROLE_DESCRIPTION_TERM));
1458 case ui::AX_ROLE_DISCLOSURE_TRIANGLE:
1459 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
1460 IDS_AX_ROLE_DISCLOSURE_TRIANGLE));
1458 case ui::AX_ROLE_FIGURE: 1461 case ui::AX_ROLE_FIGURE:
1459 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 1462 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
1460 IDS_AX_ROLE_FIGURE)); 1463 IDS_AX_ROLE_FIGURE));
1461 case ui::AX_ROLE_FOOTER: 1464 case ui::AX_ROLE_FOOTER:
1462 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 1465 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
1463 IDS_AX_ROLE_FOOTER)); 1466 IDS_AX_ROLE_FOOTER));
1464 case ui::AX_ROLE_FORM: 1467 case ui::AX_ROLE_FORM:
1465 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 1468 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
1466 IDS_AX_ROLE_FORM)); 1469 IDS_AX_ROLE_FORM));
1467 case ui::AX_ROLE_MAIN: 1470 case ui::AX_ROLE_MAIN:
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2879 } 2882 }
2880 2883
2881 - (BOOL)accessibilityNotifiesWhenDestroyed { 2884 - (BOOL)accessibilityNotifiesWhenDestroyed {
2882 // Indicate that BrowserAccessibilityCocoa will post a notification when it's 2885 // Indicate that BrowserAccessibilityCocoa will post a notification when it's
2883 // destroyed (see -detach). This allows VoiceOver to do some internal things 2886 // destroyed (see -detach). This allows VoiceOver to do some internal things
2884 // more efficiently. 2887 // more efficiently.
2885 return YES; 2888 return YES;
2886 } 2889 }
2887 2890
2888 @end 2891 @end
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/test/data/accessibility/html/details-expected-mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698