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

Side by Side Diff: third_party/WebKit/public/platform/WebCompositorAnimation.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 WebCompositorAnimation_h
6 #define WebCompositorAnimation_h
7
8 namespace blink {
9
10 // A compositor driven animation.
11 class WebCompositorAnimation {
12 public:
13 enum TargetProperty {
14 TargetPropertyTransform = 0,
15 TargetPropertyOpacity,
16 TargetPropertyFilter,
17 TargetPropertyScrollOffset
18 };
19
20 enum Direction {
21 DirectionNormal = 0,
22 DirectionReverse,
23 DirectionAlternate,
24 DirectionAlternateReverse
25 };
26
27 enum FillMode {
28 FillModeNone = 0,
29 FillModeForwards,
30 FillModeBackwards,
31 FillModeBoth
32 };
33
34 virtual ~WebCompositorAnimation() { }
35
36 // An id must be unique.
37 virtual int id() = 0;
38 virtual int group() = 0;
39
40 virtual TargetProperty targetProperty() const = 0;
41
42 // This is the number of times that the animation will play. If this
43 // value is zero the animation will not play. If it is negative, then
44 // the animation will loop indefinitely.
45 virtual double iterations() const = 0;
46 virtual void setIterations(double) = 0;
47
48 virtual double startTime() const = 0;
49 virtual void setStartTime(double monotonicTime) = 0;
50
51 virtual double timeOffset() const = 0;
52 virtual void setTimeOffset(double monotonicTime) = 0;
53
54 virtual Direction direction() const = 0;
55 virtual void setDirection(Direction) = 0;
56
57 virtual double playbackRate() const = 0;
58 virtual void setPlaybackRate(double) = 0;
59
60 virtual FillMode fillMode() const = 0;
61 virtual void setFillMode(FillMode) = 0;
62
63 virtual double iterationStart() const = 0;
64 virtual void setIterationStart(double) = 0;
65 };
66
67 } // namespace blink
68
69 #endif // WebCompositorAnimation_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/platform/WebCompositorAnimationCurve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698