| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 SVG_LENGTHTYPE_EMS = LengthTypeEMS, | 49 SVG_LENGTHTYPE_EMS = LengthTypeEMS, |
| 50 SVG_LENGTHTYPE_EXS = LengthTypeEXS, | 50 SVG_LENGTHTYPE_EXS = LengthTypeEXS, |
| 51 SVG_LENGTHTYPE_PX = LengthTypePX, | 51 SVG_LENGTHTYPE_PX = LengthTypePX, |
| 52 SVG_LENGTHTYPE_CM = LengthTypeCM, | 52 SVG_LENGTHTYPE_CM = LengthTypeCM, |
| 53 SVG_LENGTHTYPE_MM = LengthTypeMM, | 53 SVG_LENGTHTYPE_MM = LengthTypeMM, |
| 54 SVG_LENGTHTYPE_IN = LengthTypeIN, | 54 SVG_LENGTHTYPE_IN = LengthTypeIN, |
| 55 SVG_LENGTHTYPE_PT = LengthTypePT, | 55 SVG_LENGTHTYPE_PT = LengthTypePT, |
| 56 SVG_LENGTHTYPE_PC = LengthTypePC | 56 SVG_LENGTHTYPE_PC = LengthTypePC |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 static PassRefPtrWillBeRawPtr<SVGLengthTearOff> create(PassRefPtrWillBeRawPt
r<SVGLength> target, SVGElement* contextElement, PropertyIsAnimValType propertyI
sAnimVal, const QualifiedName& attributeName = QualifiedName::null()) | 59 static RawPtr<SVGLengthTearOff> create(RawPtr<SVGLength> target, SVGElement*
contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& a
ttributeName = QualifiedName::null()) |
| 60 { | 60 { |
| 61 return adoptRefWillBeNoop(new SVGLengthTearOff(target, contextElement, p
ropertyIsAnimVal, attributeName)); | 61 return new SVGLengthTearOff(target, contextElement, propertyIsAnimVal, a
ttributeName); |
| 62 } | 62 } |
| 63 | 63 |
| 64 SVGLengthType unitType(); | 64 SVGLengthType unitType(); |
| 65 SVGLengthMode unitMode(); | 65 SVGLengthMode unitMode(); |
| 66 float value(ExceptionState&); | 66 float value(ExceptionState&); |
| 67 void setValue(float value, ExceptionState&); | 67 void setValue(float value, ExceptionState&); |
| 68 float valueInSpecifiedUnits(); | 68 float valueInSpecifiedUnits(); |
| 69 void setValueInSpecifiedUnits(float value, ExceptionState&); | 69 void setValueInSpecifiedUnits(float value, ExceptionState&); |
| 70 String valueAsString(); | 70 String valueAsString(); |
| 71 void setValueAsString(const String&, ExceptionState&); | 71 void setValueAsString(const String&, ExceptionState&); |
| 72 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedU
nits, ExceptionState&); | 72 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedU
nits, ExceptionState&); |
| 73 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&); | 73 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&); |
| 74 | 74 |
| 75 bool hasExposedLengthUnit(); | 75 bool hasExposedLengthUnit(); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 SVGLengthTearOff(PassRefPtrWillBeRawPtr<SVGLength>, SVGElement* contextEleme
nt, PropertyIsAnimValType, const QualifiedName& attributeName = QualifiedName::n
ull()); | 78 SVGLengthTearOff(RawPtr<SVGLength>, SVGElement* contextElement, PropertyIsAn
imValType, const QualifiedName& attributeName = QualifiedName::null()); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace blink | 81 } // namespace blink |
| 82 | 82 |
| 83 #endif // SVGLengthTearOff_h | 83 #endif // SVGLengthTearOff_h |
| OLD | NEW |