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

Side by Side Diff: cc/animation/animation_host.h

Issue 1952563002: Rename and refactor ScrollOffsetAnimations to ScrollOffsetAnimationsImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/ScrollOffsetAnimationsHostImpl/ScrollOffsetAnimationsImpl Created 4 years, 7 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 | « cc/BUILD.gn ('k') | cc/animation/animation_host.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CC_ANIMATION_ANIMATION_HOST_H_ 5 #ifndef CC_ANIMATION_ANIMATION_HOST_H_
6 #define CC_ANIMATION_ANIMATION_HOST_H_ 6 #define CC_ANIMATION_ANIMATION_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "cc/animation/animation.h" 15 #include "cc/animation/animation.h"
16 #include "cc/animation/scroll_offset_animations_impl.h"
loyso (OOO) 2016/05/04 23:47:21 Nit: You could use forward declaration here.
16 #include "cc/base/cc_export.h" 17 #include "cc/base/cc_export.h"
17 #include "cc/trees/mutator_host_client.h" 18 #include "cc/trees/mutator_host_client.h"
18 #include "ui/gfx/geometry/box_f.h" 19 #include "ui/gfx/geometry/box_f.h"
19 #include "ui/gfx/geometry/vector2d_f.h" 20 #include "ui/gfx/geometry/vector2d_f.h"
20 21
21 namespace gfx { 22 namespace gfx {
22 class ScrollOffset; 23 class ScrollOffset;
23 } 24 }
24 25
25 namespace cc { 26 namespace cc {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ElementToAnimationsMap element_to_animations_map_; 182 ElementToAnimationsMap element_to_animations_map_;
182 ElementToAnimationsMap active_element_to_animations_map_; 183 ElementToAnimationsMap active_element_to_animations_map_;
183 184
184 // A list of all timelines which this host owns. 185 // A list of all timelines which this host owns.
185 using IdToTimelineMap = 186 using IdToTimelineMap =
186 std::unordered_map<int, scoped_refptr<AnimationTimeline>>; 187 std::unordered_map<int, scoped_refptr<AnimationTimeline>>;
187 IdToTimelineMap id_to_timeline_map_; 188 IdToTimelineMap id_to_timeline_map_;
188 189
189 MutatorHostClient* mutator_host_client_; 190 MutatorHostClient* mutator_host_client_;
190 191
191 class ScrollOffsetAnimations; 192 std::unique_ptr<ScrollOffsetAnimationsImpl> scroll_offset_animations_impl_;
192 std::unique_ptr<ScrollOffsetAnimations> scroll_offset_animations_;
193 193
194 const ThreadInstance thread_instance_; 194 const ThreadInstance thread_instance_;
195 195
196 bool supports_scroll_animations_; 196 bool supports_scroll_animations_;
197 bool animation_waiting_for_deletion_; 197 bool animation_waiting_for_deletion_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(AnimationHost); 199 DISALLOW_COPY_AND_ASSIGN(AnimationHost);
200 }; 200 };
201 201
202 } // namespace cc 202 } // namespace cc
203 203
204 #endif // CC_ANIMATION_ANIMATION_HOST_H_ 204 #endif // CC_ANIMATION_ANIMATION_HOST_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/animation/animation_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698