| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011, Google Inc. All rights reserved. | 2 * Copyright (c) 2011, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "platform/Timer.h" | 34 #include "platform/Timer.h" |
| 35 #include "platform/animation/CompositorAnimationDelegate.h" | 35 #include "platform/animation/CompositorAnimationDelegate.h" |
| 36 #include "platform/animation/CompositorAnimationPlayerClient.h" | 36 #include "platform/animation/CompositorAnimationPlayerClient.h" |
| 37 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h" | 37 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h" |
| 38 #include "platform/scroll/ScrollAnimatorBase.h" | 38 #include "platform/scroll/ScrollAnimatorBase.h" |
| 39 #include <memory> | 39 #include <memory> |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class ScrollAnimatorTest; | |
| 44 class CompositorAnimationTimeline; | 43 class CompositorAnimationTimeline; |
| 45 | 44 |
| 46 class PLATFORM_EXPORT ScrollAnimator : public ScrollAnimatorBase { | 45 class PLATFORM_EXPORT ScrollAnimator : public ScrollAnimatorBase { |
| 47 public: | 46 public: |
| 48 explicit ScrollAnimator(ScrollableArea*, | 47 explicit ScrollAnimator(ScrollableArea*, |
| 49 WTF::TimeFunction = WTF::monotonicallyIncreasingTime); | 48 WTF::TimeFunction = WTF::monotonicallyIncreasingTime); |
| 50 ~ScrollAnimator() override; | 49 ~ScrollAnimator() override; |
| 51 | 50 |
| 52 bool hasRunningAnimation() const override; | 51 bool hasRunningAnimation() const override; |
| 53 ScrollOffset computeDeltaToConsume(const ScrollOffset& delta) const override; | 52 ScrollOffset computeDeltaToConsume(const ScrollOffset& delta) const override; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // because we are already at targetPos. | 100 // because we are already at targetPos. |
| 102 bool willAnimateToOffset(const ScrollOffset& targetPos); | 101 bool willAnimateToOffset(const ScrollOffset& targetPos); |
| 103 | 102 |
| 104 ScrollOffset m_targetOffset; | 103 ScrollOffset m_targetOffset; |
| 105 ScrollGranularity m_lastGranularity; | 104 ScrollGranularity m_lastGranularity; |
| 106 }; | 105 }; |
| 107 | 106 |
| 108 } // namespace blink | 107 } // namespace blink |
| 109 | 108 |
| 110 #endif // ScrollAnimator_h | 109 #endif // ScrollAnimator_h |
| OLD | NEW |