| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/mus/ws/animation_runner.h" | 5 #include "services/ui/ws/animation_runner.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
| 8 #include "components/mus/ws/animation_runner_observer.h" | 8 #include "services/ui/ws/animation_runner_observer.h" |
| 9 #include "components/mus/ws/scheduled_animation_group.h" | 9 #include "services/ui/ws/scheduled_animation_group.h" |
| 10 #include "components/mus/ws/server_window.h" | 10 #include "services/ui/ws/server_window.h" |
| 11 | 11 |
| 12 namespace mus { | 12 namespace mus { |
| 13 namespace ws { | 13 namespace ws { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 bool ConvertWindowAndAnimationPairsToScheduledAnimationGroups( | 16 bool ConvertWindowAndAnimationPairsToScheduledAnimationGroups( |
| 17 const std::vector<AnimationRunner::WindowAndAnimationPair>& pairs, | 17 const std::vector<AnimationRunner::WindowAndAnimationPair>& pairs, |
| 18 AnimationRunner::AnimationId id, | 18 AnimationRunner::AnimationId id, |
| 19 base::TimeTicks now, | 19 base::TimeTicks now, |
| 20 std::vector<std::unique_ptr<ScheduledAnimationGroup>>* groups) { | 20 std::vector<std::unique_ptr<ScheduledAnimationGroup>>* groups) { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 id_to_windows_map_[animation_id].erase(window); | 154 id_to_windows_map_[animation_id].erase(window); |
| 155 if (!id_to_windows_map_[animation_id].empty()) | 155 if (!id_to_windows_map_[animation_id].empty()) |
| 156 return false; | 156 return false; |
| 157 | 157 |
| 158 id_to_windows_map_.erase(animation_id); | 158 id_to_windows_map_.erase(animation_id); |
| 159 return true; | 159 return true; |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace ws | 162 } // namespace ws |
| 163 } // namespace mus | 163 } // namespace mus |
| OLD | NEW |