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/trees/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 class MutatorHostClient { | 21 class MutatorHostClient { |
22 public: | 22 public: |
23 virtual bool IsElementInList(ElementId element_id, | 23 virtual bool IsElementInList(ElementId element_id, |
24 ElementListType list_type) const = 0; | 24 ElementListType list_type) const = 0; |
25 | 25 |
26 virtual void SetMutatorsNeedCommit() = 0; | 26 virtual void SetMutatorsNeedCommit() = 0; |
27 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; | 27 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; |
28 | 28 |
(...skipping 17 matching lines...) Expand all Loading... |
46 bool is_animating) = 0; | 46 bool is_animating) = 0; |
47 | 47 |
48 virtual void ScrollOffsetAnimationFinished() = 0; | 48 virtual void ScrollOffsetAnimationFinished() = 0; |
49 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( | 49 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( |
50 ElementId element_id) const = 0; | 50 ElementId element_id) const = 0; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace cc | 53 } // namespace cc |
54 | 54 |
55 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ | 55 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ |
OLD | NEW |