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 SVGAnimatedIntegerOptionalInteger_h | 31 #ifndef SVGAnimatedIntegerOptionalInteger_h |
32 #define SVGAnimatedIntegerOptionalInteger_h | 32 #define SVGAnimatedIntegerOptionalInteger_h |
33 | 33 |
34 #include "core/svg/SVGAnimatedInteger.h" | 34 #include "core/svg/SVGAnimatedInteger.h" |
35 #include "core/svg/SVGIntegerOptionalInteger.h" | 35 #include "core/svg/SVGIntegerOptionalInteger.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 SVGAnimatedIntegers |firstInteger| and |secondIntege
r| are used. | 43 // From Javascript, the two SVGAnimatedIntegers |firstInteger| and |
| 44 // |secondInteger| are used. |
44 // For example, see SVGFEDropShadowElement::stdDeviation{X,Y}() | 45 // For example, see SVGFEDropShadowElement::stdDeviation{X,Y}() |
45 class SVGAnimatedIntegerOptionalInteger | 46 class SVGAnimatedIntegerOptionalInteger |
46 : public SVGAnimatedPropertyCommon<SVGIntegerOptionalInteger> { | 47 : public SVGAnimatedPropertyCommon<SVGIntegerOptionalInteger> { |
47 public: | 48 public: |
48 static SVGAnimatedIntegerOptionalInteger* create( | 49 static SVGAnimatedIntegerOptionalInteger* 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 SVGAnimatedIntegerOptionalInteger( | 54 return new SVGAnimatedIntegerOptionalInteger( |
(...skipping 15 matching lines...) Expand all Loading... |
69 float initialFirstValue, | 70 float initialFirstValue, |
70 float initialSecondValue); | 71 float initialSecondValue); |
71 | 72 |
72 Member<SVGAnimatedInteger> m_firstInteger; | 73 Member<SVGAnimatedInteger> m_firstInteger; |
73 Member<SVGAnimatedInteger> m_secondInteger; | 74 Member<SVGAnimatedInteger> m_secondInteger; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace blink | 77 } // namespace blink |
77 | 78 |
78 #endif // SVGAnimatedIntegerOptionalInteger_h | 79 #endif // SVGAnimatedIntegerOptionalInteger_h |
OLD | NEW |