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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 SVG_LENGTHTYPE_EMS = LengthTypeEMS, | 47 SVG_LENGTHTYPE_EMS = LengthTypeEMS, |
48 SVG_LENGTHTYPE_EXS = LengthTypeEXS, | 48 SVG_LENGTHTYPE_EXS = LengthTypeEXS, |
49 SVG_LENGTHTYPE_PX = LengthTypePX, | 49 SVG_LENGTHTYPE_PX = LengthTypePX, |
50 SVG_LENGTHTYPE_CM = LengthTypeCM, | 50 SVG_LENGTHTYPE_CM = LengthTypeCM, |
51 SVG_LENGTHTYPE_MM = LengthTypeMM, | 51 SVG_LENGTHTYPE_MM = LengthTypeMM, |
52 SVG_LENGTHTYPE_IN = LengthTypeIN, | 52 SVG_LENGTHTYPE_IN = LengthTypeIN, |
53 SVG_LENGTHTYPE_PT = LengthTypePT, | 53 SVG_LENGTHTYPE_PT = LengthTypePT, |
54 SVG_LENGTHTYPE_PC = LengthTypePC | 54 SVG_LENGTHTYPE_PC = LengthTypePC |
55 }; | 55 }; |
56 | 56 |
57 static PassRefPtr<SVGLengthTearOff> create(PassRefPtr<SVGLength> target, SVG
Element* contextElement, PropertyIsAnimValType propertyIsAnimVal, const Qualifie
dName& attributeName = nullQName()) | 57 static PassRefPtr<SVGLengthTearOff> create(PassRefPtr<SVGLength> target, SVG
Element* contextElement, PropertyIsAnimValType propertyIsAnimVal, const Qualifie
dName& attributeName = QualifiedName::null()) |
58 { | 58 { |
59 return adoptRef(new SVGLengthTearOff(target, contextElement, propertyIsA
nimVal, attributeName)); | 59 return adoptRef(new SVGLengthTearOff(target, contextElement, propertyIsA
nimVal, attributeName)); |
60 } | 60 } |
61 | 61 |
62 SVGLengthType unitType(); | 62 SVGLengthType unitType(); |
63 SVGLengthMode unitMode(); | 63 SVGLengthMode unitMode(); |
64 float value(ExceptionState&); | 64 float value(ExceptionState&); |
65 void setValue(float value, ExceptionState&); | 65 void setValue(float value, ExceptionState&); |
66 float valueInSpecifiedUnits(); | 66 float valueInSpecifiedUnits(); |
67 void setValueInSpecifiedUnits(float value, ExceptionState&); | 67 void setValueInSpecifiedUnits(float value, ExceptionState&); |
68 String valueAsString(); | 68 String valueAsString(); |
69 void setValueAsString(const String&, ExceptionState&); | 69 void setValueAsString(const String&, ExceptionState&); |
70 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedU
nits, ExceptionState&); | 70 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedU
nits, ExceptionState&); |
71 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&); | 71 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&); |
72 | 72 |
73 private: | 73 private: |
74 SVGLengthTearOff(PassRefPtr<SVGLength>, SVGElement* contextElement, Property
IsAnimValType, const QualifiedName& attributeName = nullQName()); | 74 SVGLengthTearOff(PassRefPtr<SVGLength>, SVGElement* contextElement, Property
IsAnimValType, const QualifiedName& attributeName = QualifiedName::null()); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace WebCore | 77 } // namespace WebCore |
78 | 78 |
79 #endif // SVGLengthTearOff_h_ | 79 #endif // SVGLengthTearOff_h_ |
OLD | NEW |