Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
index 84936607b01433d82c25f3d7e8ff39f4c47686c4..2c355da0ff18fac207c0ebc2ca3aacba152e03eb 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -3116,6 +3116,10 @@ void RenderWidgetHostViewAura::OnWindowFocused(aura::Window* gained_focus, |
} else { |
host_->SetInputMethodActive(false); |
} |
+ |
+ BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); |
+ if (manager) |
+ manager->OnWindowFocused(); |
} else if (window_ == lost_focus) { |
host_->SetActive(false); |
host_->Blur(); |
@@ -3126,6 +3130,10 @@ void RenderWidgetHostViewAura::OnWindowFocused(aura::Window* gained_focus, |
if (touch_editing_client_) |
touch_editing_client_->EndTouchEditing(false); |
+ BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); |
+ if (manager) |
+ manager->OnWindowBlurred(); |
+ |
// If we lose the focus while fullscreen, close the window; Pepper Flash |
// won't do it for us (unlike NPAPI Flash). However, we do not close the |
// window if we lose the focus to a window on another display. |