Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: services/ui/ws/animation_runner.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/animation_runner.h ('k') | services/ui/ws/animation_runner_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/animation_runner.h ('k') | services/ui/ws/animation_runner_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698