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

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

Issue 665843002: Change condition for adding AX_STATE_EXPANDED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove AXExpanded Created 6 years, 2 months 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
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,

Powered by Google App Engine
This is Rietveld 408576698