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

Unified Diff: content/browser/accessibility/browser_accessibility_manager_win.cc

Issue 830943004: Improve the notifications sent from AXTree updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback, add missing call to parent class Created 5 years, 11 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
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager_win.h ('k') | ui/accessibility/ax_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_manager_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_manager_win.cc b/content/browser/accessibility/browser_accessibility_manager_win.cc
index d3449df2d42dca40c526513600b21f375b75a5f5..698f0190d22ce5fd700e3de92e71e435985be788 100644
--- a/content/browser/accessibility/browser_accessibility_manager_win.cc
+++ b/content/browser/accessibility/browser_accessibility_manager_win.cc
@@ -263,10 +263,16 @@ void BrowserAccessibilityManagerWin::NotifyAccessibilityEvent(
}
}
-void BrowserAccessibilityManagerWin::OnRootChanged(ui::AXNode* new_root) {
- // In order to make screen readers aware of the new accessibility root,
- // we need to fire a focus event on it.
- OnWindowFocused();
+void BrowserAccessibilityManagerWin::OnAtomicUpdateFinished(
+ bool root_changed,
+ const std::vector<ui::AXTreeDelegate::Change>& changes) {
+ BrowserAccessibilityManager::OnAtomicUpdateFinished(root_changed, changes);
+
+ if (root_changed) {
+ // In order to make screen readers aware of the new accessibility root,
+ // we need to fire a focus event on it.
+ OnWindowFocused();
+ }
}
void BrowserAccessibilityManagerWin::TrackScrollingObject(
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager_win.h ('k') | ui/accessibility/ax_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698