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 TimingInput_h | 5 #ifndef TimingInput_h |
6 #define TimingInput_h | 6 #define TimingInput_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/Timing.h" | 9 #include "core/animation/Timing.h" |
10 #include "platform/wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class Document; | 14 class Document; |
15 class ExceptionState; | 15 class ExceptionState; |
| 16 class KeyframeAnimationOptions; |
16 class KeyframeEffectOptions; | 17 class KeyframeEffectOptions; |
17 class UnrestrictedDoubleOrString; | 18 class UnrestrictedDoubleOrString; |
| 19 class UnrestrictedDoubleOrKeyframeAnimationOptions; |
18 class UnrestrictedDoubleOrKeyframeEffectOptions; | 20 class UnrestrictedDoubleOrKeyframeEffectOptions; |
19 | 21 |
20 class CORE_EXPORT TimingInput { | 22 class CORE_EXPORT TimingInput { |
21 STATIC_ONLY(TimingInput); | 23 STATIC_ONLY(TimingInput); |
22 | 24 |
23 public: | 25 public: |
24 static bool Convert(const UnrestrictedDoubleOrKeyframeEffectOptions&, | 26 static bool Convert(const UnrestrictedDoubleOrKeyframeEffectOptions&, |
25 Timing& timing_output, | 27 Timing& timing_output, |
26 Document*, | 28 Document*, |
27 ExceptionState&); | 29 ExceptionState&); |
| 30 static bool Convert(const UnrestrictedDoubleOrKeyframeAnimationOptions&, |
| 31 Timing& timing_output, |
| 32 Document*, |
| 33 ExceptionState&); |
28 static bool Convert(const KeyframeEffectOptions& timing_input, | 34 static bool Convert(const KeyframeEffectOptions& timing_input, |
29 Timing& timing_output, | 35 Timing& timing_output, |
30 Document*, | 36 Document*, |
31 ExceptionState&); | 37 ExceptionState&); |
| 38 static bool Convert(const KeyframeAnimationOptions& timing_input, |
| 39 Timing& timing_output, |
| 40 Document*, |
| 41 ExceptionState&); |
| 42 |
32 static bool Convert(double duration, Timing& timing_output, ExceptionState&); | 43 static bool Convert(double duration, Timing& timing_output, ExceptionState&); |
33 | 44 |
34 static void SetStartDelay(Timing&, double start_delay); | 45 static void SetStartDelay(Timing&, double start_delay); |
35 static void SetEndDelay(Timing&, double end_delay); | 46 static void SetEndDelay(Timing&, double end_delay); |
36 static void SetFillMode(Timing&, const String& fill_mode); | 47 static void SetFillMode(Timing&, const String& fill_mode); |
37 static bool SetIterationStart(Timing&, | 48 static bool SetIterationStart(Timing&, |
38 double iteration_start, | 49 double iteration_start, |
39 ExceptionState&); | 50 ExceptionState&); |
40 static bool SetIterationCount(Timing&, | 51 static bool SetIterationCount(Timing&, |
41 double iteration_count, | 52 double iteration_count, |
42 ExceptionState&); | 53 ExceptionState&); |
43 static bool SetIterationDuration(Timing&, | 54 static bool SetIterationDuration(Timing&, |
44 const UnrestrictedDoubleOrString&, | 55 const UnrestrictedDoubleOrString&, |
45 ExceptionState&); | 56 ExceptionState&); |
46 static void SetPlaybackRate(Timing&, double playback_rate); | 57 static void SetPlaybackRate(Timing&, double playback_rate); |
47 static void SetPlaybackDirection(Timing&, const String& direction); | 58 static void SetPlaybackDirection(Timing&, const String& direction); |
48 static bool SetTimingFunction(Timing&, | 59 static bool SetTimingFunction(Timing&, |
49 const String& timing_function_string, | 60 const String& timing_function_string, |
50 Document*, | 61 Document*, |
51 ExceptionState&); | 62 ExceptionState&); |
52 }; | 63 }; |
53 | 64 |
54 } // namespace blink | 65 } // namespace blink |
55 | 66 |
56 #endif | 67 #endif |
OLD | NEW |