36 SetStringBundle(NS_LITERAL_STRING(
"chrome://songbird/locale/songbird.properties"));
38 NS_LITERAL_STRING(
"bps"),
39 NS_LITERAL_STRING(
"&bitrate.unit.bitspersecond"),
40 NS_LITERAL_STRING(
"&bitrate.unit.bitspersecond.short"));
42 NS_LITERAL_STRING(
"kbps"),
43 NS_LITERAL_STRING(
"&bitrate.unit.kilobitspersecond"),
44 NS_LITERAL_STRING(
"&bitrate.unit.kilobitspersecond.short"),
47 NS_LITERAL_STRING(
"mbps"),
48 NS_LITERAL_STRING(
"&bitrate.unit.megabitspersecond"),
49 NS_LITERAL_STRING(
"&bitrate.unit.megabitspersecond.short"));
72 return NS_ERROR_INVALID_ARG;
93 return NS_ERROR_INVALID_ARG;
102 if (aValue == 0) d = 1;
103 else d = (PRUint32)(log10(fabs(aValue)) + 1);
sbBitratePropertyUnitConverter()
NS_IMETHOD ConvertFromNativeToUnit(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
virtual PRInt32 GetAutoUnit(PRFloat64 aValue)
virtual ~sbBitratePropertyUnitConverter()
void RegisterUnit(PRUint32 aUnitInternalID, const nsAString &aUnitExternalID, const nsAString &aUnitName, const nsAString &aUnitShortName, PRBool isNative=PR_FALSE)
NS_IMETHOD ConvertFromUnitToNative(PRFloat64 aValue, PRUint32 aUnitID, PRFloat64 &_retVal)
void SetStringBundle(const nsAString &aStringBundle)