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 | 9 |
10 namespace aura { | 10 namespace aura { |
(...skipping 17 matching lines...) Expand all Loading... |
28 // decide based on window | 28 // decide based on window |
29 // type. | 29 // type. |
30 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in. | 30 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in. |
31 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation. | 31 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation. |
32 WINDOW_VISIBILITY_ANIMATION_TYPE_FADE, // Fades in/out. | 32 WINDOW_VISIBILITY_ANIMATION_TYPE_FADE, // Fades in/out. |
33 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_SHOW, // Windows are scaled and | 33 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_SHOW, // Windows are scaled and |
34 // fade in. | 34 // fade in. |
35 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_HIDE, // Inverse of SHOW. | 35 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_HIDE, // Inverse of SHOW. |
36 WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE, // Window scale/rotates down | 36 WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE, // Window scale/rotates down |
37 // to its launcher icon. | 37 // to its launcher icon. |
| 38 // Fade in/out using brightness and grayscale web filters. |
| 39 WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE, |
38 }; | 40 }; |
39 | 41 |
40 // Type of visibility change transition that a window should animate. | 42 // Type of visibility change transition that a window should animate. |
41 // Default behavior is to animate both show and hide. | 43 // Default behavior is to animate both show and hide. |
42 enum WindowVisibilityAnimationTransition { | 44 enum WindowVisibilityAnimationTransition { |
43 // 0 is used as default. | 45 // 0 is used as default. |
44 ANIMATE_SHOW = 0x1, | 46 ANIMATE_SHOW = 0x1, |
45 ANIMATE_HIDE = 0x2, | 47 ANIMATE_HIDE = 0x2, |
46 ANIMATE_BOTH = ANIMATE_SHOW | ANIMATE_HIDE, | 48 ANIMATE_BOTH = ANIMATE_SHOW | ANIMATE_HIDE, |
47 ANIMATE_NONE = 0x4, | 49 ANIMATE_NONE = 0x4, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 92 |
91 // Delay the old layer deletion so that test can verify the behavior of | 93 // Delay the old layer deletion so that test can verify the behavior of |
92 // old layer. | 94 // old layer. |
93 ASH_EXPORT void SetDelayedOldLayerDeletionInCrossFadeForTest(bool value); | 95 ASH_EXPORT void SetDelayedOldLayerDeletionInCrossFadeForTest(bool value); |
94 | 96 |
95 } // namespace internal | 97 } // namespace internal |
96 } // namespace ash | 98 } // namespace ash |
97 | 99 |
98 | 100 |
99 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 101 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
OLD | NEW |