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

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

Issue 742783008: AXRequired should be exposed only when aria-required="true" or required attribute is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nit Created 6 years 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/test/data/accessibility/aria-required-expected-mac.txt » ('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 bb3e2b5245171535fce7dbe98ae5c222e7b4adea..10788e77cbf3aee2ba6865a912a6e05c6abfa449 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -1215,7 +1215,6 @@ NSDictionary* attributeToMethodNameMap = nil;
NSAccessibilityWindowAttribute,
@"AXAccessKey",
@"AXInvalid",
- @"AXRequired",
@"AXVisited",
nil];
@@ -1351,6 +1350,11 @@ NSDictionary* attributeToMethodNameMap = nil;
NSAccessibilityOrientationAttribute, nil]];
}
+ if (GetState(browserAccessibility_, ui::AX_STATE_REQUIRED)) {
+ [ret addObjectsFromArray:[NSArray arrayWithObjects:
+ @"AXRequired", nil]];
+ }
+
// Title UI Element.
if (browserAccessibility_->HasIntAttribute(ui::AX_ATTR_TITLE_UI_ELEMENT) ||
(browserAccessibility_->HasIntListAttribute(ui::AX_ATTR_LABELLEDBY_IDS) &&
« no previous file with comments | « no previous file | content/test/data/accessibility/aria-required-expected-mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698