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

Unified Diff: ui/aura/window_observer.h

Issue 2369413002: Fixes bug in WmWindowAura::OnWindowVisibilityChanged() (Closed)
Patch Set: Created 4 years, 3 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 | « ash/aura/wm_window_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_observer.h
diff --git a/ui/aura/window_observer.h b/ui/aura/window_observer.h
index f3123c05db87515901605cd6def98b8faf40ef4e..9a271cf38630acbc0350d82d8195a4bd1c6a25fc 100644
--- a/ui/aura/window_observer.h
+++ b/ui/aura/window_observer.h
@@ -70,6 +70,12 @@ class AURA_EXPORT WindowObserver {
// value supplied to SetVisible(). If |visible| is true, window->IsVisible()
// may still return false. See description in Window::IsVisible() for details.
virtual void OnWindowVisibilityChanging(Window* window, bool visible) {}
+
+ // When the visibility of a Window changes OnWindowVisibilityChanged() is
+ // called for all observers attached to descendants of the Window as well
+ // as all observers attached to ancestors of the Window. The Window supplied
+ // to OnWindowVisibilityChanged() is the Window that Show()/Hide() was called
+ // on.
virtual void OnWindowVisibilityChanged(Window* window, bool visible) {}
// Invoked when SetBounds() is invoked on |window|. |old_bounds| and
« no previous file with comments | « ash/aura/wm_window_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698