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 7db4fc7fa29617bcb18363849b9908c754bcd916..89213b5624e74df1b0d0239106b8800cd6fcccf8 100644 |
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm |
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm |
@@ -108,6 +108,8 @@ NSDictionary* attributeToMethodNameMap = nil; |
{ @"AXARIAAtomic", @"ariaAtomic" }, |
{ @"AXARIABusy", @"ariaBusy" }, |
{ @"AXARIALive", @"ariaLive" }, |
+ { @"AXARIASetSize", @"ariaSetSize" }, |
+ { @"AXARIAPosInSet", @"ariaPosInSet" }, |
{ @"AXARIARelevant", @"ariaRelevant" }, |
{ @"AXDropEffects", @"dropeffect" }, |
{ @"AXGrabbed", @"grabbed" }, |
@@ -170,6 +172,16 @@ NSDictionary* attributeToMethodNameMap = nil; |
browserAccessibility_, ui::AX_ATTR_LIVE_RELEVANT); |
} |
+- (NSNumber*)ariaPosInSet { |
+ return [NSNumber numberWithInt: |
+ browserAccessibility_->GetIntAttribute(ui::AX_ATTR_POS_IN_SET)]; |
+} |
+ |
+- (NSNumber*)ariaSetSize { |
+ return [NSNumber numberWithInt: |
+ browserAccessibility_->GetIntAttribute(ui::AX_ATTR_SET_SIZE)]; |
+} |
+ |
// Returns an array of BrowserAccessibilityCocoa objects, representing the |
// accessibility children of this object. |
- (NSArray*)children { |
@@ -1407,6 +1419,18 @@ NSDictionary* attributeToMethodNameMap = nil; |
nil]]; |
} |
+ // Position in set and Set size |
+ if (browserAccessibility_->HasIntAttribute(ui::AX_ATTR_POS_IN_SET)) { |
+ [ret addObjectsFromArray:[NSArray arrayWithObjects: |
+ @"AXARIAPosInSet", |
+ nil]]; |
+ } |
+ if (browserAccessibility_->HasIntAttribute(ui::AX_ATTR_SET_SIZE)) { |
+ [ret addObjectsFromArray:[NSArray arrayWithObjects: |
+ @"AXARIASetSize", |
+ nil]]; |
+ } |
+ |
// Live regions. |
if (browserAccessibility_->HasStringAttribute( |
ui::AX_ATTR_LIVE_STATUS)) { |