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

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

Issue 1030333002: Chromium side Implementation of new roles added in ARIA 1.1 draft. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating failed expectations 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 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 case ui::AX_ROLE_REGION: 672 case ui::AX_ROLE_REGION:
673 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 673 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
674 IDS_AX_ROLE_REGION)); 674 IDS_AX_ROLE_REGION));
675 case ui::AX_ROLE_SPIN_BUTTON: 675 case ui::AX_ROLE_SPIN_BUTTON:
676 // This control is similar to what VoiceOver calls a "stepper". 676 // This control is similar to what VoiceOver calls a "stepper".
677 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 677 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
678 IDS_AX_ROLE_STEPPER)); 678 IDS_AX_ROLE_STEPPER));
679 case ui::AX_ROLE_STATUS: 679 case ui::AX_ROLE_STATUS:
680 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 680 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
681 IDS_AX_ROLE_STATUS)); 681 IDS_AX_ROLE_STATUS));
682 case ui::AX_ROLE_SEARCH_BOX:
683 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
684 IDS_AX_ROLE_SEARCH_BOX));
685 case ui::AX_ROLE_SWITCH:
686 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
687 IDS_AX_ROLE_SWITCH));
682 case ui::AX_ROLE_TOGGLE_BUTTON: 688 case ui::AX_ROLE_TOGGLE_BUTTON:
683 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 689 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
684 IDS_AX_ROLE_TOGGLE_BUTTON)); 690 IDS_AX_ROLE_TOGGLE_BUTTON));
685 default: 691 default:
686 break; 692 break;
687 } 693 }
688 694
689 return NSAccessibilityRoleDescription(role, nil); 695 return NSAccessibilityRoleDescription(role, nil);
690 } 696 }
691 697
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 if (!browserAccessibility_) 1624 if (!browserAccessibility_)
1619 return [super hash]; 1625 return [super hash];
1620 return browserAccessibility_->GetId(); 1626 return browserAccessibility_->GetId();
1621 } 1627 }
1622 1628
1623 - (BOOL)accessibilityShouldUseUniqueId { 1629 - (BOOL)accessibilityShouldUseUniqueId {
1624 return YES; 1630 return YES;
1625 } 1631 }
1626 1632
1627 @end 1633 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698