| 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 EffectInput_h | 5 #ifndef EffectInput_h |
| 6 #define EffectInput_h | 6 #define EffectInput_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/animation/EffectModel.h" | 9 #include "core/animation/EffectModel.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class EffectModel; | 15 class EffectModel; |
| 16 class EffectModelOrDictionarySequenceOrDictionary; | 16 class DictionarySequenceOrDictionary; |
| 17 class Dictionary; | 17 class Dictionary; |
| 18 class Element; | 18 class Element; |
| 19 class ExceptionState; | 19 class ExceptionState; |
| 20 class ExecutionContext; | 20 class ExecutionContext; |
| 21 | 21 |
| 22 class CORE_EXPORT EffectInput { | 22 class CORE_EXPORT EffectInput { |
| 23 STATIC_ONLY(EffectInput); | 23 STATIC_ONLY(EffectInput); |
| 24 public: | 24 public: |
| 25 // TODO(alancutter): Replace Element* parameter with Document&. | 25 // TODO(alancutter): Replace Element* parameter with Document&. |
| 26 static EffectModel* convert(Element*, const EffectModelOrDictionarySequenceO
rDictionary&, ExecutionContext*, ExceptionState&); | 26 static EffectModel* convert(Element*, const DictionarySequenceOrDictionary&,
ExecutionContext*, ExceptionState&); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 static EffectModel* convertArrayForm(Element&, const Vector<Dictionary>& key
frames, ExceptionState&); | 29 static EffectModel* convertArrayForm(Element&, const Vector<Dictionary>& key
frames, ExceptionState&); |
| 30 static EffectModel* convertObjectForm(Element&, const Dictionary& keyframe,
ExceptionState&); | 30 static EffectModel* convertObjectForm(Element&, const Dictionary& keyframe,
ExceptionState&); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace blink | 33 } // namespace blink |
| 34 | 34 |
| 35 #endif | 35 #endif |
| OLD | NEW |