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 28 matching lines...) Expand all Loading... |
39 #include "core/svg/properties/SVGPropertyTearOff.h" | 39 #include "core/svg/properties/SVGPropertyTearOff.h" |
40 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
41 #include "wtf/Noncopyable.h" | 41 #include "wtf/Noncopyable.h" |
42 #include "wtf/PassRefPtr.h" | 42 #include "wtf/PassRefPtr.h" |
43 #include "wtf/RefCounted.h" | 43 #include "wtf/RefCounted.h" |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 class SVGElement; | 47 class SVGElement; |
48 | 48 |
49 class SVGAnimatedPropertyBase : public RefCountedWillBeGarbageCollectedFinalized
<SVGAnimatedPropertyBase>, public ScriptWrappableBase { | 49 class SVGAnimatedPropertyBase : public RefCountedWillBeGarbageCollectedFinalized
<SVGAnimatedPropertyBase>, public ScriptWrappable { |
| 50 DEFINE_WRAPPERTYPEINFO_NOT_REACHED(); |
50 WTF_MAKE_NONCOPYABLE(SVGAnimatedPropertyBase); | 51 WTF_MAKE_NONCOPYABLE(SVGAnimatedPropertyBase); |
51 public: | 52 public: |
52 virtual ~SVGAnimatedPropertyBase(); | 53 virtual ~SVGAnimatedPropertyBase(); |
53 | 54 |
54 virtual SVGPropertyBase* currentValueBase() = 0; | 55 virtual SVGPropertyBase* currentValueBase() = 0; |
55 virtual bool isAnimating() const = 0; | 56 virtual bool isAnimating() const = 0; |
56 | 57 |
57 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> createAnimatedValue() = 0; | 58 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> createAnimatedValue() = 0; |
58 virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) = 0; | 59 virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) = 0; |
59 virtual void animationEnded(); | 60 virtual void animationEnded(); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 // When animated: | 321 // When animated: |
321 // m_animValTearOff targets m_currentValue. | 322 // m_animValTearOff targets m_currentValue. |
322 // m_baseValTearOff targets m_baseValue. | 323 // m_baseValTearOff targets m_baseValue. |
323 RefPtrWillBeMember<TearOffType> m_baseValTearOff; | 324 RefPtrWillBeMember<TearOffType> m_baseValTearOff; |
324 RefPtrWillBeMember<TearOffType> m_animValTearOff; | 325 RefPtrWillBeMember<TearOffType> m_animValTearOff; |
325 }; | 326 }; |
326 | 327 |
327 } // namespace blink | 328 } // namespace blink |
328 | 329 |
329 #endif // SVGAnimatedProperty_h | 330 #endif // SVGAnimatedProperty_h |
OLD | NEW |