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

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

Issue 638103003: ARIA role region is not exposed correct with MSAA+IA2 role (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: fixing nit Created 6 years, 2 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 } 575 }
576 576
577 switch([self internalRole]) { 577 switch([self internalRole]) {
578 case ui::AX_ROLE_BANNER: 578 case ui::AX_ROLE_BANNER:
579 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 579 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
580 IDS_AX_ROLE_BANNER)); 580 IDS_AX_ROLE_BANNER));
581 break; 581 break;
582 case ui::AX_ROLE_FOOTER: 582 case ui::AX_ROLE_FOOTER:
583 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 583 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
584 IDS_AX_ROLE_FOOTER)); 584 IDS_AX_ROLE_FOOTER));
585 case ui::AX_ROLE_REGION:
586 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
587 IDS_AX_ROLE_REGION));
585 case ui::AX_ROLE_SPIN_BUTTON: 588 case ui::AX_ROLE_SPIN_BUTTON:
586 // This control is similar to what VoiceOver calls a "stepper". 589 // This control is similar to what VoiceOver calls a "stepper".
587 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 590 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
588 IDS_AX_ROLE_STEPPER)); 591 IDS_AX_ROLE_STEPPER));
589 case ui::AX_ROLE_TOGGLE_BUTTON: 592 case ui::AX_ROLE_TOGGLE_BUTTON:
590 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 593 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
591 IDS_AX_ROLE_TOGGLE_BUTTON)); 594 IDS_AX_ROLE_TOGGLE_BUTTON));
592 default: 595 default:
593 break; 596 break;
594 } 597 }
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 return [super hash]; 1453 return [super hash];
1451 return browserAccessibility_->GetId(); 1454 return browserAccessibility_->GetId();
1452 } 1455 }
1453 1456
1454 - (BOOL)accessibilityShouldUseUniqueId { 1457 - (BOOL)accessibilityShouldUseUniqueId {
1455 return YES; 1458 return YES;
1456 } 1459 }
1457 1460
1458 @end 1461 @end
1459 1462
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