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

Unified Diff: ui/views/corewm/window_animations.h

Issue 180273025: Keep dedicated layers for hiding animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix OnWnidowDestroying Created 6 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
Index: ui/views/corewm/window_animations.h
diff --git a/ui/views/corewm/window_animations.h b/ui/views/corewm/window_animations.h
index f5728e6add64fc4ad60b8244540c8c6c28efec62..262eed16d006f55fbbe42c51eaf7736cdb3a2a62 100644
--- a/ui/views/corewm/window_animations.h
+++ b/ui/views/corewm/window_animations.h
@@ -88,6 +88,12 @@ VIEWS_EXPORT void SetWindowVisibilityAnimationVerticalPosition(
VIEWS_EXPORT ui::ImplicitAnimationObserver* CreateHidingWindowAnimationObserver(
aura::Window* window);
+// Detach the existing layer and recreate the new layer for the window
+// if there is a hiding animation in progress. This is used to keep the
+// hiding animation visible on top of active windows. Returns NULL if there
+// is no hiding animation in progress.
+VIEWS_EXPORT ui::Layer* DetachHidingAnimationLayer(aura::Window* window);
+
// Returns false if the |window| didn't animate.
VIEWS_EXPORT bool AnimateOnChildWindowVisibilityChanged(aura::Window* window,
bool visible);

Powered by Google App Engine
This is Rietveld 408576698