| 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 KeyframeEffectOptions; | 16 class KeyframeEffectOptions; |
| 17 class UnrestrictedDoubleOrString; | 17 class UnrestrictedDoubleOrString; |
| 18 class UnrestrictedDoubleOrKeyframeEffectOptions; |
| 18 | 19 |
| 19 class CORE_EXPORT TimingInput { | 20 class CORE_EXPORT TimingInput { |
| 20 STATIC_ONLY(TimingInput); | 21 STATIC_ONLY(TimingInput); |
| 21 | 22 |
| 22 public: | 23 public: |
| 24 static bool Convert(const UnrestrictedDoubleOrKeyframeEffectOptions&, |
| 25 Timing& timing_output, |
| 26 Document*, |
| 27 ExceptionState&); |
| 23 static bool Convert(const KeyframeEffectOptions& timing_input, | 28 static bool Convert(const KeyframeEffectOptions& timing_input, |
| 24 Timing& timing_output, | 29 Timing& timing_output, |
| 25 Document*, | 30 Document*, |
| 26 ExceptionState&); | 31 ExceptionState&); |
| 27 static bool Convert(double duration, Timing& timing_output, ExceptionState&); | 32 static bool Convert(double duration, Timing& timing_output, ExceptionState&); |
| 28 | 33 |
| 29 static void SetStartDelay(Timing&, double start_delay); | 34 static void SetStartDelay(Timing&, double start_delay); |
| 30 static void SetEndDelay(Timing&, double end_delay); | 35 static void SetEndDelay(Timing&, double end_delay); |
| 31 static void SetFillMode(Timing&, const String& fill_mode); | 36 static void SetFillMode(Timing&, const String& fill_mode); |
| 32 static bool SetIterationStart(Timing&, | 37 static bool SetIterationStart(Timing&, |
| 33 double iteration_start, | 38 double iteration_start, |
| 34 ExceptionState&); | 39 ExceptionState&); |
| 35 static bool SetIterationCount(Timing&, | 40 static bool SetIterationCount(Timing&, |
| 36 double iteration_count, | 41 double iteration_count, |
| 37 ExceptionState&); | 42 ExceptionState&); |
| 38 static bool SetIterationDuration(Timing&, | 43 static bool SetIterationDuration(Timing&, |
| 39 const UnrestrictedDoubleOrString&, | 44 const UnrestrictedDoubleOrString&, |
| 40 ExceptionState&); | 45 ExceptionState&); |
| 41 static void SetPlaybackRate(Timing&, double playback_rate); | 46 static void SetPlaybackRate(Timing&, double playback_rate); |
| 42 static void SetPlaybackDirection(Timing&, const String& direction); | 47 static void SetPlaybackDirection(Timing&, const String& direction); |
| 43 static bool SetTimingFunction(Timing&, | 48 static bool SetTimingFunction(Timing&, |
| 44 const String& timing_function_string, | 49 const String& timing_function_string, |
| 45 Document*, | 50 Document*, |
| 46 ExceptionState&); | 51 ExceptionState&); |
| 47 }; | 52 }; |
| 48 | 53 |
| 49 } // namespace blink | 54 } // namespace blink |
| 50 | 55 |
| 51 #endif | 56 #endif |
| OLD | NEW |