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

Unified Diff: ui/aura/client/transient_window_client_observer.h

Issue 2517853002: Fixes bug in handling restacking because of transients (Closed)
Patch Set: merge 2 trunk 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/aura/client/transient_window_client_observer.h
diff --git a/ui/aura/client/transient_window_client_observer.h b/ui/aura/client/transient_window_client_observer.h
index 27dc39bf44a404750ccdee1666beb2513863b837..bb7176dc1d361cb83a0d0881756f1097e039b46f 100644
--- a/ui/aura/client/transient_window_client_observer.h
+++ b/ui/aura/client/transient_window_client_observer.h
@@ -25,6 +25,15 @@ class AURA_EXPORT TransientWindowClientObserver {
virtual void OnTransientChildWindowRemoved(Window* parent,
Window* transient_child) = 0;
+ // Called when adding or removing a transient results in restacking. |window|
+ // is the window being stacked above |source|. |source| is the window the
+ // transient was added or removed from. This is followed by a call to
+ // Window::StackChildAbove() and then OnDidRestackTransientChildAbove().
+ virtual void OnWillRestackTransientChildAbove(Window* source,
msw 2016/11/21 19:56:33 nit: are there better names we can use here? like
sky 2016/11/21 21:31:43 Done.
+ Window* window) = 0;
+ virtual void OnDidRestackTransientChildAbove(Window* source,
+ Window* window) = 0;
+
protected:
virtual ~TransientWindowClientObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698