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 20 matching lines...) Expand all Loading... |
31 #ifndef SVGAnimatedEnumeration_h | 31 #ifndef SVGAnimatedEnumeration_h |
32 #define SVGAnimatedEnumeration_h | 32 #define SVGAnimatedEnumeration_h |
33 | 33 |
34 #include "core/svg/SVGAnimatedEnumerationBase.h" | 34 #include "core/svg/SVGAnimatedEnumerationBase.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 template<typename Enum> | 38 template<typename Enum> |
39 class SVGAnimatedEnumeration : public SVGAnimatedEnumerationBase { | 39 class SVGAnimatedEnumeration : public SVGAnimatedEnumerationBase { |
40 public: | 40 public: |
41 static PassRefPtr<SVGAnimatedEnumeration<Enum> > create(SVGElement* contextE
lement, const QualifiedName& attributeName, Enum initialValue) | 41 static PassRefPtrWillBeRawPtr<SVGAnimatedEnumeration<Enum> > create(SVGEleme
nt* contextElement, const QualifiedName& attributeName, Enum initialValue) |
42 { | 42 { |
43 return adoptRef(new SVGAnimatedEnumeration(contextElement, attributeName
, SVGEnumeration<Enum>::create(initialValue))); | 43 return adoptRefWillBeNoop(new SVGAnimatedEnumeration(contextElement, att
ributeName, SVGEnumeration<Enum>::create(initialValue))); |
44 } | 44 } |
45 | 45 |
46 static PassRefPtr<SVGAnimatedEnumeration<Enum> > create(SVGElement* contextE
lement, const QualifiedName& attributeName, PassRefPtr<SVGEnumeration<Enum> > in
itialValue) | 46 static PassRefPtrWillBeRawPtr<SVGAnimatedEnumeration<Enum> > create(SVGEleme
nt* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<S
VGEnumeration<Enum> > initialValue) |
47 { | 47 { |
48 return adoptRef(new SVGAnimatedEnumeration(contextElement, attributeName
, initialValue)); | 48 return adoptRefWillBeNoop(new SVGAnimatedEnumeration(contextElement, att
ributeName, initialValue)); |
49 } | 49 } |
50 | 50 |
51 SVGEnumeration<Enum>* baseValue() | 51 SVGEnumeration<Enum>* baseValue() |
52 { | 52 { |
53 return static_cast<SVGEnumeration<Enum>*>(SVGAnimatedEnumerationBase::ba
seValue()); | 53 return static_cast<SVGEnumeration<Enum>*>(SVGAnimatedEnumerationBase::ba
seValue()); |
54 } | 54 } |
55 | 55 |
56 SVGEnumeration<Enum>* currentValue() | 56 SVGEnumeration<Enum>* currentValue() |
57 { | 57 { |
58 return static_cast<SVGEnumeration<Enum>*>(SVGAnimatedEnumerationBase::cu
rrentValue()); | 58 return static_cast<SVGEnumeration<Enum>*>(SVGAnimatedEnumerationBase::cu
rrentValue()); |
59 } | 59 } |
60 | 60 |
61 const SVGEnumeration<Enum>* currentValue() const | 61 const SVGEnumeration<Enum>* currentValue() const |
62 { | 62 { |
63 return static_cast<const SVGEnumeration<Enum>*>(SVGAnimatedEnumerationBa
se::currentValue()); | 63 return static_cast<const SVGEnumeration<Enum>*>(SVGAnimatedEnumerationBa
se::currentValue()); |
64 } | 64 } |
65 | 65 |
66 protected: | 66 protected: |
67 SVGAnimatedEnumeration(SVGElement* contextElement, const QualifiedName& attr
ibuteName, PassRefPtr<SVGEnumeration<Enum> > initialValue) | 67 SVGAnimatedEnumeration(SVGElement* contextElement, const QualifiedName& attr
ibuteName, PassRefPtrWillBeRawPtr<SVGEnumeration<Enum> > initialValue) |
68 : SVGAnimatedEnumerationBase(contextElement, attributeName, initialValue
) | 68 : SVGAnimatedEnumerationBase(contextElement, attributeName, initialValue
) |
69 { | 69 { |
70 } | 70 } |
71 }; | 71 }; |
72 | 72 |
73 } // namespace blink | 73 } // namespace blink |
74 | 74 |
75 #endif // SVGAnimatedEnumeration_h | 75 #endif // SVGAnimatedEnumeration_h |
OLD | NEW |