Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: Source/WebCore/svg/SVGAnimatedTypeAnimator.h

Issue 9568017: Merge 108134 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/svg/SVGAnimateElement.cpp ('k') | Source/WebCore/svg/animation/SVGSMILElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011. 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 23 matching lines...) Expand all
34 virtual ~SVGAnimatedTypeAnimator() { } 34 virtual ~SVGAnimatedTypeAnimator() { }
35 virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&) = 0; 35 virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&) = 0;
36 36
37 virtual void calculateFromAndToValues(OwnPtr<SVGAnimatedType>& fromValue, Ow nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString ) = 0; 37 virtual void calculateFromAndToValues(OwnPtr<SVGAnimatedType>& fromValue, Ow nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString ) = 0;
38 virtual void calculateFromAndByValues(OwnPtr<SVGAnimatedType>& fromValue, Ow nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString ) = 0; 38 virtual void calculateFromAndByValues(OwnPtr<SVGAnimatedType>& fromValue, Ow nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString ) = 0;
39 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, 39 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount,
40 OwnPtr<SVGAnimatedType>& fromValue, OwnP tr<SVGAnimatedType>& toValue, OwnPtr<SVGAnimatedType>& animatedValue) = 0; 40 OwnPtr<SVGAnimatedType>& fromValue, OwnP tr<SVGAnimatedType>& toValue, OwnPtr<SVGAnimatedType>& animatedValue) = 0;
41 virtual float calculateDistance(const String& fromString, const String& toSt ring) = 0; 41 virtual float calculateDistance(const String& fromString, const String& toSt ring) = 0;
42 42
43 void setContextElement(SVGElement* contextElement) { m_contextElement = cont extElement; } 43 void setContextElement(SVGElement* contextElement) { m_contextElement = cont extElement; }
44 44
45 AnimatedPropertyType type() const { return m_type; }
46
45 protected: 47 protected:
46 SVGAnimatedTypeAnimator(AnimatedPropertyType type, SVGAnimationElement* anim ationElement, SVGElement* contextElement) 48 SVGAnimatedTypeAnimator(AnimatedPropertyType type, SVGAnimationElement* anim ationElement, SVGElement* contextElement)
47 : m_type(type) 49 : m_type(type)
48 , m_animationElement(animationElement) 50 , m_animationElement(animationElement)
49 , m_contextElement(contextElement) 51 , m_contextElement(contextElement)
50 { 52 {
51 } 53 }
52 54
53 AnimatedPropertyType m_type; 55 AnimatedPropertyType m_type;
54 SVGAnimationElement* m_animationElement; 56 SVGAnimationElement* m_animationElement;
55 SVGElement* m_contextElement; 57 SVGElement* m_contextElement;
56 }; 58 };
57 59
58 } // namespace WebCore 60 } // namespace WebCore
59 61
60 #endif // ENABLE(SVG) 62 #endif // ENABLE(SVG)
61 #endif // SVGAnimatedTypeAnimator_h 63 #endif // SVGAnimatedTypeAnimator_h
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGAnimateElement.cpp ('k') | Source/WebCore/svg/animation/SVGSMILElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698