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

Side by Side Diff: Source/core/svg/SVGAnimatedAngle.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/bindings/core/v8/ScriptWrappable.h ('k') | Source/core/svg/SVGAnimatedAngle.idl » ('j') | 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 33
34 #include "core/svg/SVGAngleTearOff.h" 34 #include "core/svg/SVGAngleTearOff.h"
35 #include "core/svg/SVGAnimatedEnumeration.h" 35 #include "core/svg/SVGAnimatedEnumeration.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class SVGMarkerElement; 40 class SVGMarkerElement;
41 41
42 class SVGAnimatedAngle final : public SVGAnimatedProperty<SVGAngle> { 42 class SVGAnimatedAngle final : public SVGAnimatedProperty<SVGAngle> {
43 DEFINE_WRAPPERTYPEINFO();
43 public: 44 public:
44 static PassRefPtrWillBeRawPtr<SVGAnimatedAngle> create(SVGMarkerElement* con textElement) 45 static PassRefPtrWillBeRawPtr<SVGAnimatedAngle> create(SVGMarkerElement* con textElement)
45 { 46 {
46 return adoptRefWillBeNoop(new SVGAnimatedAngle(contextElement)); 47 return adoptRefWillBeNoop(new SVGAnimatedAngle(contextElement));
47 } 48 }
48 49
49 virtual ~SVGAnimatedAngle(); 50 virtual ~SVGAnimatedAngle();
50 51
51 SVGAnimatedEnumeration<SVGMarkerOrientType>* orientType() { return m_orientT ype.get(); } 52 SVGAnimatedEnumeration<SVGMarkerOrientType>* orientType() { return m_orientT ype.get(); }
52 53
53 // SVGAnimatedPropertyBase: 54 // SVGAnimatedPropertyBase:
54 55
55 virtual void synchronizeAttribute() override; 56 virtual void synchronizeAttribute() override;
56 57
57 virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) overr ide; 58 virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) overr ide;
58 virtual void animationEnded() override; 59 virtual void animationEnded() override;
59 60
60 virtual void trace(Visitor*) override; 61 virtual void trace(Visitor*) override;
61 62
62 protected: 63 protected:
63 explicit SVGAnimatedAngle(SVGMarkerElement* contextElement); 64 explicit SVGAnimatedAngle(SVGMarkerElement* contextElement);
64 65
65 private: 66 private:
66 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGMarkerOrientType> > m_orientTyp e; 67 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGMarkerOrientType> > m_orientTyp e;
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif // SVGAnimatedAngle_h 72 #endif // SVGAnimatedAngle_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptWrappable.h ('k') | Source/core/svg/SVGAnimatedAngle.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698