| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ProgrammaticScrollAnimator_h | 5 #ifndef ProgrammaticScrollAnimator_h |
| 6 #define ProgrammaticScrollAnimator_h | 6 #define ProgrammaticScrollAnimator_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 9 #include "platform/scroll/ScrollAnimatorCompositorCoordinator.h" | 10 #include "platform/scroll/ScrollAnimatorCompositorCoordinator.h" |
| 10 #include "wtf/Allocator.h" | 11 #include "platform/wtf/Allocator.h" |
| 11 #include "wtf/Noncopyable.h" | 12 #include "platform/wtf/Noncopyable.h" |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class ScrollableArea; | 16 class ScrollableArea; |
| 17 class CompositorAnimationTimeline; | 17 class CompositorAnimationTimeline; |
| 18 class CompositorScrollOffsetAnimationCurve; | 18 class CompositorScrollOffsetAnimationCurve; |
| 19 | 19 |
| 20 // Animator for fixed-destination scrolls, such as those triggered by | 20 // Animator for fixed-destination scrolls, such as those triggered by |
| 21 // CSSOM View scroll APIs. | 21 // CSSOM View scroll APIs. |
| 22 class ProgrammaticScrollAnimator : public ScrollAnimatorCompositorCoordinator { | 22 class ProgrammaticScrollAnimator : public ScrollAnimatorCompositorCoordinator { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 Member<ScrollableArea> m_scrollableArea; | 56 Member<ScrollableArea> m_scrollableArea; |
| 57 std::unique_ptr<CompositorScrollOffsetAnimationCurve> m_animationCurve; | 57 std::unique_ptr<CompositorScrollOffsetAnimationCurve> m_animationCurve; |
| 58 ScrollOffset m_targetOffset; | 58 ScrollOffset m_targetOffset; |
| 59 double m_startTime; | 59 double m_startTime; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // ProgrammaticScrollAnimator_h | 64 #endif // ProgrammaticScrollAnimator_h |
| OLD | NEW |