Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8760)

Unified Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 692643005: ARIA state/property(aria-relevant,aria-busy) are not exposed correctly on MAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporating comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c2a8b8e859006b20aa47bcc4ba6f057287c7cb43..f6002441ddc95bea1c25b2e630f6e4e81681477f 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -151,9 +151,8 @@ NSDictionary* attributeToMethodNameMap = nil;
}
- (NSNumber*)ariaBusy {
- bool boolValue = browserAccessibility_->GetBoolAttribute(
- ui::AX_ATTR_LIVE_BUSY);
- return [NSNumber numberWithBool:boolValue];
+ return [NSNumber numberWithBool:
+ GetState(browserAccessibility_, ui::AX_STATE_BUSY)];
}
- (NSString*)ariaLive {
@@ -1324,20 +1323,30 @@ NSDictionary* attributeToMethodNameMap = nil;
ui::AX_ATTR_LIVE_STATUS)) {
[ret addObjectsFromArray:[NSArray arrayWithObjects:
@"AXARIALive",
- @"AXARIARelevant",
nil]];
}
if (browserAccessibility_->HasStringAttribute(
- ui::AX_ATTR_CONTAINER_LIVE_STATUS)) {
+ ui::AX_ATTR_LIVE_RELEVANT)) {
+ [ret addObjectsFromArray:[NSArray arrayWithObjects:
+ @"AXARIARelevant",
+ nil]];
+ }
+ if (browserAccessibility_->HasBoolAttribute(
+ ui::AX_ATTR_LIVE_ATOMIC)) {
[ret addObjectsFromArray:[NSArray arrayWithObjects:
@"AXARIAAtomic",
+ nil]];
+ }
+ if (browserAccessibility_->HasBoolAttribute(
+ ui::AX_ATTR_LIVE_BUSY)) {
+ [ret addObjectsFromArray:[NSArray arrayWithObjects:
@"AXARIABusy",
nil]];
}
//Add expanded attribute only if it has expanded or collapsed state.
- if (GetState(browserAccessibility_,ui::AX_STATE_EXPANDED) ||
- GetState(browserAccessibility_,ui::AX_STATE_COLLAPSED)) {
+ if (GetState(browserAccessibility_, ui::AX_STATE_EXPANDED) ||
+ GetState(browserAccessibility_, ui::AX_STATE_COLLAPSED)) {
[ret addObjectsFromArray:[NSArray arrayWithObjects:
NSAccessibilityExpandedAttribute,
nil]];
« no previous file with comments | « no previous file | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698