| Index: ui/accessibility/platform/ax_platform_node_mac.mm
|
| diff --git a/ui/accessibility/platform/ax_platform_node_mac.mm b/ui/accessibility/platform/ax_platform_node_mac.mm
|
| index 346cb7168571392f59d609106ff894c08bd0b7d8..79fa94904ba8d2fbd2fcb4f57b97db3fa7f8ca29 100644
|
| --- a/ui/accessibility/platform/ax_platform_node_mac.mm
|
| +++ b/ui/accessibility/platform/ax_platform_node_mac.mm
|
| @@ -305,6 +305,9 @@ void NotifyMacEvent(NSView* target, ui::AXEvent event_type) {
|
| NSAccessibilityRoleDescriptionAttribute,
|
| NSAccessibilityEnabledAttribute,
|
| NSAccessibilityFocusedAttribute,
|
| + NSAccessibilityHelpAttribute,
|
| + NSAccessibilityTopLevelUIElementAttribute,
|
| + NSAccessibilityWindowAttribute,
|
| ];
|
|
|
| // Attributes required for user-editable controls.
|
| @@ -400,10 +403,7 @@ void NotifyMacEvent(NSView* target, ui::AXEvent event_type) {
|
| }
|
|
|
| - (NSString*)AXRoleDescription {
|
| - NSString* description = [self getStringAttribute:ui::AX_ATTR_DESCRIPTION];
|
| - if (!description)
|
| - return NSAccessibilityRoleDescription([self AXRole], [self AXSubrole]);
|
| - return description;
|
| + return NSAccessibilityRoleDescription([self AXRole], [self AXSubrole]);
|
| }
|
|
|
| - (NSValue*)AXSize {
|
| @@ -432,6 +432,18 @@ void NotifyMacEvent(NSView* target, ui::AXEvent event_type) {
|
| return [NSNumber numberWithBool:NO];
|
| }
|
|
|
| +- (NSString*)AXHelp {
|
| + return [self getStringAttribute:ui::AX_ATTR_DESCRIPTION];
|
| +}
|
| +
|
| +- (NSWindow*)AXTopLevelUIElement {
|
| + return [self AXWindow];
|
| +}
|
| +
|
| +- (NSWindow*)AXWindow {
|
| + return node_->GetDelegate()->GetTopLevelWidget();
|
| +}
|
| +
|
| // Textfield-specific NSAccessibility attributes.
|
|
|
| - (NSNumber*)AXInsertionPointLineNumber {
|
|
|