OLD | NEW |
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_WM_CORE_WINDOW_ANIMATIONS_H_ | 5 #ifndef UI_WM_CORE_WINDOW_ANIMATIONS_H_ |
6 #define UI_WM_CORE_WINDOW_ANIMATIONS_H_ | 6 #define UI_WM_CORE_WINDOW_ANIMATIONS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "ui/compositor/scoped_layer_animation_settings.h" | 11 #include "ui/compositor/scoped_layer_animation_settings.h" |
12 #include "ui/wm/wm_export.h" | 12 #include "ui/wm/wm_export.h" |
13 | 13 |
14 namespace aura { | 14 namespace aura { |
15 class Window; | 15 class Window; |
16 } | 16 } |
17 namespace base { | 17 namespace base { |
18 class TimeDelta; | 18 class TimeDelta; |
19 } | 19 } |
20 namespace gfx { | |
21 class Rect; | |
22 } | |
23 namespace ui { | |
24 class ImplicitAnimationObserver; | |
25 class Layer; | |
26 class LayerAnimationSequence; | |
27 } | |
28 | 20 |
29 namespace wm { | 21 namespace wm { |
30 | 22 |
31 // A variety of canned animations for window transitions. | 23 // A variety of canned animations for window transitions. |
32 enum WindowVisibilityAnimationType { | 24 enum WindowVisibilityAnimationType { |
33 WINDOW_VISIBILITY_ANIMATION_TYPE_DEFAULT = 0, // Default. Lets the system | 25 WINDOW_VISIBILITY_ANIMATION_TYPE_DEFAULT = 0, // Default. Lets the system |
34 // decide based on window | 26 // decide based on window |
35 // type. | 27 // type. |
36 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in. | 28 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in. |
37 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation. | 29 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 WM_EXPORT bool AnimateWindow(aura::Window* window, WindowAnimationType type); | 101 WM_EXPORT bool AnimateWindow(aura::Window* window, WindowAnimationType type); |
110 | 102 |
111 // Returns true if window animations are disabled for |window|. Window | 103 // Returns true if window animations are disabled for |window|. Window |
112 // animations are enabled by default. If |window| is NULL, this just checks | 104 // animations are enabled by default. If |window| is NULL, this just checks |
113 // if the global flag disabling window animations is present. | 105 // if the global flag disabling window animations is present. |
114 WM_EXPORT bool WindowAnimationsDisabled(aura::Window* window); | 106 WM_EXPORT bool WindowAnimationsDisabled(aura::Window* window); |
115 | 107 |
116 } // namespace wm | 108 } // namespace wm |
117 | 109 |
118 #endif // UI_WM_CORE_WINDOW_ANIMATIONS_H_ | 110 #endif // UI_WM_CORE_WINDOW_ANIMATIONS_H_ |
OLD | NEW |