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

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

Issue 806063004: Expose ARIA role status on MAC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding expectations for mac and android Created 5 years, 11 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 #include <execinfo.h> 5 #include <execinfo.h>
6 6
7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" 7 #import "content/browser/accessibility/browser_accessibility_cocoa.h"
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 case ui::AX_ROLE_NAVIGATION: 625 case ui::AX_ROLE_NAVIGATION:
626 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 626 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
627 IDS_AX_ROLE_NAVIGATIONAL_LINK)); 627 IDS_AX_ROLE_NAVIGATIONAL_LINK));
628 case ui::AX_ROLE_REGION: 628 case ui::AX_ROLE_REGION:
629 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 629 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
630 IDS_AX_ROLE_REGION)); 630 IDS_AX_ROLE_REGION));
631 case ui::AX_ROLE_SPIN_BUTTON: 631 case ui::AX_ROLE_SPIN_BUTTON:
632 // This control is similar to what VoiceOver calls a "stepper". 632 // This control is similar to what VoiceOver calls a "stepper".
633 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 633 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
634 IDS_AX_ROLE_STEPPER)); 634 IDS_AX_ROLE_STEPPER));
635 case ui::AX_ROLE_STATUS:
636 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
637 IDS_AX_ROLE_STATUS));
635 case ui::AX_ROLE_TOGGLE_BUTTON: 638 case ui::AX_ROLE_TOGGLE_BUTTON:
636 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 639 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
637 IDS_AX_ROLE_TOGGLE_BUTTON)); 640 IDS_AX_ROLE_TOGGLE_BUTTON));
638 default: 641 default:
639 break; 642 break;
640 } 643 }
641 644
642 return NSAccessibilityRoleDescription(role, nil); 645 return NSAccessibilityRoleDescription(role, nil);
643 } 646 }
644 647
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 return [super hash]; 1532 return [super hash];
1530 return browserAccessibility_->GetId(); 1533 return browserAccessibility_->GetId();
1531 } 1534 }
1532 1535
1533 - (BOOL)accessibilityShouldUseUniqueId { 1536 - (BOOL)accessibilityShouldUseUniqueId {
1534 return YES; 1537 return YES;
1535 } 1538 }
1536 1539
1537 @end 1540 @end
1538 1541
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698