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

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

Issue 1937873002: Adds AXExpandedChanged for general roles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comment Created 4 years, 7 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_manager_mac.mm
diff --git a/content/browser/accessibility/browser_accessibility_manager_mac.mm b/content/browser/accessibility/browser_accessibility_manager_mac.mm
index d45e0c28e6cea7ecc21d7697c734f8e75515fdb0..c389a5c2f3c96d4f0d3b4745e22d20898b596b1d 100644
--- a/content/browser/accessibility/browser_accessibility_manager_mac.mm
+++ b/content/browser/accessibility/browser_accessibility_manager_mac.mm
@@ -67,6 +67,8 @@ NSString* const NSAccessibilityInvalidStatusChangedNotification =
@"AXInvalidStatusChanged";
NSString* const NSAccessibilityLiveRegionChangedNotification =
@"AXLiveRegionChanged";
+NSString* const NSAccessibilityExpandedChanged =
+ @"AXExpandedChanged";
NSString* const NSAccessibilityMenuItemSelectedNotification =
@"AXMenuItemSelected";
@@ -272,7 +274,10 @@ void BrowserAccessibilityManagerMac::NotifyAccessibilityEvent(
case ui::AX_EVENT_ROW_COLLAPSED:
mac_notification = NSAccessibilityRowCollapsedNotification;
break;
- // TODO(nektar): Add events for busy and expanded changed.
+ // TODO(nektar): Add events for busy.
+ case ui::AX_EVENT_EXPANDED_CHANGED:
+ mac_notification = NSAccessibilityExpandedChanged;
+ break;
// TODO(nektar): Support menu open/close notifications.
case ui::AX_EVENT_MENU_LIST_ITEM_SELECTED:
mac_notification = NSAccessibilityMenuItemSelectedNotification;

Powered by Google App Engine
This is Rietveld 408576698