OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. 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 |
(...skipping 22 matching lines...) Expand all Loading... |
33 DECLARE_ANIMATED_PROPERTY(SVGAnimatedNumber, float, UpperProperty, LowerProperty
) | 33 DECLARE_ANIMATED_PROPERTY(SVGAnimatedNumber, float, UpperProperty, LowerProperty
) |
34 | 34 |
35 #define DEFINE_ANIMATED_NUMBER(OwnerType, DOMAttribute, UpperProperty, LowerProp
erty) \ | 35 #define DEFINE_ANIMATED_NUMBER(OwnerType, DOMAttribute, UpperProperty, LowerProp
erty) \ |
36 DEFINE_ANIMATED_PROPERTY(AnimatedNumber, OwnerType, DOMAttribute, DOMAttribute.l
ocalName(), UpperProperty, LowerProperty, SVGAnimatedNumber, float) | 36 DEFINE_ANIMATED_PROPERTY(AnimatedNumber, OwnerType, DOMAttribute, DOMAttribute.l
ocalName(), UpperProperty, LowerProperty, SVGAnimatedNumber, float) |
37 | 37 |
38 #define DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(OwnerType, DOMAttribute, SVGDOM
AttributeIdentifier, UpperProperty, LowerProperty) \ | 38 #define DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(OwnerType, DOMAttribute, SVGDOM
AttributeIdentifier, UpperProperty, LowerProperty) \ |
39 DEFINE_ANIMATED_PROPERTY(AnimatedNumberOptionalNumber, OwnerType, DOMAttribute,
SVGDOMAttributeIdentifier, UpperProperty, LowerProperty, SVGAnimatedNumber, floa
t) | 39 DEFINE_ANIMATED_PROPERTY(AnimatedNumberOptionalNumber, OwnerType, DOMAttribute,
SVGDOMAttributeIdentifier, UpperProperty, LowerProperty, SVGAnimatedNumber, floa
t) |
40 | 40 |
41 class SVGAnimationElement; | 41 class SVGAnimationElement; |
42 | 42 |
43 class SVGAnimatedNumberAnimator : public SVGAnimatedTypeAnimator { | 43 class SVGAnimatedNumberAnimator FINAL : public SVGAnimatedTypeAnimator { |
44 public: | 44 public: |
45 SVGAnimatedNumberAnimator(SVGAnimationElement*, SVGElement*); | 45 SVGAnimatedNumberAnimator(SVGAnimationElement*, SVGElement*); |
46 virtual ~SVGAnimatedNumberAnimator() { } | 46 virtual ~SVGAnimatedNumberAnimator() { } |
47 | 47 |
48 virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&); | 48 virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&) OVERR
IDE; |
49 virtual PassOwnPtr<SVGAnimatedType> startAnimValAnimation(const SVGElementAn
imatedPropertyList&); | 49 virtual PassOwnPtr<SVGAnimatedType> startAnimValAnimation(const SVGElementAn
imatedPropertyList&) OVERRIDE; |
50 virtual void stopAnimValAnimation(const SVGElementAnimatedPropertyList&); | 50 virtual void stopAnimValAnimation(const SVGElementAnimatedPropertyList&) OVE
RRIDE; |
51 virtual void resetAnimValToBaseVal(const SVGElementAnimatedPropertyList&, SV
GAnimatedType*); | 51 virtual void resetAnimValToBaseVal(const SVGElementAnimatedPropertyList&, SV
GAnimatedType*) OVERRIDE; |
52 virtual void animValWillChange(const SVGElementAnimatedPropertyList&); | 52 virtual void animValWillChange(const SVGElementAnimatedPropertyList&) OVERRI
DE; |
53 virtual void animValDidChange(const SVGElementAnimatedPropertyList&); | 53 virtual void animValDidChange(const SVGElementAnimatedPropertyList&) OVERRID
E; |
54 | 54 |
55 virtual void addAnimatedTypes(SVGAnimatedType*, SVGAnimatedType*); | 55 virtual void addAnimatedTypes(SVGAnimatedType*, SVGAnimatedType*) OVERRIDE; |
56 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount,
SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*); | 56 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount,
SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*) OVERRIDE
; |
57 virtual float calculateDistance(const String& fromString, const String& toSt
ring); | 57 virtual float calculateDistance(const String& fromString, const String& toSt
ring) OVERRIDE; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace WebCore | 60 } // namespace WebCore |
61 | 61 |
62 #endif | 62 #endif |
OLD | NEW |