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_IMPL_H_ | 5 #ifndef ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ |
6 #define ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ | 6 #define ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/session_state_animator.h" | 9 #include "ash/wm/session_state_animator.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 AnimationSequence* BeginAnimationSequence(base::Closure callback) override; | 60 AnimationSequence* BeginAnimationSequence(base::Closure callback) override; |
61 bool IsBackgroundHidden() const override; | 61 bool IsBackgroundHidden() const override; |
62 void ShowBackground() override; | 62 void ShowBackground() override; |
63 void HideBackground() override; | 63 void HideBackground() override; |
64 | 64 |
65 private: | 65 private: |
66 class AnimationSequence; | 66 class AnimationSequence; |
67 friend class AnimationSequence; | 67 friend class AnimationSequence; |
68 | 68 |
69 virtual void StartAnimationInSequence(int container_mask, | 69 virtual void StartAnimationInSequence(int container_mask, |
70 AnimationType type, | 70 AnimationType type, |
71 AnimationSpeed speed, | 71 AnimationSpeed speed, |
72 AnimationSequence* observer); | 72 AnimationSequence* observer); |
73 | 73 |
74 // Apply animation |type| to window |window| with |speed| and add |observer| | 74 // Apply animation |type| to window |window| with |speed| and add |observer| |
75 // if it is not NULL to the last animation sequence. | 75 // if it is not NULL to the last animation sequence. |
76 void RunAnimationForWindow(aura::Window* window, | 76 void RunAnimationForWindow(aura::Window* window, |
77 SessionStateAnimator::AnimationType type, | 77 SessionStateAnimator::AnimationType type, |
78 SessionStateAnimator::AnimationSpeed speed, | 78 SessionStateAnimator::AnimationSpeed speed, |
79 ui::LayerAnimationObserver* observer); | 79 ui::LayerAnimationObserver* observer); |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimatorImpl); | 81 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimatorImpl); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace ash | 84 } // namespace ash |
85 | 85 |
86 #endif // ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ | 86 #endif // ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ |
OLD | NEW |