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

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: Updating aria-flowto.html 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 // TODO(dtseng): This is not localized; see crbug/84814. 571 // TODO(dtseng): This is not localized; see crbug/84814.
572 return base::SysUTF8ToNSString(role); 572 return base::SysUTF8ToNSString(role);
573 } 573 }
574 } 574 }
575 } 575 }
576 576
577 switch([self internalRole]) { 577 switch([self internalRole]) {
578 case ui::AX_ROLE_FOOTER: 578 case ui::AX_ROLE_FOOTER:
579 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 579 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
580 IDS_AX_ROLE_FOOTER)); 580 IDS_AX_ROLE_FOOTER));
581 case ui::AX_ROLE_REGION:
582 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
583 IDS_AX_ROLE_REGION));
581 case ui::AX_ROLE_SPIN_BUTTON: 584 case ui::AX_ROLE_SPIN_BUTTON:
582 // This control is similar to what VoiceOver calls a "stepper". 585 // This control is similar to what VoiceOver calls a "stepper".
583 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 586 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
584 IDS_AX_ROLE_STEPPER)); 587 IDS_AX_ROLE_STEPPER));
585 case ui::AX_ROLE_TOGGLE_BUTTON: 588 case ui::AX_ROLE_TOGGLE_BUTTON:
586 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 589 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
587 IDS_AX_ROLE_TOGGLE_BUTTON)); 590 IDS_AX_ROLE_TOGGLE_BUTTON));
588 default: 591 default:
589 break; 592 break;
590 } 593 }
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 return [super hash]; 1449 return [super hash];
1447 return browserAccessibility_->GetId(); 1450 return browserAccessibility_->GetId();
1448 } 1451 }
1449 1452
1450 - (BOOL)accessibilityShouldUseUniqueId { 1453 - (BOOL)accessibilityShouldUseUniqueId {
1451 return YES; 1454 return YES;
1452 } 1455 }
1453 1456
1454 @end 1457 @end
1455 1458
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698