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 21 matching lines...) Expand all Loading... |
32 #define SVGTransformList_h | 32 #define SVGTransformList_h |
33 | 33 |
34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
35 #include "core/svg/SVGTransform.h" | 35 #include "core/svg/SVGTransform.h" |
36 #include "core/svg/properties/SVGListPropertyHelper.h" | 36 #include "core/svg/properties/SVGListPropertyHelper.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class SVGTransformListTearOff; | 40 class SVGTransformListTearOff; |
41 | 41 |
42 class SVGTransformList FINAL : public SVGListPropertyHelper<SVGTransformList, SV
GTransform> { | 42 class SVGTransformList final : public SVGListPropertyHelper<SVGTransformList, SV
GTransform> { |
43 public: | 43 public: |
44 typedef SVGTransformListTearOff TearOffType; | 44 typedef SVGTransformListTearOff TearOffType; |
45 | 45 |
46 static PassRefPtr<SVGTransformList> create() | 46 static PassRefPtr<SVGTransformList> create() |
47 { | 47 { |
48 return adoptRef(new SVGTransformList()); | 48 return adoptRef(new SVGTransformList()); |
49 } | 49 } |
50 | 50 |
51 static PassRefPtr<SVGTransformList> create(SVGTransformType, const String&); | 51 static PassRefPtr<SVGTransformList> create(SVGTransformType, const String&); |
52 | 52 |
53 virtual ~SVGTransformList(); | 53 virtual ~SVGTransformList(); |
54 | 54 |
55 PassRefPtr<SVGTransform> consolidate(); | 55 PassRefPtr<SVGTransform> consolidate(); |
56 | 56 |
57 bool concatenate(AffineTransform& result) const; | 57 bool concatenate(AffineTransform& result) const; |
58 | 58 |
59 // SVGPropertyBase: | 59 // SVGPropertyBase: |
60 virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String&) const O
VERRIDE; | 60 virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String&) const o
verride; |
61 virtual String valueAsString() const OVERRIDE; | 61 virtual String valueAsString() const override; |
62 void setValueAsString(const String&, ExceptionState&); | 62 void setValueAsString(const String&, ExceptionState&); |
63 bool parse(const UChar*& ptr, const UChar* end); | 63 bool parse(const UChar*& ptr, const UChar* end); |
64 bool parse(const LChar*& ptr, const LChar* end); | 64 bool parse(const LChar*& ptr, const LChar* end); |
65 | 65 |
66 virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) OVERR
IDE; | 66 virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) overr
ide; |
67 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage,
unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPrope
rtyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement
*) OVERRIDE; | 67 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage,
unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPrope
rtyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement
*) override; |
68 virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*)
OVERRIDE; | 68 virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*)
override; |
69 | 69 |
70 static AnimatedPropertyType classType() { return AnimatedTransformList; } | 70 static AnimatedPropertyType classType() { return AnimatedTransformList; } |
71 | 71 |
72 private: | 72 private: |
73 SVGTransformList(); | 73 SVGTransformList(); |
74 | 74 |
75 template <typename CharType> | 75 template <typename CharType> |
76 bool parseInternal(const CharType*& ptr, const CharType* end); | 76 bool parseInternal(const CharType*& ptr, const CharType* end); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace blink | 79 } // namespace blink |
80 | 80 |
81 #endif // SVGTransformList_h | 81 #endif // SVGTransformList_h |
OLD | NEW |