Chromium Code Reviews| 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 EffectModelOrDictionarySequenceOrDictionary; |
| 17 class Dictionary; | 17 class Dictionary; |
| 18 class Element; | 18 class Element; |
| 19 class ExceptionState; | 19 class ExceptionState; |
| 20 class StringKeyframe; | |
| 20 | 21 |
| 21 class CORE_EXPORT EffectInput { | 22 class CORE_EXPORT EffectInput { |
| 22 STATIC_ONLY(EffectInput); | 23 STATIC_ONLY(EffectInput); |
| 23 public: | 24 public: |
| 24 // TODO(alancutter): Replace Element* parameter with Document&. | 25 // TODO(alancutter): Replace Element* parameter with Document&. |
| 25 static EffectModel* convert(Element*, const EffectModelOrDictionarySequenceO rDictionary&, ExceptionState&); | 26 static EffectModel* convert(Element*, const EffectModelOrDictionarySequenceO rDictionary&, ExceptionState&); |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 static EffectModel* convert(Element*, const Vector<Dictionary>& keyframeDict ionaryVector, ExceptionState&); | 29 static EffectModel* convert(Element*, const Vector<Dictionary>& keyframeDict ionaryVector, ExceptionState&); |
| 30 static EffectModel* convert(Element*, const Dictionary& keyframeDictionary, ExceptionState&); | |
| 31 | |
| 32 static bool setKeyframeValue(Element*, StringKeyframe*, const String& proper ty, const String& value); | |
|
alancutter (OOO until 2018)
2016/02/24 08:50:02
Add comment for what the return value means.
suzyh_UTC10 (ex-contributor)
2016/02/25 02:42:36
Done.
| |
| 33 static void updateElementStyleIfNeeded(Element*, bool encounteredCompositabl eProperty); | |
| 34 static EffectModel* createEffectModelFromKeyframes(Element*, const Vector<Re fPtr<StringKeyframe>>& keyframes, ExceptionState&); | |
| 29 }; | 35 }; |
| 30 | 36 |
| 31 } // namespace blink | 37 } // namespace blink |
| 32 | 38 |
| 33 #endif | 39 #endif |
| OLD | NEW |