OLD | NEW |
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_ELEMENT_ANIMATIONS_H_ | 5 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "cc/base/cc_export.h" | 15 #include "cc/animation/animation_export.h" |
16 #include "cc/trees/element_id.h" | 16 #include "cc/trees/element_id.h" |
17 #include "cc/trees/property_animation_state.h" | 17 #include "cc/trees/property_animation_state.h" |
18 #include "cc/trees/target_property.h" | 18 #include "cc/trees/target_property.h" |
19 #include "ui/gfx/geometry/scroll_offset.h" | 19 #include "ui/gfx/geometry/scroll_offset.h" |
20 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class BoxF; | 23 class BoxF; |
24 } | 24 } |
25 | 25 |
26 namespace cc { | 26 namespace cc { |
27 | 27 |
28 class AnimationEvents; | 28 class AnimationEvents; |
29 class AnimationHost; | 29 class AnimationHost; |
30 class AnimationPlayer; | 30 class AnimationPlayer; |
31 class FilterOperations; | 31 class FilterOperations; |
32 enum class ElementListType; | 32 enum class ElementListType; |
33 struct AnimationEvent; | 33 struct AnimationEvent; |
34 | 34 |
35 // An ElementAnimations owns a list of all AnimationPlayers, attached to | 35 // An ElementAnimations owns a list of all AnimationPlayers, attached to |
36 // the element. | 36 // the element. |
37 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship). | 37 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship). |
38 // No pointer to/from respective blink::ElementAnimations object for now. | 38 // No pointer to/from respective blink::ElementAnimations object for now. |
39 class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> { | 39 class CC_ANIMATION_EXPORT ElementAnimations |
| 40 : public base::RefCounted<ElementAnimations> { |
40 public: | 41 public: |
41 static scoped_refptr<ElementAnimations> Create(); | 42 static scoped_refptr<ElementAnimations> Create(); |
42 | 43 |
43 ElementId element_id() const { return element_id_; } | 44 ElementId element_id() const { return element_id_; } |
44 void SetElementId(ElementId element_id); | 45 void SetElementId(ElementId element_id); |
45 | 46 |
46 // Parent AnimationHost. | 47 // Parent AnimationHost. |
47 AnimationHost* animation_host() { return animation_host_; } | 48 AnimationHost* animation_host() { return animation_host_; } |
48 const AnimationHost* animation_host() const { return animation_host_; } | 49 const AnimationHost* animation_host() const { return animation_host_; } |
49 void SetAnimationHost(AnimationHost* host); | 50 void SetAnimationHost(AnimationHost* host); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 PropertyAnimationState pending_state_; | 219 PropertyAnimationState pending_state_; |
219 | 220 |
220 bool needs_update_impl_client_state_; | 221 bool needs_update_impl_client_state_; |
221 | 222 |
222 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 223 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
223 }; | 224 }; |
224 | 225 |
225 } // namespace cc | 226 } // namespace cc |
226 | 227 |
227 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 228 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
OLD | NEW |