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

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: Addressed review comments. 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
« no previous file with comments | « Source/core/svg/SVGAnimatedTransformList.idl ('k') | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatedTransformList.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698