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

Unified Diff: ui/views/view.cc

Issue 1644863003: Prune invisible views from the desktop automation tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try hitting space (behavior changes when a tab is open). Created 4 years, 10 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 9c685fd4af9aedd8a9464546bb96400215877144..6f5122faae7caacc663d07dbb8ed4355005aa0c8 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -409,8 +409,10 @@ void View::SetVisible(bool visible) {
AdvanceFocusIfNecessary();
// Notify the parent.
- if (parent_)
+ if (parent_) {
parent_->ChildVisibilityChanged(this);
+ parent_->NotifyAccessibilityEvent(ui::AX_EVENT_CHILDREN_CHANGED, false);
+ }
// This notifies all sub-views recursively.
PropagateVisibilityNotifications(this, visible_);
« no previous file with comments | « ui/views/accessibility/ax_widget_obj_wrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698