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 #define WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS 1 | 8 #define WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS 1 |
jamesr
2014/09/16 19:06:47
can this one go too?
| |
9 #define WEB_ANIMATION_SUPPORTS_FULL_DIRECTION 1 | |
10 | 9 |
11 namespace blink { | 10 namespace blink { |
12 | 11 |
13 // A compositor driven animation. | 12 // A compositor driven animation. |
14 class WebCompositorAnimation { | 13 class WebCompositorAnimation { |
15 public: | 14 public: |
16 enum TargetProperty { | 15 enum TargetProperty { |
17 TargetPropertyTransform = 0, | 16 TargetPropertyTransform = 0, |
18 TargetPropertyOpacity, | 17 TargetPropertyOpacity, |
19 TargetPropertyFilter, | 18 TargetPropertyFilter, |
(...skipping 26 matching lines...) Expand all Loading... | |
46 virtual double timeOffset() const = 0; | 45 virtual double timeOffset() const = 0; |
47 virtual void setTimeOffset(double monotonicTime) = 0; | 46 virtual void setTimeOffset(double monotonicTime) = 0; |
48 | 47 |
49 virtual Direction direction() const = 0; | 48 virtual Direction direction() const = 0; |
50 virtual void setDirection(Direction) = 0; | 49 virtual void setDirection(Direction) = 0; |
51 }; | 50 }; |
52 | 51 |
53 } // namespace blink | 52 } // namespace blink |
54 | 53 |
55 #endif // WebCompositorAnimation_h | 54 #endif // WebCompositorAnimation_h |
OLD | NEW |