summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h')
-rw-r--r--third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
index 3503b7f..5926f86 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
@@ -35,6 +35,7 @@
#include "platform/PlatformWheelEvent.h"
#include "platform/geometry/FloatSize.h"
#include "platform/heap/Handle.h"
+#include "platform/scroll/ScrollAnimatorCompositorCoordinator.h"
#include "platform/scroll/ScrollTypes.h"
#include "wtf/Forward.h"
@@ -43,8 +44,9 @@ namespace blink {
class FloatPoint;
class ScrollableArea;
class Scrollbar;
+class WebCompositorAnimationTimeline;
-class PLATFORM_EXPORT ScrollAnimatorBase : public NoBaseWillBeGarbageCollectedFinalized<ScrollAnimatorBase> {
+class PLATFORM_EXPORT ScrollAnimatorBase : public ScrollAnimatorCompositorCoordinator {
public:
static PassOwnPtrWillBeRawPtr<ScrollAnimatorBase> create(ScrollableArea*);
@@ -61,8 +63,6 @@ public:
virtual void scrollToOffsetWithoutAnimation(const FloatPoint&);
- ScrollableArea* scrollableArea() const { return m_scrollableArea; }
-
virtual void setIsActive() { }
#if OS(MACOSX)
@@ -76,9 +76,14 @@ public:
// area.
virtual float computeDeltaToConsume(ScrollbarOrientation, float pixelDelta) const;
- virtual void cancelAnimations() { }
- virtual void serviceScrollAnimations() { }
- virtual bool hasRunningAnimation() const { return false; }
+
+ // ScrollAnimatorCompositorCoordinator implementation.
+ ScrollableArea* scrollableArea() const override { return m_scrollableArea; }
+ void tickAnimation(double monotonicTime) override { };
+ void cancelAnimation() override { }
+ void updateCompositorAnimations() override { };
+ void notifyCompositorAnimationFinished(int groupId) override { };
+ void layerForCompositedScrollingDidChange(WebCompositorAnimationTimeline*) override { };
virtual void contentAreaWillPaint() const { }
virtual void mouseEnteredContentArea() const { }