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

Unified Diff: ui/wm/core/transient_window_manager.cc

Issue 2517853002: Fixes bug in handling restacking because of transients (Closed)
Patch Set: feedback Created 4 years, 1 month 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
Index: ui/wm/core/transient_window_manager.cc
diff --git a/ui/wm/core/transient_window_manager.cc b/ui/wm/core/transient_window_manager.cc
index dc6070f8c3d63301e78ace540c1c39a915ab3522..3008853bf2844c22f672713162ff50c84041f2cc 100644
--- a/ui/wm/core/transient_window_manager.cc
+++ b/ui/wm/core/transient_window_manager.cc
@@ -137,7 +137,15 @@ void TransientWindowManager::RestackTransientDescendants() {
base::AutoReset<Window*> resetter(
&descendant_manager->stacking_target_,
window_);
+ for (aura::client::TransientWindowClientObserver& observer :
+ TransientWindowController::Get()->observers_) {
+ observer.OnWillRestackTransientChildAbove(window_, *it);
+ }
parent->StackChildAbove((*it), window_);
+ for (aura::client::TransientWindowClientObserver& observer :
+ TransientWindowController::Get()->observers_) {
+ observer.OnDidRestackTransientChildAbove(window_, *it);
+ }
}
}
}
« ui/aura/mus/window_tree_client_unittest.cc ('K') | « ui/aura/test/mus/test_window_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698