OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 G* * Redistributions in binary form must reproduce the above | 10 G* * Redistributions in binary form must reproduce the above |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 class SVGElement; | 46 class SVGElement; |
47 | 47 |
48 class SVGAnimatedPropertyBase : public RefCounted<SVGAnimatedPropertyBase> { | 48 class SVGAnimatedPropertyBase : public RefCounted<SVGAnimatedPropertyBase> { |
49 public: | 49 public: |
50 virtual ~SVGAnimatedPropertyBase(); | 50 virtual ~SVGAnimatedPropertyBase(); |
51 | 51 |
52 virtual SVGPropertyBase* currentValueBase() = 0; | 52 virtual SVGPropertyBase* currentValueBase() = 0; |
53 virtual bool isAnimating() const = 0; | 53 virtual bool isAnimating() const = 0; |
54 | 54 |
55 virtual void animationStarted(); | |
56 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() = 0; | 55 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() = 0; |
57 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) = 0; | 56 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) = 0; |
58 virtual void animationEnded(); | 57 virtual void animationEnded(); |
59 | 58 |
60 virtual bool needsSynchronizeAttribute() = 0; | 59 virtual bool needsSynchronizeAttribute() = 0; |
61 virtual void synchronizeAttribute(); | 60 virtual void synchronizeAttribute(); |
62 | 61 |
63 AnimatedPropertyType type() const | 62 AnimatedPropertyType type() const |
64 { | 63 { |
65 return m_type; | 64 return m_type; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // When animated: | 300 // When animated: |
302 // m_animValTearOff targets m_currentValue. | 301 // m_animValTearOff targets m_currentValue. |
303 // m_baseValTearOff targets m_baseValue. | 302 // m_baseValTearOff targets m_baseValue. |
304 RefPtr<TearOffType> m_baseValTearOff; | 303 RefPtr<TearOffType> m_baseValTearOff; |
305 RefPtr<TearOffType> m_animValTearOff; | 304 RefPtr<TearOffType> m_animValTearOff; |
306 }; | 305 }; |
307 | 306 |
308 } | 307 } |
309 | 308 |
310 #endif // SVGAnimatedProperty_h | 309 #endif // SVGAnimatedProperty_h |
OLD | NEW |