OLD | NEW |
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 WebCompositorAnimation_h | 5 #ifndef WebCompositorAnimation_h |
6 #define WebCompositorAnimation_h | 6 #define WebCompositorAnimation_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 // A compositor driven animation. | 10 // A compositor driven animation. |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 enum FillMode { | 27 enum FillMode { |
28 FillModeNone = 0, | 28 FillModeNone = 0, |
29 FillModeForwards, | 29 FillModeForwards, |
30 FillModeBackwards, | 30 FillModeBackwards, |
31 FillModeBoth | 31 FillModeBoth |
32 }; | 32 }; |
33 | 33 |
34 virtual ~WebCompositorAnimation() { } | 34 virtual ~WebCompositorAnimation() { } |
35 | 35 |
36 // An id is effectively the animation's name, and it is not unique. | 36 // An id must be unique. |
37 virtual int id() = 0; | 37 virtual int id() = 0; |
38 virtual int group() = 0; | 38 virtual int group() = 0; |
39 | 39 |
40 virtual TargetProperty targetProperty() const = 0; | 40 virtual TargetProperty targetProperty() const = 0; |
41 | 41 |
42 // This is the number of times that the animation will play. If this | 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 | 43 // value is zero the animation will not play. If it is negative, then |
44 // the animation will loop indefinitely. | 44 // the animation will loop indefinitely. |
45 virtual double iterations() const = 0; | 45 virtual double iterations() const = 0; |
46 virtual void setIterations(double) = 0; | 46 virtual void setIterations(double) = 0; |
(...skipping 13 matching lines...) Expand all Loading... |
60 virtual FillMode fillMode() const = 0; | 60 virtual FillMode fillMode() const = 0; |
61 virtual void setFillMode(FillMode) = 0; | 61 virtual void setFillMode(FillMode) = 0; |
62 | 62 |
63 virtual double iterationStart() const = 0; | 63 virtual double iterationStart() const = 0; |
64 virtual void setIterationStart(double) = 0; | 64 virtual void setIterationStart(double) = 0; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace blink | 67 } // namespace blink |
68 | 68 |
69 #endif // WebCompositorAnimation_h | 69 #endif // WebCompositorAnimation_h |
OLD | NEW |