Bug 832788. Part 3: AudioListener DopplerFactor/SpeedOfSound should take float per WebIDL. r=ehsan

--HG--
extra : rebase_source : d435b1678b09075cecf75e8da64364ec62964d00
This commit is contained in:
Robert O'Callahan 2013-01-29 14:40:59 +13:00
Родитель cb6d196d28
Коммит 030c7cbf38
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -40,20 +40,20 @@ public:
virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope,
bool* aTriedToWrap);
double DopplerFactor() const
float DopplerFactor() const
{
return mDopplerFactor;
}
void SetDopplerFactor(double aDopplerFactor)
void SetDopplerFactor(float aDopplerFactor)
{
mDopplerFactor = aDopplerFactor;
}
double SpeedOfSound() const
float SpeedOfSound() const
{
return mSpeedOfSound;
}
void SetSpeedOfSound(double aSpeedOfSound)
void SetSpeedOfSound(float aSpeedOfSound)
{
mSpeedOfSound = aSpeedOfSound;
}
@ -89,8 +89,8 @@ private:
ThreeDPoint mOrientation;
ThreeDPoint mUpVector;
ThreeDPoint mVelocity;
double mDopplerFactor;
double mSpeedOfSound;
float mDopplerFactor;
float mSpeedOfSound;
};
}