| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #ifndef AnimationTranslationUtil_h | 31 #ifndef AnimationTranslationUtil_h |
| 32 #define AnimationTranslationUtil_h | 32 #define AnimationTranslationUtil_h |
| 33 | 33 |
| 34 #include "platform/graphics/filters/FilterOperations.h" | 34 #include "platform/graphics/filters/FilterOperations.h" |
| 35 #include "platform/transforms/TransformOperations.h" | 35 #include "platform/transforms/TransformOperations.h" |
| 36 #include "public/platform/WebTransformOperations.h" | 36 #include "public/platform/WebTransformOperations.h" |
| 37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 class WebAnimation; | 40 class WebAnimation; |
| 41 class WebFilterOperations; |
| 41 } | 42 } |
| 42 | 43 |
| 43 namespace WebCore { | 44 namespace WebCore { |
| 44 | 45 |
| 45 class KeyframeValueList; | 46 class KeyframeValueList; |
| 46 class CSSAnimationData; | 47 class CSSAnimationData; |
| 47 class FloatSize; | 48 class FloatSize; |
| 48 | 49 |
| 49 | 50 |
| 50 // Translates WebCore animation data into a WebAnimation. If we are unable | 51 // Translates WebCore animation data into a WebAnimation. If we are unable |
| 51 // to perform this translation, we return nullptr. This can happen if | 52 // to perform this translation, we return nullptr. This can happen if |
| 52 // - a steps timing function is used, | 53 // - a steps timing function is used, |
| 53 // - a property other than AnimatedPropertyWebkitTransform, or AnimatedPropert
yOpacity is animated, or | 54 // - a property other than AnimatedPropertyWebkitTransform, or AnimatedPropert
yOpacity is animated, or |
| 54 // - a transform animation involves a non-invertable transform. | 55 // - a transform animation involves a non-invertable transform. |
| 55 PassOwnPtr<blink::WebAnimation> createWebAnimation(const KeyframeValueList&, con
st CSSAnimationData*, int animationId, double timeOffset, const FloatSize& boxSi
ze); | 56 PassOwnPtr<blink::WebAnimation> createWebAnimation(const KeyframeValueList&, con
st CSSAnimationData*, int animationId, double timeOffset, const FloatSize& boxSi
ze); |
| 56 | 57 |
| 57 void toWebTransformOperations(const TransformOperations& inOperations, const Flo
atSize& boxSize, blink::WebTransformOperations* outOperations); | 58 void toWebTransformOperations(const TransformOperations& inOperations, const Flo
atSize& boxSize, blink::WebTransformOperations* outOperations); |
| 58 | 59 |
| 59 bool toWebFilterOperations(const FilterOperations& inOperations, blink::WebFilte
rOperations* outOperations); | 60 bool toWebFilterOperations(const FilterOperations& inOperations, blink::WebFilte
rOperations* outOperations); |
| 60 } // namespace WebCore | 61 } // namespace WebCore |
| 61 | 62 |
| 62 #endif // AnimationTranslationUtil_h | 63 #endif // AnimationTranslationUtil_h |
| OLD | NEW |