| 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/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 13 #include "ui/compositor/layer_animation_observer.h" | 13 #include "ui/compositor/layer_animation_observer.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class Rect; | 16 class Rect; |
| 17 class Size; | 17 class Size; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace ui { | 20 namespace ui { |
| 21 class Layer; | 21 class Layer; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 namespace internal { | |
| 26 | 25 |
| 27 // Displays onscreen animations for session state changes (lock/unlock, sign | 26 // Displays onscreen animations for session state changes (lock/unlock, sign |
| 28 // out, shut down). | 27 // out, shut down). |
| 29 class ASH_EXPORT SessionStateAnimator { | 28 class ASH_EXPORT SessionStateAnimator { |
| 30 public: | 29 public: |
| 31 // Animations that can be applied to groups of containers. | 30 // Animations that can be applied to groups of containers. |
| 32 enum AnimationType { | 31 enum AnimationType { |
| 33 ANIMATION_PARTIAL_CLOSE = 0, | 32 ANIMATION_PARTIAL_CLOSE = 0, |
| 34 ANIMATION_UNDO_PARTIAL_CLOSE, | 33 ANIMATION_UNDO_PARTIAL_CLOSE, |
| 35 ANIMATION_FULL_CLOSE, | 34 ANIMATION_FULL_CLOSE, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // Apply animation |type| to window |window| with |speed| and add |observer| | 166 // Apply animation |type| to window |window| with |speed| and add |observer| |
| 168 // if it is not NULL to the last animation sequence. | 167 // if it is not NULL to the last animation sequence. |
| 169 void RunAnimationForWindow(aura::Window* window, | 168 void RunAnimationForWindow(aura::Window* window, |
| 170 AnimationType type, | 169 AnimationType type, |
| 171 AnimationSpeed speed, | 170 AnimationSpeed speed, |
| 172 ui::LayerAnimationObserver* observer); | 171 ui::LayerAnimationObserver* observer); |
| 173 | 172 |
| 174 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); | 173 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); |
| 175 }; | 174 }; |
| 176 | 175 |
| 177 } // namespace internal | |
| 178 } // namespace ash | 176 } // namespace ash |
| 179 | 177 |
| 180 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ | 178 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ |
| OLD | NEW |