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 SVGAnimatedNumberOptionalNumber_h | 31 #ifndef SVGAnimatedNumberOptionalNumber_h |
32 #define SVGAnimatedNumberOptionalNumber_h | 32 #define SVGAnimatedNumberOptionalNumber_h |
33 | 33 |
34 #include "core/svg/SVGAnimatedNumber.h" | 34 #include "core/svg/SVGAnimatedNumber.h" |
35 #include "core/svg/SVGNumberOptionalNumber.h" | 35 #include "core/svg/SVGNumberOptionalNumber.h" |
36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 // SVG Spec: http://www.w3.org/TR/SVG11/types.html <number-optional-number> | 40 // SVG Spec: http://www.w3.org/TR/SVG11/types.html <number-optional-number> |
41 // Unlike other SVGAnimated* class, this class is not exposed to Javascript dire
ctly, | 41 // Unlike other SVGAnimated* class, this class is not exposed to Javascript |
42 // while DOM attribute and SMIL animations operate on this class. | 42 // directly, while DOM attribute and SMIL animations operate on this class. |
43 // From Javascript, the two SVGAnimatedNumbers |firstNumber| and |secondNumber|
are used. | 43 // From Javascript, the two SVGAnimatedNumbers |firstNumber| and |secondNumber| |
| 44 // are used. |
44 // For example, see SVGFEDropShadowElement::stdDeviation{X,Y}() | 45 // For example, see SVGFEDropShadowElement::stdDeviation{X,Y}() |
45 class SVGAnimatedNumberOptionalNumber | 46 class SVGAnimatedNumberOptionalNumber |
46 : public SVGAnimatedPropertyCommon<SVGNumberOptionalNumber> { | 47 : public SVGAnimatedPropertyCommon<SVGNumberOptionalNumber> { |
47 public: | 48 public: |
48 static SVGAnimatedNumberOptionalNumber* create( | 49 static SVGAnimatedNumberOptionalNumber* create( |
49 SVGElement* contextElement, | 50 SVGElement* contextElement, |
50 const QualifiedName& attributeName, | 51 const QualifiedName& attributeName, |
51 float initialFirstValue = 0, | 52 float initialFirstValue = 0, |
52 float initialSecondValue = 0) { | 53 float initialSecondValue = 0) { |
53 return new SVGAnimatedNumberOptionalNumber( | 54 return new SVGAnimatedNumberOptionalNumber( |
(...skipping 15 matching lines...) Expand all Loading... |
69 float initialFirstValue, | 70 float initialFirstValue, |
70 float initialSecondValue); | 71 float initialSecondValue); |
71 | 72 |
72 Member<SVGAnimatedNumber> m_firstNumber; | 73 Member<SVGAnimatedNumber> m_firstNumber; |
73 Member<SVGAnimatedNumber> m_secondNumber; | 74 Member<SVGAnimatedNumber> m_secondNumber; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace blink | 77 } // namespace blink |
77 | 78 |
78 #endif // SVGAnimatedNumberOptionalNumber_h | 79 #endif // SVGAnimatedNumberOptionalNumber_h |
OLD | NEW |