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

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: Fix win and android compile 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
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 b7424870cea93a3dae7302f5b9dc0662539c9b8e..200f832835b8130d79e44a106fe3e8cc541ccc8e 100644
--- a/content/browser/accessibility/browser_accessibility_manager_win.cc
+++ b/content/browser/accessibility/browser_accessibility_manager_win.cc
@@ -262,10 +262,14 @@ 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) {
+ 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(

Powered by Google App Engine
This is Rietveld 408576698