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

Side by Side Diff: third_party/WebKit/Source/platform/animation/WebScrollOffsetAnimationCurve.h

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ScrollAnimatorCompositorCoordinator for MSVC. Created 4 years, 10 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698