| 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_SESSION_STATE_ANIMATOR_H_ | 5 #ifndef ASH_WM_SESSION_STATE_ANIMATOR_H_ |
| 6 #define ASH_WM_SESSION_STATE_ANIMATOR_H_ | 6 #define ASH_WM_SESSION_STATE_ANIMATOR_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 // Apply animation |type| to all containers included in |container_mask| with | 188 // Apply animation |type| to all containers included in |container_mask| with |
| 189 // specified |speed|. | 189 // specified |speed|. |
| 190 virtual void StartAnimation(int container_mask, | 190 virtual void StartAnimation(int container_mask, |
| 191 AnimationType type, | 191 AnimationType type, |
| 192 AnimationSpeed speed) = 0; | 192 AnimationSpeed speed) = 0; |
| 193 | 193 |
| 194 // Apply animation |type| to all containers included in |container_mask| with | 194 // Apply animation |type| to all containers included in |container_mask| with |
| 195 // specified |speed| and call a |callback| at the end of the animation, if it | 195 // specified |speed| and call a |callback| at the end of the animation, if it |
| 196 // is not null. | 196 // is not null. |
| 197 virtual void StartAnimationWithCallback( | 197 virtual void StartAnimationWithCallback(int container_mask, |
| 198 int container_mask, | 198 AnimationType type, |
| 199 AnimationType type, | 199 AnimationSpeed speed, |
| 200 AnimationSpeed speed, | 200 base::Closure callback) = 0; |
| 201 base::Closure callback) = 0; | |
| 202 | 201 |
| 203 // Begins an animation sequence. Use this when you need to be notified when | 202 // Begins an animation sequence. Use this when you need to be notified when |
| 204 // a group of animations are completed. See AnimationSequence documentation | 203 // a group of animations are completed. See AnimationSequence documentation |
| 205 // for more details. | 204 // for more details. |
| 206 virtual AnimationSequence* BeginAnimationSequence( | 205 virtual AnimationSequence* BeginAnimationSequence(base::Closure callback) = 0; |
| 207 base::Closure callback) = 0; | |
| 208 | 206 |
| 209 // Retruns true if the background is hidden. | 207 // Retruns true if the background is hidden. |
| 210 virtual bool IsBackgroundHidden() const = 0; | 208 virtual bool IsBackgroundHidden() const = 0; |
| 211 | 209 |
| 212 // Shows the background immediately. | 210 // Shows the background immediately. |
| 213 virtual void ShowBackground() = 0; | 211 virtual void ShowBackground() = 0; |
| 214 | 212 |
| 215 // Hides the background immediately. | 213 // Hides the background immediately. |
| 216 virtual void HideBackground() = 0; | 214 virtual void HideBackground() = 0; |
| 217 | 215 |
| 218 private: | 216 private: |
| 219 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); | 217 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); |
| 220 }; | 218 }; |
| 221 | 219 |
| 222 } // namespace ash | 220 } // namespace ash |
| 223 | 221 |
| 224 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ | 222 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ |
| OLD | NEW |