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 27 matching lines...) Expand all Loading... |
38 #include "core/svg/properties/SVGPropertyInfo.h" | 38 #include "core/svg/properties/SVGPropertyInfo.h" |
39 #include "core/svg/properties/SVGPropertyTearOff.h" | 39 #include "core/svg/properties/SVGPropertyTearOff.h" |
40 #include "wtf/Noncopyable.h" | 40 #include "wtf/Noncopyable.h" |
41 #include "wtf/PassRefPtr.h" | 41 #include "wtf/PassRefPtr.h" |
42 #include "wtf/RefCounted.h" | 42 #include "wtf/RefCounted.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 class SVGElement; | 46 class SVGElement; |
47 | 47 |
48 class SVGAnimatedPropertyBase : public RefCounted<SVGAnimatedPropertyBase>, publ
ic ScriptWrappableBase { | 48 class SVGAnimatedPropertyBase : public RefCounted<SVGAnimatedPropertyBase>, publ
ic ScriptWrappable { |
| 49 DEFINE_WRAPPERTYPEINFO_NOT_REACHED(); |
49 public: | 50 public: |
50 virtual ~SVGAnimatedPropertyBase(); | 51 virtual ~SVGAnimatedPropertyBase(); |
51 | 52 |
52 virtual SVGPropertyBase* currentValueBase() = 0; | 53 virtual SVGPropertyBase* currentValueBase() = 0; |
53 virtual bool isAnimating() const = 0; | 54 virtual bool isAnimating() const = 0; |
54 | 55 |
55 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() = 0; | 56 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() = 0; |
56 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) = 0; | 57 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) = 0; |
57 virtual void animationEnded(); | 58 virtual void animationEnded(); |
58 | 59 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 299 |
299 // When still (not animated): | 300 // When still (not animated): |
300 // Both m_animValTearOff and m_baseValTearOff target m_baseValue. | 301 // Both m_animValTearOff and m_baseValTearOff target m_baseValue. |
301 // When animated: | 302 // When animated: |
302 // m_animValTearOff targets m_currentValue. | 303 // m_animValTearOff targets m_currentValue. |
303 // m_baseValTearOff targets m_baseValue. | 304 // m_baseValTearOff targets m_baseValue. |
304 RefPtr<TearOffType> m_baseValTearOff; | 305 RefPtr<TearOffType> m_baseValTearOff; |
305 RefPtr<TearOffType> m_animValTearOff; | 306 RefPtr<TearOffType> m_animValTearOff; |
306 }; | 307 }; |
307 | 308 |
308 } | 309 } // namespace blink |
309 | 310 |
310 #endif // SVGAnimatedProperty_h | 311 #endif // SVGAnimatedProperty_h |
OLD | NEW |