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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // the analysis is fairly ad-hoc). | 36 // the analysis is fairly ad-hoc). |
37 bool RootWindowIsAnimated(SessionStateAnimator::AnimationType type) const; | 37 bool RootWindowIsAnimated(SessionStateAnimator::AnimationType type) const; |
38 | 38 |
39 private: | 39 private: |
40 SessionStateAnimatorImpl* animator_; // not owned | 40 SessionStateAnimatorImpl* animator_; // not owned |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(TestApi); | 42 DISALLOW_COPY_AND_ASSIGN(TestApi); |
43 }; | 43 }; |
44 | 44 |
45 SessionStateAnimatorImpl(); | 45 SessionStateAnimatorImpl(); |
46 virtual ~SessionStateAnimatorImpl(); | 46 ~SessionStateAnimatorImpl() override; |
47 | 47 |
48 // Fills |containers| with the containers included in |container_mask|. | 48 // Fills |containers| with the containers included in |container_mask|. |
49 static void GetContainers(int container_mask, | 49 static void GetContainers(int container_mask, |
50 aura::Window::Windows* containers); | 50 aura::Window::Windows* containers); |
51 | 51 |
52 // ash::SessionStateAnimator: | 52 // ash::SessionStateAnimator: |
53 virtual void StartAnimation(int container_mask, | 53 void StartAnimation(int container_mask, |
54 AnimationType type, | 54 AnimationType type, |
55 AnimationSpeed speed) override; | 55 AnimationSpeed speed) override; |
56 virtual void StartAnimationWithCallback( | 56 void StartAnimationWithCallback(int container_mask, |
57 int container_mask, | 57 AnimationType type, |
58 AnimationType type, | 58 AnimationSpeed speed, |
59 AnimationSpeed speed, | 59 base::Closure callback) override; |
60 base::Closure callback) override; | 60 AnimationSequence* BeginAnimationSequence(base::Closure callback) override; |
61 virtual AnimationSequence* BeginAnimationSequence( | 61 bool IsBackgroundHidden() const override; |
62 base::Closure callback) override; | 62 void ShowBackground() override; |
63 virtual bool IsBackgroundHidden() const override; | 63 void HideBackground() override; |
64 virtual void ShowBackground() override; | |
65 virtual void HideBackground() override; | |
66 | 64 |
67 private: | 65 private: |
68 class AnimationSequence; | 66 class AnimationSequence; |
69 friend class AnimationSequence; | 67 friend class AnimationSequence; |
70 | 68 |
71 virtual void StartAnimationInSequence(int container_mask, | 69 virtual void StartAnimationInSequence(int container_mask, |
72 AnimationType type, | 70 AnimationType type, |
73 AnimationSpeed speed, | 71 AnimationSpeed speed, |
74 AnimationSequence* observer); | 72 AnimationSequence* observer); |
75 | 73 |
76 // Apply animation |type| to window |window| with |speed| and add |observer| | 74 // Apply animation |type| to window |window| with |speed| and add |observer| |
77 // if it is not NULL to the last animation sequence. | 75 // if it is not NULL to the last animation sequence. |
78 void RunAnimationForWindow(aura::Window* window, | 76 void RunAnimationForWindow(aura::Window* window, |
79 SessionStateAnimator::AnimationType type, | 77 SessionStateAnimator::AnimationType type, |
80 SessionStateAnimator::AnimationSpeed speed, | 78 SessionStateAnimator::AnimationSpeed speed, |
81 ui::LayerAnimationObserver* observer); | 79 ui::LayerAnimationObserver* observer); |
82 | 80 |
83 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimatorImpl); | 81 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimatorImpl); |
84 }; | 82 }; |
85 | 83 |
86 } // namespace ash | 84 } // namespace ash |
87 | 85 |
88 #endif // ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ | 86 #endif // ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ |
OLD | NEW |