| 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 13 matching lines...) Expand all Loading... |
| 24 namespace ash { | 24 namespace ash { |
| 25 | 25 |
| 26 // A variety of canned animations for window transitions. | 26 // A variety of canned animations for window transitions. |
| 27 enum WindowVisibilityAnimationType { | 27 enum WindowVisibilityAnimationType { |
| 28 WINDOW_VISIBILITY_ANIMATION_TYPE_DEFAULT = 0, // Default. Lets the system | 28 WINDOW_VISIBILITY_ANIMATION_TYPE_DEFAULT = 0, // Default. Lets the system |
| 29 // decide based on window | 29 // decide based on window |
| 30 // type. | 30 // type. |
| 31 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in. | 31 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in. |
| 32 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation. | 32 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation. |
| 33 WINDOW_VISIBILITY_ANIMATION_TYPE_FADE, // Fades in/out. | 33 WINDOW_VISIBILITY_ANIMATION_TYPE_FADE, // Fades in/out. |
| 34 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_SHOW, // Windows are scaled and | |
| 35 // fade in. | |
| 36 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_HIDE, // Inverse of SHOW. | |
| 37 WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE, // Window scale/rotates down | 34 WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE, // Window scale/rotates down |
| 38 // to its launcher icon. | 35 // to its launcher icon. |
| 39 // Fade in/out using brightness and grayscale web filters. | 36 // Fade in/out using brightness and grayscale web filters. |
| 40 WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE, | 37 WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE, |
| 41 }; | 38 }; |
| 42 | 39 |
| 43 // Type of visibility change transition that a window should animate. | 40 // Type of visibility change transition that a window should animate. |
| 44 // Default behavior is to animate both show and hide. | 41 // Default behavior is to animate both show and hide. |
| 45 enum WindowVisibilityAnimationTransition { | 42 enum WindowVisibilityAnimationTransition { |
| 46 ANIMATE_SHOW = 0x1, | 43 ANIMATE_SHOW = 0x1, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 93 |
| 97 // Returns false if the |window| didn't animate. | 94 // Returns false if the |window| didn't animate. |
| 98 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged(aura::Window* window, | 95 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged(aura::Window* window, |
| 99 bool visible); | 96 bool visible); |
| 100 | 97 |
| 101 } // namespace internal | 98 } // namespace internal |
| 102 } // namespace ash | 99 } // namespace ash |
| 103 | 100 |
| 104 | 101 |
| 105 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 102 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
| OLD | NEW |