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 // TODO(loyso) Move these headers out of cc/animation. |
9 #include "cc/animation/element_id.h" | 9 #include "cc/animation/element_id.h" |
10 #include "cc/animation/property_animation_state.h" | 10 #include "cc/animation/property_animation_state.h" |
11 #include "cc/animation/target_property.h" | 11 #include "cc/animation/target_property.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Transform; | 14 class Transform; |
15 class ScrollOffset; | 15 class ScrollOffset; |
16 } | 16 } |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
20 class FilterOperations; | 20 class FilterOperations; |
21 | 21 |
22 enum class ElementListType { ACTIVE, PENDING }; | 22 enum class ElementListType { ACTIVE, PENDING }; |
23 | 23 |
24 enum class AnimationChangeType { POTENTIAL, RUNNING, BOTH }; | |
25 | |
26 class MutatorHostClient { | 24 class MutatorHostClient { |
27 public: | 25 public: |
28 virtual bool IsElementInList(ElementId element_id, | 26 virtual bool IsElementInList(ElementId element_id, |
29 ElementListType list_type) const = 0; | 27 ElementListType list_type) const = 0; |
30 | 28 |
31 virtual void SetMutatorsNeedCommit() = 0; | 29 virtual void SetMutatorsNeedCommit() = 0; |
32 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; | 30 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; |
33 | 31 |
34 virtual void SetElementFilterMutated(ElementId element_id, | 32 virtual void SetElementFilterMutated(ElementId element_id, |
35 ElementListType list_type, | 33 ElementListType list_type, |
(...skipping 17 matching lines...) Expand all Loading... |
53 const PropertyAnimationState& state) = 0; | 51 const PropertyAnimationState& state) = 0; |
54 | 52 |
55 virtual void ScrollOffsetAnimationFinished() = 0; | 53 virtual void ScrollOffsetAnimationFinished() = 0; |
56 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( | 54 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( |
57 ElementId element_id) const = 0; | 55 ElementId element_id) const = 0; |
58 }; | 56 }; |
59 | 57 |
60 } // namespace cc | 58 } // namespace cc |
61 | 59 |
62 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ | 60 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ |
OLD | NEW |