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..470995fd64977b8e8f242f334ebfa1c09d61510c 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 usedScrollDelta(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 |