| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 WORKSPACE_ANIMATE_DOWN, | 101 WORKSPACE_ANIMATE_DOWN, |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 // Animates the workspace visualy in or out. This is used when the workspace is | 104 // Animates the workspace visualy in or out. This is used when the workspace is |
| 105 // becoming active, and out when the workspace was active. | 105 // becoming active, and out when the workspace was active. |
| 106 ASH_EXPORT void AnimateWorkspaceIn(aura::Window* window, | 106 ASH_EXPORT void AnimateWorkspaceIn(aura::Window* window, |
| 107 WorkspaceAnimationDirection direction); | 107 WorkspaceAnimationDirection direction); |
| 108 ASH_EXPORT void AnimateWorkspaceOut(aura::Window* window, | 108 ASH_EXPORT void AnimateWorkspaceOut(aura::Window* window, |
| 109 WorkspaceAnimationDirection direction); | 109 WorkspaceAnimationDirection direction); |
| 110 | 110 |
| 111 // Returns the amount of time before destroying the system background. |
| 112 ASH_EXPORT base::TimeDelta GetSystemBackgroundDestroyDuration(); |
| 113 |
| 111 namespace internal { | 114 namespace internal { |
| 112 | 115 |
| 113 // Returns the duration of the cross-fade animation based on the |old_bounds| | 116 // Returns the duration of the cross-fade animation based on the |old_bounds| |
| 114 // and |new_bounds| of the window. | 117 // and |new_bounds| of the window. |
| 115 ASH_EXPORT base::TimeDelta GetCrossFadeDuration(const gfx::Rect& old_bounds, | 118 ASH_EXPORT base::TimeDelta GetCrossFadeDuration(const gfx::Rect& old_bounds, |
| 116 const gfx::Rect& new_bounds); | 119 const gfx::Rect& new_bounds); |
| 117 | 120 |
| 118 // Returns false if the |window| didn't animate. | 121 // Returns false if the |window| didn't animate. |
| 119 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged( | 122 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged( |
| 120 aura::Window* window, bool visible); | 123 aura::Window* window, bool visible); |
| 121 | 124 |
| 122 // Delay the old layer deletion so that test can verify the behavior of | 125 // Delay the old layer deletion so that test can verify the behavior of |
| 123 // old layer. | 126 // old layer. |
| 124 ASH_EXPORT void SetDelayedOldLayerDeletionInCrossFadeForTest(bool value); | 127 ASH_EXPORT void SetDelayedOldLayerDeletionInCrossFadeForTest(bool value); |
| 125 | 128 |
| 126 } // namespace internal | 129 } // namespace internal |
| 127 } // namespace ash | 130 } // namespace ash |
| 128 | 131 |
| 129 | 132 |
| 130 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 133 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
| OLD | NEW |