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

Unified Diff: ui/views/accessibility/ax_widget_obj_wrapper.cc

Issue 2456673002: Update focus when widget changes visibility. (Closed)
Patch Set: Created 4 years, 2 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 | « ui/views/accessibility/ax_widget_obj_wrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/accessibility/ax_widget_obj_wrapper.cc
diff --git a/ui/views/accessibility/ax_widget_obj_wrapper.cc b/ui/views/accessibility/ax_widget_obj_wrapper.cc
index 2a05b196651cacf5c8be03fd4d29184cd025ac11..70307b919d3e93b1d60cbc41593722767c4d1adf 100644
--- a/ui/views/accessibility/ax_widget_obj_wrapper.cc
+++ b/ui/views/accessibility/ax_widget_obj_wrapper.cc
@@ -62,6 +62,12 @@ void AXWidgetObjWrapper::OnWidgetClosing(Widget* widget) {
AXAuraObjCache::GetInstance()->Remove(widget);
}
+void AXWidgetObjWrapper::OnWidgetVisibilityChanged(Widget*, bool) {
+ // If a widget changes visibility it may affect what's focused, in particular
+ // when a widget that contains the focused view gets hidden.
+ AXAuraObjCache::GetInstance()->OnFocusedViewChanged();
+}
+
void AXWidgetObjWrapper::OnWillRemoveView(Widget* widget, View* view) {
AXAuraObjCache::GetInstance()->RemoveViewSubtree(view);
}
« no previous file with comments | « ui/views/accessibility/ax_widget_obj_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698