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

Unified Diff: ui/aura/window.cc

Issue 10181005: aura: Hide transient children of a Window when the window hides. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 8 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 | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index df3e0ca3f14aa52e9b3ce85ea2f96cef0d8389bb..1892cc1420ff7d395e852f1bfdd5eb8e8397c80f 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -183,6 +183,10 @@ void Window::Show() {
}
void Window::Hide() {
+ for (Windows::iterator it = transient_children_.begin();
+ it != transient_children_.end(); ++it) {
+ (*it)->Hide();
+ }
SetVisible(false);
ReleaseCapture();
}
« no previous file with comments | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698