OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_WM_WINDOW_ANIMATIONS_H_ | 5 #ifndef ASH_WM_WM_WINDOW_ANIMATIONS_H_ |
6 #define ASH_COMMON_WM_WM_WINDOW_ANIMATIONS_H_ | 6 #define ASH_WM_WM_WINDOW_ANIMATIONS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 class Layer; | 11 class Layer; |
12 } | 12 } |
13 | 13 |
14 // This is only for animations specific to Ash. For window animations shared | 14 // This is only for animations specific to Ash. For window animations shared |
15 // with desktop Chrome, see ui/views/corewm/window_animations.h. | 15 // with desktop Chrome, see ui/views/corewm/window_animations.h. |
16 namespace ash { | 16 namespace ash { |
17 | 17 |
18 // Direction for ash-specific window animations used in workspaces and | 18 // Direction for ash-specific window animations used in workspaces and |
19 // lock/unlock animations. | 19 // lock/unlock animations. |
20 enum LayerScaleAnimationDirection { | 20 enum LayerScaleAnimationDirection { |
21 LAYER_SCALE_ANIMATION_ABOVE, | 21 LAYER_SCALE_ANIMATION_ABOVE, |
22 LAYER_SCALE_ANIMATION_BELOW, | 22 LAYER_SCALE_ANIMATION_BELOW, |
23 }; | 23 }; |
24 | 24 |
25 // Applies scale related to the specified AshWindowScaleType. | 25 // Applies scale related to the specified AshWindowScaleType. |
26 ASH_EXPORT void SetTransformForScaleAnimation( | 26 ASH_EXPORT void SetTransformForScaleAnimation( |
27 ui::Layer* layer, | 27 ui::Layer* layer, |
28 LayerScaleAnimationDirection type); | 28 LayerScaleAnimationDirection type); |
29 | 29 |
30 } // namespace ash | 30 } // namespace ash |
31 | 31 |
32 #endif // ASH_COMMON_WM_WM_WINDOW_ANIMATIONS_H_ | 32 #endif // ASH_WM_WM_WINDOW_ANIMATIONS_H_ |
OLD | NEW |