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_TREES_MUTATOR_HOST_CLIENT_H_ | 5 #ifndef CC_TREES_MUTATOR_HOST_CLIENT_H_ |
6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_ | 6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_ |
7 | 7 |
| 8 // TODO(loyso) Move these headers out of cc/animation. |
8 #include "cc/animation/element_id.h" | 9 #include "cc/animation/element_id.h" |
| 10 #include "cc/animation/property_animation_state.h" |
| 11 #include "cc/animation/target_property.h" |
9 | 12 |
10 namespace gfx { | 13 namespace gfx { |
11 class Transform; | 14 class Transform; |
12 class ScrollOffset; | 15 class ScrollOffset; |
13 } | 16 } |
14 | 17 |
15 namespace cc { | 18 namespace cc { |
16 | 19 |
17 class FilterOperations; | 20 class FilterOperations; |
18 | 21 |
(...skipping 16 matching lines...) Expand all Loading... |
35 ElementListType list_type, | 38 ElementListType list_type, |
36 float opacity) = 0; | 39 float opacity) = 0; |
37 virtual void SetElementTransformMutated(ElementId element_id, | 40 virtual void SetElementTransformMutated(ElementId element_id, |
38 ElementListType list_type, | 41 ElementListType list_type, |
39 const gfx::Transform& transform) = 0; | 42 const gfx::Transform& transform) = 0; |
40 virtual void SetElementScrollOffsetMutated( | 43 virtual void SetElementScrollOffsetMutated( |
41 ElementId element_id, | 44 ElementId element_id, |
42 ElementListType list_type, | 45 ElementListType list_type, |
43 const gfx::ScrollOffset& scroll_offset) = 0; | 46 const gfx::ScrollOffset& scroll_offset) = 0; |
44 | 47 |
45 virtual void ElementTransformIsAnimatingChanged( | 48 // Allows to change IsAnimating value for a set of properties. |
| 49 virtual void ElementIsAnimatingChanged( |
46 ElementId element_id, | 50 ElementId element_id, |
47 ElementListType list_type, | 51 ElementListType list_type, |
48 AnimationChangeType change_type, | 52 const PropertyAnimationState& mask, |
49 bool is_animating) = 0; | 53 const PropertyAnimationState& state) = 0; |
50 | |
51 virtual void ElementOpacityIsAnimatingChanged(ElementId element_id, | |
52 ElementListType list_type, | |
53 AnimationChangeType change_type, | |
54 bool is_animating) = 0; | |
55 | |
56 virtual void ElementFilterIsAnimatingChanged(ElementId element_id, | |
57 ElementListType list_type, | |
58 AnimationChangeType change_type, | |
59 bool is_animating) = 0; | |
60 | 54 |
61 virtual void ScrollOffsetAnimationFinished() = 0; | 55 virtual void ScrollOffsetAnimationFinished() = 0; |
62 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( | 56 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( |
63 ElementId element_id) const = 0; | 57 ElementId element_id) const = 0; |
64 }; | 58 }; |
65 | 59 |
66 } // namespace cc | 60 } // namespace cc |
67 | 61 |
68 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ | 62 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ |
OLD | NEW |