OLD | NEW |
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 IDS_AX_ROLE_BANNER)); | 589 IDS_AX_ROLE_BANNER)); |
590 case ui::AX_ROLE_COMPLEMENTARY: | 590 case ui::AX_ROLE_COMPLEMENTARY: |
591 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 591 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
592 IDS_AX_ROLE_COMPLEMENTARY)); | 592 IDS_AX_ROLE_COMPLEMENTARY)); |
593 case ui::AX_ROLE_CONTENT_INFO: | 593 case ui::AX_ROLE_CONTENT_INFO: |
594 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 594 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
595 IDS_AX_ROLE_ADDRESS)); | 595 IDS_AX_ROLE_ADDRESS)); |
596 case ui::AX_ROLE_FOOTER: | 596 case ui::AX_ROLE_FOOTER: |
597 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 597 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
598 IDS_AX_ROLE_FOOTER)); | 598 IDS_AX_ROLE_FOOTER)); |
| 599 case ui::AX_ROLE_FORM: |
| 600 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
| 601 IDS_AX_ROLE_FORM)); |
599 case ui::AX_ROLE_MAIN: | 602 case ui::AX_ROLE_MAIN: |
600 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 603 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
601 IDS_AX_ROLE_MAIN_CONTENT)); | 604 IDS_AX_ROLE_MAIN_CONTENT)); |
602 case ui::AX_ROLE_NAVIGATION: | 605 case ui::AX_ROLE_NAVIGATION: |
603 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 606 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
604 IDS_AX_ROLE_NAVIGATIONAL_LINK)); | 607 IDS_AX_ROLE_NAVIGATIONAL_LINK)); |
605 case ui::AX_ROLE_REGION: | 608 case ui::AX_ROLE_REGION: |
606 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 609 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
607 IDS_AX_ROLE_REGION)); | 610 IDS_AX_ROLE_REGION)); |
608 case ui::AX_ROLE_SPIN_BUTTON: | 611 case ui::AX_ROLE_SPIN_BUTTON: |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 return [super hash]; | 1477 return [super hash]; |
1475 return browserAccessibility_->GetId(); | 1478 return browserAccessibility_->GetId(); |
1476 } | 1479 } |
1477 | 1480 |
1478 - (BOOL)accessibilityShouldUseUniqueId { | 1481 - (BOOL)accessibilityShouldUseUniqueId { |
1479 return YES; | 1482 return YES; |
1480 } | 1483 } |
1481 | 1484 |
1482 @end | 1485 @end |
1483 | 1486 |
OLD | NEW |