+void BrowserAccessibilityManagerWin::OnWindowFocused() {
+ // Fire a focus event on the root first and then the focused node.
+ if (focus_ != tree_->GetRoot())
+ NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, GetRoot());
+ BrowserAccessibilityManager::OnWindowFocused();
+}
+
+void BrowserAccessibilityManagerWin::OnWindowBlurred() {
+ // Fire a blur event on the focused node first and then the root.
+ BrowserAccessibilityManager::OnWindowBlurred();
+ if (focus_ != tree_->GetRoot())
+ NotifyAccessibilityEvent(ui::AX_EVENT_BLUR, GetRoot());
+}
+