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

Side by Side Diff: Source/core/svg/properties/SVGAnimatedProperty.h

Issue 720113003: bindings: Makes SVGAnimatedProperty ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« Source/core/svg/SVGAnimatedTransformList.h ('K') | « Source/core/svg/SVGAnimatedTransformList.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698