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 ASH_WM_WINDOW_ANIMATIONS_H_ | 5 #ifndef ASH_WM_WINDOW_ANIMATIONS_H_ |
6 #define ASH_WM_WINDOW_ANIMATIONS_H_ | 6 #define ASH_WM_WINDOW_ANIMATIONS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ui/gfx/animation/tween.h" | 11 #include "ui/gfx/animation/tween.h" |
12 #include "ui/gfx/transform.h" | 12 #include "ui/gfx/transform.h" |
13 #include "ui/wm/core/window_animations.h" | 13 #include "ui/wm/core/window_animations.h" |
14 | 14 |
15 namespace aura { | 15 namespace aura { |
16 class Window; | 16 class Window; |
17 } | 17 } |
18 namespace ui { | 18 namespace ui { |
19 class Layer; | 19 class Layer; |
20 class LayerTreeOwner; | 20 class LayerTreeOwner; |
21 } | 21 } |
22 namespace views { | 22 namespace views {} |
23 } | |
24 | 23 |
25 // This is only for animations specific to Ash. For window animations shared | 24 // This is only for animations specific to Ash. For window animations shared |
26 // with desktop Chrome, see ui/views/corewm/window_animations.h. | 25 // with desktop Chrome, see ui/views/corewm/window_animations.h. |
27 namespace ash { | 26 namespace ash { |
28 | 27 |
29 // Direction for ash-specific window animations used in workspaces and | 28 // Direction for ash-specific window animations used in workspaces and |
30 // lock/unlock animations. | 29 // lock/unlock animations. |
31 enum LayerScaleAnimationDirection { | 30 enum LayerScaleAnimationDirection { |
32 LAYER_SCALE_ANIMATION_ABOVE, | 31 LAYER_SCALE_ANIMATION_ABOVE, |
33 LAYER_SCALE_ANIMATION_BELOW, | 32 LAYER_SCALE_ANIMATION_BELOW, |
(...skipping 28 matching lines...) Expand all Loading... |
62 | 61 |
63 // Returns the approximate bounds to which |window| will be animated when it | 62 // Returns the approximate bounds to which |window| will be animated when it |
64 // is minimized. The bounds are approximate because the minimize animation | 63 // is minimized. The bounds are approximate because the minimize animation |
65 // involves rotation. | 64 // involves rotation. |
66 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( | 65 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( |
67 aura::Window* window); | 66 aura::Window* window); |
68 | 67 |
69 } // namespace ash | 68 } // namespace ash |
70 | 69 |
71 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 70 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
OLD | NEW |