| 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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 namespace internal { | 25 namespace internal { |
| 26 | 26 |
| 27 // Displays onscreen animations for session state changes (lock/unlock, sign | 27 // Displays onscreen animations for session state changes (lock/unlock, sign |
| 28 // out, shut down). | 28 // out, shut down). |
| 29 class ASH_EXPORT SessionStateAnimator : public aura::RootWindowObserver { | 29 class ASH_EXPORT SessionStateAnimator : public aura::RootWindowObserver { |
| 30 public: | 30 public: |
| 31 // Animations that can be applied to groups of containers. | 31 // Animations that can be applied to groups of containers. |
| 32 enum AnimationType { | 32 enum AnimationType { |
| 33 ANIMATION_SLOW_CLOSE = 0, | 33 ANIMATION_PARTIAL_CLOSE = 0, |
| 34 ANIMATION_UNDO_SLOW_CLOSE, | 34 ANIMATION_UNDO_PARTIAL_CLOSE, |
| 35 ANIMATION_FAST_CLOSE, | 35 ANIMATION_FULL_CLOSE, |
| 36 ANIMATION_FADE_IN, | 36 ANIMATION_FADE_IN, |
| 37 ANIMATION_HIDE, | 37 ANIMATION_HIDE, |
| 38 ANIMATION_RESTORE, | 38 ANIMATION_RESTORE, |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 // Specific containers or groups of containers that can be animated. | 41 // Specific containers or groups of containers that can be animated. |
| 42 enum Container { | 42 enum Container { |
| 43 DESKTOP_BACKGROUND = 1 << 0, | 43 DESKTOP_BACKGROUND = 1 << 0, |
| 44 LAUNCHER = 1 << 1, | 44 LAUNCHER = 1 << 1, |
| 45 | 45 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // screen. | 134 // screen. |
| 135 base::OneShotTimer<SessionStateAnimator> hide_black_layer_timer_; | 135 base::OneShotTimer<SessionStateAnimator> hide_black_layer_timer_; |
| 136 | 136 |
| 137 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); | 137 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace internal | 140 } // namespace internal |
| 141 } // namespace ash | 141 } // namespace ash |
| 142 | 142 |
| 143 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ | 143 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ |
| OLD | NEW |