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

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

Issue 722663002: HTML math tag should have AXRoleDescription as 'math' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 IDS_AX_ROLE_FIGURE)); 607 IDS_AX_ROLE_FIGURE));
608 case ui::AX_ROLE_FOOTER: 608 case ui::AX_ROLE_FOOTER:
609 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 609 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
610 IDS_AX_ROLE_FOOTER)); 610 IDS_AX_ROLE_FOOTER));
611 case ui::AX_ROLE_FORM: 611 case ui::AX_ROLE_FORM:
612 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 612 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
613 IDS_AX_ROLE_FORM)); 613 IDS_AX_ROLE_FORM));
614 case ui::AX_ROLE_MAIN: 614 case ui::AX_ROLE_MAIN:
615 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 615 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
616 IDS_AX_ROLE_MAIN_CONTENT)); 616 IDS_AX_ROLE_MAIN_CONTENT));
617 case ui::AX_ROLE_MATH:
618 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
619 IDS_AX_ROLE_MATH));
617 case ui::AX_ROLE_NAVIGATION: 620 case ui::AX_ROLE_NAVIGATION:
618 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 621 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
619 IDS_AX_ROLE_NAVIGATIONAL_LINK)); 622 IDS_AX_ROLE_NAVIGATIONAL_LINK));
620 case ui::AX_ROLE_REGION: 623 case ui::AX_ROLE_REGION:
621 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 624 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
622 IDS_AX_ROLE_REGION)); 625 IDS_AX_ROLE_REGION));
623 case ui::AX_ROLE_SPIN_BUTTON: 626 case ui::AX_ROLE_SPIN_BUTTON:
624 // This control is similar to what VoiceOver calls a "stepper". 627 // This control is similar to what VoiceOver calls a "stepper".
625 return base::SysUTF16ToNSString(content_client->GetLocalizedString( 628 return base::SysUTF16ToNSString(content_client->GetLocalizedString(
626 IDS_AX_ROLE_STEPPER)); 629 IDS_AX_ROLE_STEPPER));
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 return [super hash]; 1501 return [super hash];
1499 return browserAccessibility_->GetId(); 1502 return browserAccessibility_->GetId();
1500 } 1503 }
1501 1504
1502 - (BOOL)accessibilityShouldUseUniqueId { 1505 - (BOOL)accessibilityShouldUseUniqueId {
1503 return YES; 1506 return YES;
1504 } 1507 }
1505 1508
1506 @end 1509 @end
1507 1510
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/test/data/accessibility/math-expected-android.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698