Index: content/browser/accessibility/browser_accessibility_cocoa.mm |
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm |
index 088e6e5a968239e99bc049841575ecd161be68d5..85805688499cbd5325740136d76023fbbba2569a 100644 |
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm |
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm |
@@ -69,6 +69,7 @@ NSDictionary* attributeToMethodNameMap = nil; |
{ NSAccessibilityDisclosureLevelAttribute, @"disclosureLevel" }, |
{ NSAccessibilityDisclosedRowsAttribute, @"disclosedRows" }, |
{ NSAccessibilityEnabledAttribute, @"enabled" }, |
+ { NSAccessibilityExpandedAttribute, @"expanded" }, |
{ NSAccessibilityFocusedAttribute, @"focused" }, |
{ NSAccessibilityHeaderAttribute, @"header" }, |
{ NSAccessibilityHelpAttribute, @"help" }, |
@@ -329,6 +330,11 @@ NSDictionary* attributeToMethodNameMap = nil; |
GetState(browserAccessibility_, ui::AX_STATE_ENABLED)]; |
} |
+- (NSNumber*)expanded { |
+ return [NSNumber numberWithBool: |
+ GetState(browserAccessibility_, ui::AX_STATE_EXPANDED)]; |
+} |
+ |
- (NSNumber*)focused { |
BrowserAccessibilityManager* manager = browserAccessibility_->manager(); |
NSNumber* ret = [NSNumber numberWithBool: |
@@ -1176,6 +1182,7 @@ NSDictionary* attributeToMethodNameMap = nil; |
NSAccessibilityChildrenAttribute, |
NSAccessibilityDescriptionAttribute, |
NSAccessibilityEnabledAttribute, |
+ NSAccessibilityExpandedAttribute, |
NSAccessibilityFocusedAttribute, |
NSAccessibilityHelpAttribute, |
NSAccessibilityLinkedUIElementsAttribute, |