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 AnimationDelegate; | 28 class AnimationDelegate; |
29 class AnimationEvents; | 29 class AnimationEvents; |
30 class AnimationHost; | 30 class AnimationHost; |
31 class AnimationPlayer; | 31 class AnimationPlayer; |
32 class FilterOperations; | 32 class FilterOperations; |
33 enum class ElementListType; | 33 enum class ElementListType; |
34 struct AnimationEvent; | 34 struct AnimationEvent; |
35 | 35 |
36 // An ElementAnimations owns a list of all AnimationPlayers, attached to | 36 // An ElementAnimations owns a list of all AnimationPlayers, attached to |
37 // the element. | 37 // the element. |
38 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship). | 38 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship). |
39 // No pointer to/from respective blink::ElementAnimations object for now. | 39 // No pointer to/from respective blink::ElementAnimations object for now. |
40 class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> { | 40 class CC_ANIMATION_EXPORT ElementAnimations |
| 41 : public base::RefCounted<ElementAnimations> { |
41 public: | 42 public: |
42 static scoped_refptr<ElementAnimations> Create(); | 43 static scoped_refptr<ElementAnimations> Create(); |
43 | 44 |
44 ElementId element_id() const { return element_id_; } | 45 ElementId element_id() const { return element_id_; } |
45 void SetElementId(ElementId element_id); | 46 void SetElementId(ElementId element_id); |
46 | 47 |
47 // Parent AnimationHost. | 48 // Parent AnimationHost. |
48 AnimationHost* animation_host() { return animation_host_; } | 49 AnimationHost* animation_host() { return animation_host_; } |
49 const AnimationHost* animation_host() const { return animation_host_; } | 50 const AnimationHost* animation_host() const { return animation_host_; } |
50 void SetAnimationHost(AnimationHost* host); | 51 void SetAnimationHost(AnimationHost* host); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 PropertyAnimationState pending_state_; | 220 PropertyAnimationState pending_state_; |
220 | 221 |
221 bool needs_update_impl_client_state_; | 222 bool needs_update_impl_client_state_; |
222 | 223 |
223 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 224 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
224 }; | 225 }; |
225 | 226 |
226 } // namespace cc | 227 } // namespace cc |
227 | 228 |
228 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 229 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
OLD | NEW |