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

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: 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 95f5c7037ab53e13e4915852e1b618547a1fc345..35c1b471eac28ca4591281019a89623c5b4fd809 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);
sky 2016/02/10 16:19:41 I don't see any documentation for the AXEvent cons
+ }
// 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