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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ui/gfx/transform.h" | 9 #include "ui/gfx/transform.h" |
10 #include "ui/views/corewm/window_animations.h" | 10 #include "ui/views/corewm/window_animations.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE | 30 WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE |
31 }; | 31 }; |
32 | 32 |
33 // Direction for ash-specific window animations used in workspaces and | 33 // Direction for ash-specific window animations used in workspaces and |
34 // lock/unlock animations. | 34 // lock/unlock animations. |
35 enum LayerScaleAnimationDirection { | 35 enum LayerScaleAnimationDirection { |
36 LAYER_SCALE_ANIMATION_ABOVE, | 36 LAYER_SCALE_ANIMATION_ABOVE, |
37 LAYER_SCALE_ANIMATION_BELOW, | 37 LAYER_SCALE_ANIMATION_BELOW, |
38 }; | 38 }; |
39 | 39 |
| 40 // Returns the bounds that |window| should animate to when minimizing. |
| 41 ASH_EXPORT gfx::Rect GetMinimizeRectForWindow(aura::Window* window); |
| 42 |
40 // Animate a cross-fade of |window| from its current bounds to |new_bounds|. | 43 // Animate a cross-fade of |window| from its current bounds to |new_bounds|. |
41 ASH_EXPORT void CrossFadeToBounds(aura::Window* window, | 44 ASH_EXPORT void CrossFadeToBounds(aura::Window* window, |
42 const gfx::Rect& new_bounds); | 45 const gfx::Rect& new_bounds); |
43 | 46 |
44 // Cross fades |layer| (which is a clone of |window|s layer before it was | 47 // Cross fades |layer| (which is a clone of |window|s layer before it was |
45 // resized) to |window|s current bounds. |new_workspace| is the Window of the | 48 // resized) to |window|s current bounds. |new_workspace| is the Window of the |
46 // workspace |window| was added to. | 49 // workspace |window| was added to. |
47 // This takes ownership of |layer|. | 50 // This takes ownership of |layer|. |
48 ASH_EXPORT void CrossFadeWindowBetweenWorkspaces(aura::Window* new_workspace, | 51 ASH_EXPORT void CrossFadeWindowBetweenWorkspaces(aura::Window* new_workspace, |
49 aura::Window* window, | 52 aura::Window* window, |
(...skipping 21 matching lines...) Expand all Loading... |
71 | 74 |
72 // Returns the approximate bounds to which |window| will be animated when it | 75 // Returns the approximate bounds to which |window| will be animated when it |
73 // is minimized. The bounds are approximate because the minimize animation | 76 // is minimized. The bounds are approximate because the minimize animation |
74 // involves rotation. | 77 // involves rotation. |
75 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( | 78 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( |
76 aura::Window* window); | 79 aura::Window* window); |
77 | 80 |
78 } // namespace ash | 81 } // namespace ash |
79 | 82 |
80 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 83 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
OLD | NEW |