Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ProgrammaticScrollAnimator.h

Issue 1587073011: Plumb NotifyAnimationAborted from the compositor to blink animation delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize aborted_ in unittest Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "platform/geometry/FloatPoint.h" 8 #include "platform/geometry/FloatPoint.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/scroll/ScrollAnimatorCompositorCoordinator.h" 10 #include "platform/scroll/ScrollAnimatorCompositorCoordinator.h"
(...skipping 21 matching lines...) Expand all
32 void scrollToOffsetWithoutAnimation(const FloatPoint&); 32 void scrollToOffsetWithoutAnimation(const FloatPoint&);
33 void animateToOffset(FloatPoint); 33 void animateToOffset(FloatPoint);
34 34
35 // ScrollAnimatorCompositorCoordinator implementation. 35 // ScrollAnimatorCompositorCoordinator implementation.
36 void resetAnimationState() override; 36 void resetAnimationState() override;
37 void cancelAnimation() override; 37 void cancelAnimation() override;
38 ScrollableArea* scrollableArea() const override { return m_scrollableArea; } 38 ScrollableArea* scrollableArea() const override { return m_scrollableArea; }
39 void tickAnimation(double monotonicTime) override; 39 void tickAnimation(double monotonicTime) override;
40 void updateCompositorAnimations() override; 40 void updateCompositorAnimations() override;
41 void notifyCompositorAnimationFinished(int groupId) override; 41 void notifyCompositorAnimationFinished(int groupId) override;
42 void notifyCompositorAnimationAborted(int groupId) override { };
42 void layerForCompositedScrollingDidChange(WebCompositorAnimationTimeline*) o verride; 43 void layerForCompositedScrollingDidChange(WebCompositorAnimationTimeline*) o verride;
43 44
44 DECLARE_TRACE(); 45 DECLARE_TRACE();
45 46
46 private: 47 private:
47 explicit ProgrammaticScrollAnimator(ScrollableArea*); 48 explicit ProgrammaticScrollAnimator(ScrollableArea*);
48 49
49 void notifyPositionChanged(const DoublePoint&); 50 void notifyPositionChanged(const DoublePoint&);
50 51
51 RawPtrWillBeMember<ScrollableArea> m_scrollableArea; 52 RawPtrWillBeMember<ScrollableArea> m_scrollableArea;
52 OwnPtr<WebScrollOffsetAnimationCurve> m_animationCurve; 53 OwnPtr<WebScrollOffsetAnimationCurve> m_animationCurve;
53 FloatPoint m_targetOffset; 54 FloatPoint m_targetOffset;
54 double m_startTime; 55 double m_startTime;
55 }; 56 };
56 57
57 } // namespace blink 58 } // namespace blink
58 59
59 #endif // ProgrammaticScrollAnimator_h 60 #endif // ProgrammaticScrollAnimator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698