| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 void StartAnimationWithCallback(int container_mask, | 56 void StartAnimationWithCallback(int container_mask, |
| 57 AnimationType type, | 57 AnimationType type, |
| 58 AnimationSpeed speed, | 58 AnimationSpeed speed, |
| 59 base::Closure callback) override; | 59 base::OnceClosure callback) override; |
| 60 AnimationSequence* BeginAnimationSequence(base::Closure callback) override; | 60 AnimationSequence* BeginAnimationSequence( |
| 61 base::OnceClosure callback) override; |
| 61 bool IsWallpaperHidden() const override; | 62 bool IsWallpaperHidden() const override; |
| 62 void ShowWallpaper() override; | 63 void ShowWallpaper() override; |
| 63 void HideWallpaper() override; | 64 void HideWallpaper() override; |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 class AnimationSequence; | 67 class AnimationSequence; |
| 67 friend class AnimationSequence; | 68 friend class AnimationSequence; |
| 68 | 69 |
| 69 virtual void StartAnimationInSequence(int container_mask, | 70 virtual void StartAnimationInSequence(int container_mask, |
| 70 AnimationType type, | 71 AnimationType type, |
| 71 AnimationSpeed speed, | 72 AnimationSpeed speed, |
| 72 AnimationSequence* observer); | 73 AnimationSequence* observer); |
| 73 | 74 |
| 74 // Apply animation |type| to window |window| with |speed| and add |observer| | 75 // Apply animation |type| to window |window| with |speed| and add |observer| |
| 75 // if it is not NULL to the last animation sequence. | 76 // if it is not NULL to the last animation sequence. |
| 76 void RunAnimationForWindow(aura::Window* window, | 77 void RunAnimationForWindow(aura::Window* window, |
| 77 SessionStateAnimator::AnimationType type, | 78 SessionStateAnimator::AnimationType type, |
| 78 SessionStateAnimator::AnimationSpeed speed, | 79 SessionStateAnimator::AnimationSpeed speed, |
| 79 ui::LayerAnimationObserver* observer); | 80 ui::LayerAnimationObserver* observer); |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimatorImpl); | 82 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimatorImpl); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace ash | 85 } // namespace ash |
| 85 | 86 |
| 86 #endif // ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ | 87 #endif // ASH_WM_SESSION_STATE_ANIMATOR_IMPL_H_ |
| OLD | NEW |