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_LAYER_TREE_MUTATORS_CLIENT_H_ | 5 #ifndef CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ |
6 #define CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ | 6 #define CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ |
7 | 7 |
8 namespace gfx { | 8 namespace gfx { |
9 class Transform; | 9 class Transform; |
10 class ScrollOffset; | 10 class ScrollOffset; |
(...skipping 16 matching lines...) Expand all Loading... |
27 virtual void SetLayerOpacityMutated(int layer_id, | 27 virtual void SetLayerOpacityMutated(int layer_id, |
28 bool active_tree, | 28 bool active_tree, |
29 float opacity) = 0; | 29 float opacity) = 0; |
30 virtual void SetLayerTransformMutated(int layer_id, | 30 virtual void SetLayerTransformMutated(int layer_id, |
31 bool active_tree, | 31 bool active_tree, |
32 const gfx::Transform& transform) = 0; | 32 const gfx::Transform& transform) = 0; |
33 virtual void SetLayerScrollOffsetMutated( | 33 virtual void SetLayerScrollOffsetMutated( |
34 int layer_id, | 34 int layer_id, |
35 bool active_tree, | 35 bool active_tree, |
36 const gfx::ScrollOffset& scroll_offset) = 0; | 36 const gfx::ScrollOffset& scroll_offset) = 0; |
| 37 |
| 38 virtual void ScrollOffsetAnimationFinished() {} |
| 39 virtual gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const = 0; |
37 }; | 40 }; |
38 | 41 |
39 } // namespace cc | 42 } // namespace cc |
40 | 43 |
41 #endif // CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ | 44 #endif // CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ |
OLD | NEW |