OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef SVGAnimatedAngle_h | 31 #ifndef SVGAnimatedAngle_h |
32 #define SVGAnimatedAngle_h | 32 #define SVGAnimatedAngle_h |
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; | |
41 | |
42 class SVGAnimatedAngle final : public SVGAnimatedProperty<SVGAngle> { | 40 class SVGAnimatedAngle final : public SVGAnimatedProperty<SVGAngle> { |
43 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
44 public: | 42 public: |
45 static PassRefPtrWillBeRawPtr<SVGAnimatedAngle> create(SVGMarkerElement* con
textElement) | 43 static PassRefPtrWillBeRawPtr<SVGAnimatedAngle> create(SVGElement* contextEl
ement) |
46 { | 44 { |
47 return adoptRefWillBeNoop(new SVGAnimatedAngle(contextElement)); | 45 return adoptRefWillBeNoop(new SVGAnimatedAngle(contextElement)); |
48 } | 46 } |
49 | 47 |
50 ~SVGAnimatedAngle() override; | 48 ~SVGAnimatedAngle() override; |
51 | 49 |
52 SVGAnimatedEnumeration<SVGMarkerOrientType>* orientType() { return m_orientT
ype.get(); } | 50 SVGAnimatedEnumeration<SVGMarkerOrientType>* orientType() { return m_orientT
ype.get(); } |
53 | 51 |
54 // SVGAnimatedPropertyBase: | 52 // SVGAnimatedPropertyBase: |
55 | 53 bool needsSynchronizeAttribute() override; |
56 void synchronizeAttribute() override; | 54 void synchronizeAttribute() override; |
57 | 55 |
58 void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) override; | 56 void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) override; |
59 void animationEnded() override; | 57 void animationEnded() override; |
60 | 58 |
61 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
62 | 60 |
63 protected: | 61 protected: |
64 explicit SVGAnimatedAngle(SVGMarkerElement* contextElement); | 62 explicit SVGAnimatedAngle(SVGElement* contextElement); |
65 | 63 |
66 private: | 64 private: |
67 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGMarkerOrientType>> m_orientType
; | 65 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGMarkerOrientType>> m_orientType
; |
68 }; | 66 }; |
69 | 67 |
70 } // namespace blink | 68 } // namespace blink |
71 | 69 |
72 #endif // SVGAnimatedAngle_h | 70 #endif // SVGAnimatedAngle_h |
OLD | NEW |