| Index: third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
|
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
|
| index 0a5618317dc214bb05a9b32feac2fa34f181e0a5..d28157adace3e6c347d7a8b0dff7d06cf8d0510a 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
|
| @@ -72,6 +72,10 @@ public:
|
| void setCurrentPosition(const FloatPoint&);
|
| FloatPoint currentPosition() const;
|
|
|
| + // Returns how much of pixelDelta will be used by the underlying scrollable
|
| + // area.
|
| + virtual float computeDeltaToConsume(ScrollbarOrientation, float pixelDelta) const;
|
| +
|
| virtual void cancelAnimations() { }
|
| virtual void serviceScrollAnimations() { }
|
| virtual bool hasRunningAnimation() const { return false; }
|
| @@ -109,12 +113,11 @@ protected:
|
|
|
| virtual void notifyPositionChanged();
|
|
|
| + float clampScrollPosition(ScrollbarOrientation, float) const;
|
| +
|
| RawPtrWillBeMember<ScrollableArea> m_scrollableArea;
|
| float m_currentPosX; // We avoid using a FloatPoint in order to reduce
|
| float m_currentPosY; // subclass code complexity.
|
| -
|
| -private:
|
| - float clampScrollPosition(ScrollbarOrientation, float);
|
| };
|
|
|
| } // namespace blink
|
|
|