36 SetStringBundle(NS_LITERAL_STRING(
"chrome://songbird/locale/songbird.properties"));
38 NS_LITERAL_STRING(
"hz"),
39 NS_LITERAL_STRING(
"&frequency.unit.hertz"),
40 NS_LITERAL_STRING(
"&frequency.unit.hertz.short"),
43 NS_LITERAL_STRING(
"khz"),
44 NS_LITERAL_STRING(
"&frequency.unit.kilohertz"),
45 NS_LITERAL_STRING(
"&frequency.unit.kilohertz.short"));
67 return NS_ERROR_INVALID_ARG;
87 return NS_ERROR_INVALID_ARG;
96 if (aValue == 0) d = 1;
97 else d = (PRUint32)(log10(fabs(aValue)) + 1);
NS_IMETHOD ConvertFromNativeToUnit(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
NS_IMETHOD ConvertFromUnitToNative(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
virtual PRInt32 GetAutoUnit(PRFloat64 aValue)
virtual ~sbFrequencyPropertyUnitConverter()
void RegisterUnit(PRUint32 aUnitInternalID, const nsAString &aUnitExternalID, const nsAString &aUnitName, const nsAString &aUnitShortName, PRBool isNative=PR_FALSE)
sbFrequencyPropertyUnitConverter()
void SetStringBundle(const nsAString &aStringBundle)