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 #include "cc/animation/element_id.h" |
| 9 |
8 namespace gfx { | 10 namespace gfx { |
9 class Transform; | 11 class Transform; |
10 class ScrollOffset; | 12 class ScrollOffset; |
11 } | 13 } |
12 | 14 |
13 namespace cc { | 15 namespace cc { |
14 | 16 |
15 class FilterOperations; | 17 class FilterOperations; |
16 | 18 |
17 using ElementId = int; | |
18 | |
19 enum class ElementListType { ACTIVE, PENDING }; | 19 enum class ElementListType { ACTIVE, PENDING }; |
20 | 20 |
21 enum class AnimationChangeType { POTENTIAL, RUNNING, BOTH }; | 21 enum class AnimationChangeType { POTENTIAL, RUNNING, BOTH }; |
22 | 22 |
23 class MutatorHostClient { | 23 class MutatorHostClient { |
24 public: | 24 public: |
25 virtual bool IsElementInList(ElementId element_id, | 25 virtual bool IsElementInList(ElementId element_id, |
26 ElementListType list_type) const = 0; | 26 ElementListType list_type) const = 0; |
27 | 27 |
28 virtual void SetMutatorsNeedCommit() = 0; | 28 virtual void SetMutatorsNeedCommit() = 0; |
(...skipping 25 matching lines...) Expand all Loading... |
54 bool is_animating) = 0; | 54 bool is_animating) = 0; |
55 | 55 |
56 virtual void ScrollOffsetAnimationFinished() = 0; | 56 virtual void ScrollOffsetAnimationFinished() = 0; |
57 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( | 57 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( |
58 ElementId element_id) const = 0; | 58 ElementId element_id) const = 0; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace cc | 61 } // namespace cc |
62 | 62 |
63 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ | 63 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ |
OLD | NEW |