| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_H_ | 5 #ifndef CC_TREES_MUTATOR_HOST_H_ |
| 6 #define CC_TREES_MUTATOR_HOST_H_ | 6 #define CC_TREES_MUTATOR_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 ElementListType list_type, | 109 ElementListType list_type, |
| 110 float* start_scale) const = 0; | 110 float* start_scale) const = 0; |
| 111 | 111 |
| 112 virtual bool HasAnyAnimation(ElementId element_id) const = 0; | 112 virtual bool HasAnyAnimation(ElementId element_id) const = 0; |
| 113 virtual bool HasTickingAnimationForTesting(ElementId element_id) const = 0; | 113 virtual bool HasTickingAnimationForTesting(ElementId element_id) const = 0; |
| 114 | 114 |
| 115 virtual void ImplOnlyScrollAnimationCreate( | 115 virtual void ImplOnlyScrollAnimationCreate( |
| 116 ElementId element_id, | 116 ElementId element_id, |
| 117 const gfx::ScrollOffset& target_offset, | 117 const gfx::ScrollOffset& target_offset, |
| 118 const gfx::ScrollOffset& current_offset, | 118 const gfx::ScrollOffset& current_offset, |
| 119 base::TimeDelta delayed_by) = 0; | 119 base::TimeDelta delayed_by, |
| 120 base::TimeDelta animation_start_offset) = 0; |
| 120 virtual bool ImplOnlyScrollAnimationUpdateTarget( | 121 virtual bool ImplOnlyScrollAnimationUpdateTarget( |
| 121 ElementId element_id, | 122 ElementId element_id, |
| 122 const gfx::Vector2dF& scroll_delta, | 123 const gfx::Vector2dF& scroll_delta, |
| 123 const gfx::ScrollOffset& max_scroll_offset, | 124 const gfx::ScrollOffset& max_scroll_offset, |
| 124 base::TimeTicks frame_monotonic_time, | 125 base::TimeTicks frame_monotonic_time, |
| 125 base::TimeDelta delayed_by) = 0; | 126 base::TimeDelta delayed_by) = 0; |
| 126 | 127 |
| 127 virtual void ScrollAnimationAbort() = 0; | 128 virtual void ScrollAnimationAbort() = 0; |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 class MutatorEvents { | 131 class MutatorEvents { |
| 131 public: | 132 public: |
| 132 virtual ~MutatorEvents() {} | 133 virtual ~MutatorEvents() {} |
| 133 virtual bool IsEmpty() const = 0; | 134 virtual bool IsEmpty() const = 0; |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace cc | 137 } // namespace cc |
| 137 | 138 |
| 138 #endif // CC_TREES_MUTATOR_HOST_H_ | 139 #endif // CC_TREES_MUTATOR_HOST_H_ |
| OLD | NEW |