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

Side by Side Diff: third_party/WebKit/public/platform/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: Rebase. Fix copyrights and years. 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 "WebCompositorAnimationCurve.h"
9 #include "WebFloatPoint.h"
10
11 namespace blink {
12
13 class WebScrollOffsetAnimationCurve : public WebCompositorAnimationCurve {
14 public:
15 virtual ~WebScrollOffsetAnimationCurve() { }
16
17 enum ScrollDurationBehavior {
18 ScrollDurationDeltaBased = 0,
19 ScrollDurationConstant,
20 ScrollDurationInverseDelta
21 };
22
23 virtual void setInitialValue(WebFloatPoint) = 0;
24 virtual WebFloatPoint getValue(double time) const = 0;
25 virtual double duration() const = 0;
26 virtual WebFloatPoint targetValue() const = 0;
27 virtual void updateTarget(double time, WebFloatPoint newTarget) = 0;
28 };
29
30 } // namespace blink
31
32 #endif // WebScrollOffsetAnimationCurve_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebLayerTreeView.h ('k') | third_party/WebKit/public/platform/WebTransformAnimationCurve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698