| 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 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 5 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
| 6 | 6 |
| 7 #include <execinfo.h> | 7 #include <execinfo.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1463 IDS_AX_ROLE_STEPPER)); | 1463 IDS_AX_ROLE_STEPPER)); |
| 1464 case ui::AX_ROLE_STATUS: | 1464 case ui::AX_ROLE_STATUS: |
| 1465 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 1465 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
| 1466 IDS_AX_ROLE_STATUS)); | 1466 IDS_AX_ROLE_STATUS)); |
| 1467 case ui::AX_ROLE_SEARCH_BOX: | 1467 case ui::AX_ROLE_SEARCH_BOX: |
| 1468 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 1468 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
| 1469 IDS_AX_ROLE_SEARCH_BOX)); | 1469 IDS_AX_ROLE_SEARCH_BOX)); |
| 1470 case ui::AX_ROLE_SWITCH: | 1470 case ui::AX_ROLE_SWITCH: |
| 1471 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 1471 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
| 1472 IDS_AX_ROLE_SWITCH)); | 1472 IDS_AX_ROLE_SWITCH)); |
| 1473 case ui::AX_ROLE_TERM: |
| 1474 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
| 1475 IDS_AX_ROLE_DESCRIPTION_TERM)); |
| 1473 case ui::AX_ROLE_TOGGLE_BUTTON: | 1476 case ui::AX_ROLE_TOGGLE_BUTTON: |
| 1474 return base::SysUTF16ToNSString(content_client->GetLocalizedString( | 1477 return base::SysUTF16ToNSString(content_client->GetLocalizedString( |
| 1475 IDS_AX_ROLE_TOGGLE_BUTTON)); | 1478 IDS_AX_ROLE_TOGGLE_BUTTON)); |
| 1476 default: | 1479 default: |
| 1477 break; | 1480 break; |
| 1478 } | 1481 } |
| 1479 | 1482 |
| 1480 return NSAccessibilityRoleDescription(role, nil); | 1483 return NSAccessibilityRoleDescription(role, nil); |
| 1481 } | 1484 } |
| 1482 | 1485 |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2808 } | 2811 } |
| 2809 | 2812 |
| 2810 - (BOOL)accessibilityNotifiesWhenDestroyed { | 2813 - (BOOL)accessibilityNotifiesWhenDestroyed { |
| 2811 // Indicate that BrowserAccessibilityCocoa will post a notification when it's | 2814 // Indicate that BrowserAccessibilityCocoa will post a notification when it's |
| 2812 // destroyed (see -detach). This allows VoiceOver to do some internal things | 2815 // destroyed (see -detach). This allows VoiceOver to do some internal things |
| 2813 // more efficiently. | 2816 // more efficiently. |
| 2814 return YES; | 2817 return YES; |
| 2815 } | 2818 } |
| 2816 | 2819 |
| 2817 @end | 2820 @end |
| OLD | NEW |