| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011, 2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011, 2012. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #ifndef SVGAnimatorFactory_h | 20 #ifndef SVGAnimatorFactory_h |
| 21 #define SVGAnimatorFactory_h | 21 #define SVGAnimatorFactory_h |
| 22 | 22 |
| 23 #include "core/svg/SVGAnimatedAngle.h" | 23 #include "core/svg/SVGAnimatedAngle.h" |
| 24 #include "core/svg/SVGAnimatedBoolean.h" | |
| 25 #include "core/svg/SVGAnimatedColor.h" | 24 #include "core/svg/SVGAnimatedColor.h" |
| 26 #include "core/svg/SVGAnimatedEnumeration.h" | 25 #include "core/svg/SVGAnimatedEnumeration.h" |
| 27 #include "core/svg/SVGAnimatedInteger.h" | 26 #include "core/svg/SVGAnimatedInteger.h" |
| 28 #include "core/svg/SVGAnimatedIntegerOptionalInteger.h" | 27 #include "core/svg/SVGAnimatedIntegerOptionalInteger.h" |
| 29 #include "core/svg/SVGAnimatedLength.h" | |
| 30 #include "core/svg/SVGAnimatedLengthList.h" | |
| 31 #include "core/svg/SVGAnimatedNewPropertyAnimator.h" | 28 #include "core/svg/SVGAnimatedNewPropertyAnimator.h" |
| 32 #include "core/svg/SVGAnimatedNumber.h" | 29 #include "core/svg/SVGAnimatedNumber.h" |
| 33 #include "core/svg/SVGAnimatedNumberList.h" | 30 #include "core/svg/SVGAnimatedNumberList.h" |
| 34 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" | 31 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" |
| 35 #include "core/svg/SVGAnimatedPath.h" | 32 #include "core/svg/SVGAnimatedPath.h" |
| 36 #include "core/svg/SVGAnimatedPointList.h" | |
| 37 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" | 33 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" |
| 38 #include "core/svg/SVGAnimatedRect.h" | 34 #include "core/svg/SVGAnimatedRect.h" |
| 39 #include "core/svg/SVGAnimatedString.h" | 35 #include "core/svg/SVGAnimatedString.h" |
| 40 #include "core/svg/SVGAnimatedTransformList.h" | 36 #include "core/svg/SVGAnimatedTransformList.h" |
| 41 | 37 |
| 42 namespace WebCore { | 38 namespace WebCore { |
| 43 | 39 |
| 44 class SVGAnimationElement; | 40 class SVGAnimationElement; |
| 45 | 41 |
| 46 class SVGAnimatorFactory { | 42 class SVGAnimatorFactory { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 case AnimatedIntegerOptionalInteger: | 58 case AnimatedIntegerOptionalInteger: |
| 63 return adoptPtr(new SVGAnimatedIntegerOptionalIntegerAnimator(animat
ionElement, contextElement)); | 59 return adoptPtr(new SVGAnimatedIntegerOptionalIntegerAnimator(animat
ionElement, contextElement)); |
| 64 case AnimatedNumber: | 60 case AnimatedNumber: |
| 65 return adoptPtr(new SVGAnimatedNumberAnimator(animationElement, cont
extElement)); | 61 return adoptPtr(new SVGAnimatedNumberAnimator(animationElement, cont
extElement)); |
| 66 case AnimatedNumberList: | 62 case AnimatedNumberList: |
| 67 return adoptPtr(new SVGAnimatedNumberListAnimator(animationElement,
contextElement)); | 63 return adoptPtr(new SVGAnimatedNumberListAnimator(animationElement,
contextElement)); |
| 68 case AnimatedNumberOptionalNumber: | 64 case AnimatedNumberOptionalNumber: |
| 69 return adoptPtr(new SVGAnimatedNumberOptionalNumberAnimator(animatio
nElement, contextElement)); | 65 return adoptPtr(new SVGAnimatedNumberOptionalNumberAnimator(animatio
nElement, contextElement)); |
| 70 case AnimatedPath: | 66 case AnimatedPath: |
| 71 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex
tElement)); | 67 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex
tElement)); |
| 72 case AnimatedPoints: | |
| 73 return adoptPtr(new SVGAnimatedPointListAnimator(animationElement, c
ontextElement)); | |
| 74 case AnimatedPreserveAspectRatio: | 68 case AnimatedPreserveAspectRatio: |
| 75 return adoptPtr(new SVGAnimatedPreserveAspectRatioAnimator(animation
Element, contextElement)); | 69 return adoptPtr(new SVGAnimatedPreserveAspectRatioAnimator(animation
Element, contextElement)); |
| 76 case AnimatedString: | 70 case AnimatedString: |
| 77 return adoptPtr(new SVGAnimatedStringAnimator(animationElement, cont
extElement)); | 71 return adoptPtr(new SVGAnimatedStringAnimator(animationElement, cont
extElement)); |
| 78 case AnimatedTransformList: | 72 case AnimatedTransformList: |
| 79 return adoptPtr(new SVGAnimatedTransformListAnimator(animationElemen
t, contextElement)); | 73 return adoptPtr(new SVGAnimatedTransformListAnimator(animationElemen
t, contextElement)); |
| 80 // Below properties have migrated to new property implementation. | 74 // Below properties have migrated to new property implementation. |
| 81 case AnimatedBoolean: | 75 case AnimatedBoolean: |
| 82 case AnimatedLength: | 76 case AnimatedLength: |
| 83 case AnimatedLengthList: | 77 case AnimatedLengthList: |
| 84 case AnimatedRect: | 78 case AnimatedRect: |
| 79 case AnimatedPoints: |
| 85 return adoptPtr(new SVGAnimatedNewPropertyAnimator(attributeType, an
imationElement, contextElement)); | 80 return adoptPtr(new SVGAnimatedNewPropertyAnimator(attributeType, an
imationElement, contextElement)); |
| 81 |
| 82 // SVGAnimatedPoint does not exist. |
| 83 case AnimatedPoint: |
| 84 ASSERT_NOT_REACHED(); |
| 85 |
| 86 case AnimatedUnknown: | 86 case AnimatedUnknown: |
| 87 break; | 87 break; |
| 88 } | 88 } |
| 89 | 89 |
| 90 ASSERT_NOT_REACHED(); | 90 ASSERT_NOT_REACHED(); |
| 91 return nullptr; | 91 return nullptr; |
| 92 } | 92 } |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 SVGAnimatorFactory() { } | 95 SVGAnimatorFactory() { } |
| 96 | 96 |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace WebCore | 99 } // namespace WebCore |
| 100 | 100 |
| 101 #endif // SVGAnimatorFactory_h | 101 #endif // SVGAnimatorFactory_h |
| OLD | NEW |