| 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 } | 23 } |
| 24 | 24 |
| 25 // This is only for animations specific to Ash. For window animations shared | 25 // This is only for animations specific to Ash. For window animations shared |
| 26 // with desktop Chrome, see ui/views/corewm/window_animations.h. | 26 // with desktop Chrome, see ui/views/corewm/window_animations.h. |
| 27 namespace ash { | 27 namespace ash { |
| 28 | 28 |
| 29 // An extension of the window animations provided by CoreWm. These should be | |
| 30 // Ash-specific only. | |
| 31 enum WindowVisibilityAnimationType { | |
| 32 // Window scale/rotates down to its launcher icon. | |
| 33 WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE = | |
| 34 ::wm::WINDOW_VISIBILITY_ANIMATION_MAX, | |
| 35 // Fade in/out using brightness and grayscale web filters. | |
| 36 WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE | |
| 37 }; | |
| 38 | |
| 39 // Direction for ash-specific window animations used in workspaces and | 29 // Direction for ash-specific window animations used in workspaces and |
| 40 // lock/unlock animations. | 30 // lock/unlock animations. |
| 41 enum LayerScaleAnimationDirection { | 31 enum LayerScaleAnimationDirection { |
| 42 LAYER_SCALE_ANIMATION_ABOVE, | 32 LAYER_SCALE_ANIMATION_ABOVE, |
| 43 LAYER_SCALE_ANIMATION_BELOW, | 33 LAYER_SCALE_ANIMATION_BELOW, |
| 44 }; | 34 }; |
| 45 | 35 |
| 46 // Amount of time for the cross fade animation. | 36 // Amount of time for the cross fade animation. |
| 47 extern const int kCrossFadeDurationMS; | 37 extern const int kCrossFadeDurationMS; |
| 48 | 38 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 | 62 |
| 73 // Returns the approximate bounds to which |window| will be animated when it | 63 // Returns the approximate bounds to which |window| will be animated when it |
| 74 // is minimized. The bounds are approximate because the minimize animation | 64 // is minimized. The bounds are approximate because the minimize animation |
| 75 // involves rotation. | 65 // involves rotation. |
| 76 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( | 66 ASH_EXPORT gfx::Rect GetMinimizeAnimationTargetBoundsInScreen( |
| 77 aura::Window* window); | 67 aura::Window* window); |
| 78 | 68 |
| 79 } // namespace ash | 69 } // namespace ash |
| 80 | 70 |
| 81 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 71 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
| OLD | NEW |