OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WebScrollOffsetAnimationCurve_h | |
6 #define WebScrollOffsetAnimationCurve_h | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "platform/PlatformExport.h" | |
10 #include "platform/animation/WebCompositorAnimationCurve.h" | |
11 #include "public/platform/WebFloatPoint.h" | |
12 | |
13 namespace cc { | |
14 class AnimationCurve; | |
15 class ScrollOffsetAnimationCurve; | |
16 } | |
17 | |
18 namespace blink { | |
19 | |
20 class PLATFORM_EXPORT WebScrollOffsetAnimationCurve : public WebCompositorAnimat ionCurve { | |
21 public: | |
22 enum ScrollDurationBehavior { | |
23 ScrollDurationDeltaBased = 0, | |
24 ScrollDurationConstant, | |
25 ScrollDurationInverseDelta | |
26 }; | |
27 | |
28 WebScrollOffsetAnimationCurve(blink::WebFloatPoint, TimingFunctionType, Scro llDurationBehavior); | |
esprehn
2016/01/28 03:40:40
no need to put blink:: on stuff in here
loyso (OOO)
2016/01/28 07:10:09
Done.
| |
29 ~WebScrollOffsetAnimationCurve() override; | |
30 | |
31 // WebCompositorAnimationCurve implementation. | |
32 AnimationCurveType type() const override; | |
33 | |
34 virtual void setInitialValue(WebFloatPoint); | |
35 virtual WebFloatPoint getValue(double time) const; | |
36 virtual double duration() const; | |
37 virtual WebFloatPoint targetValue() const; | |
38 virtual void updateTarget(double time, WebFloatPoint newTarget); | |
39 | |
40 scoped_ptr<cc::AnimationCurve> CloneToAnimationCurve() const; | |
41 | |
42 private: | |
43 scoped_ptr<cc::ScrollOffsetAnimationCurve> m_curve; | |
44 }; | |
45 | |
46 } // namespace blink | |
47 | |
48 #endif // WebScrollOffsetAnimationCurve_h | |
OLD | NEW |