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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_COREWM_WINDOW_ANIMATIONS_H_ 5 #ifndef UI_VIEWS_COREWM_WINDOW_ANIMATIONS_H_
6 #define UI_VIEWS_COREWM_WINDOW_ANIMATIONS_H_ 6 #define UI_VIEWS_COREWM_WINDOW_ANIMATIONS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 aura::Window* window, 81 aura::Window* window,
82 float position); 82 float position);
83 83
84 // Creates an ImplicitAnimationObserver that takes ownership of the layers 84 // Creates an ImplicitAnimationObserver that takes ownership of the layers
85 // associated with a Window so that the animation can continue after the Window 85 // associated with a Window so that the animation can continue after the Window
86 // has been destroyed. 86 // has been destroyed.
87 // The returned object deletes itself when the animations are done. 87 // The returned object deletes itself when the animations are done.
88 VIEWS_EXPORT ui::ImplicitAnimationObserver* CreateHidingWindowAnimationObserver( 88 VIEWS_EXPORT ui::ImplicitAnimationObserver* CreateHidingWindowAnimationObserver(
89 aura::Window* window); 89 aura::Window* window);
90 90
91 // Detach the existing layer and recreate the new layer for the window
92 // if there is a hiding animation in progress. This is used to keep the
93 // hiding animation visible on top of active windows. Returns NULL if there
94 // is no hiding animation in progress.
95 VIEWS_EXPORT ui::Layer* DetachHidingAnimationLayer(aura::Window* window);
96
91 // Returns false if the |window| didn't animate. 97 // Returns false if the |window| didn't animate.
92 VIEWS_EXPORT bool AnimateOnChildWindowVisibilityChanged(aura::Window* window, 98 VIEWS_EXPORT bool AnimateOnChildWindowVisibilityChanged(aura::Window* window,
93 bool visible); 99 bool visible);
94 VIEWS_EXPORT bool AnimateWindow(aura::Window* window, WindowAnimationType type); 100 VIEWS_EXPORT bool AnimateWindow(aura::Window* window, WindowAnimationType type);
95 101
96 // Returns true if window animations are disabled for |window|. Window 102 // Returns true if window animations are disabled for |window|. Window
97 // animations are enabled by default. If |window| is NULL, this just checks 103 // animations are enabled by default. If |window| is NULL, this just checks
98 // if the global flag disabling window animations is present. 104 // if the global flag disabling window animations is present.
99 VIEWS_EXPORT bool WindowAnimationsDisabled(aura::Window* window); 105 VIEWS_EXPORT bool WindowAnimationsDisabled(aura::Window* window);
100 106
101 } // namespace corewm 107 } // namespace corewm
102 } // namespace views 108 } // namespace views
103 109
104 #endif // UI_VIEWS_COREWM_WINDOW_ANIMATIONS_H_ 110 #endif // UI_VIEWS_COREWM_WINDOW_ANIMATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698