| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Returns the duration of the cross-fade animation based on the |old_bounds| | 118 // Returns the duration of the cross-fade animation based on the |old_bounds| |
| 119 // and |new_bounds| of the window. | 119 // and |new_bounds| of the window. |
| 120 ASH_EXPORT base::TimeDelta GetCrossFadeDuration(const gfx::Rect& old_bounds, | 120 ASH_EXPORT base::TimeDelta GetCrossFadeDuration(const gfx::Rect& old_bounds, |
| 121 const gfx::Rect& new_bounds); | 121 const gfx::Rect& new_bounds); |
| 122 | 122 |
| 123 // Returns false if the |window| didn't animate. | 123 // Returns false if the |window| didn't animate. |
| 124 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged( | 124 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged( |
| 125 aura::Window* window, bool visible); | 125 aura::Window* window, bool visible); |
| 126 | 126 |
| 127 // Delay the old layer deletion so that test can verify the behavior of | |
| 128 // old layer. | |
| 129 ASH_EXPORT void SetDelayedOldLayerDeletionInCrossFadeForTest(bool value); | |
| 130 | |
| 131 } // namespace internal | 127 } // namespace internal |
| 132 } // namespace ash | 128 } // namespace ash |
| 133 | 129 |
| 134 | 130 |
| 135 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 131 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
| OLD | NEW |