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 |
18 namespace ui { | 19 namespace ui { |
19 class Layer; | 20 class Layer; |
20 class LayerTreeOwner; | 21 class LayerTreeOwner; |
21 } | 22 } |
22 namespace views {} | |
23 | 23 |
24 // 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 |
25 // with desktop Chrome, see ui/views/corewm/window_animations.h. | 25 // with desktop Chrome, see ui/views/corewm/window_animations.h. |
26 namespace ash { | 26 namespace ash { |
27 | 27 |
28 // Direction for ash-specific window animations used in workspaces and | 28 // Direction for ash-specific window animations used in workspaces and |
29 // lock/unlock animations. | 29 // lock/unlock animations. |
30 enum LayerScaleAnimationDirection { | 30 enum LayerScaleAnimationDirection { |
31 LAYER_SCALE_ANIMATION_ABOVE, | 31 LAYER_SCALE_ANIMATION_ABOVE, |
32 LAYER_SCALE_ANIMATION_BELOW, | 32 LAYER_SCALE_ANIMATION_BELOW, |
(...skipping 28 matching lines...) Expand all Loading... |
61 | 61 |
62 // 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 |
63 // is minimized. The bounds are approximate because the minimize animation | 63 // is minimized. The bounds are approximate because the minimize animation |
64 // involves rotation. | 64 // involves rotation. |
65 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( | 65 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( |
66 aura::Window* window); | 66 aura::Window* window); |
67 | 67 |
68 } // namespace ash | 68 } // namespace ash |
69 | 69 |
70 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 70 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
OLD | NEW |