Bug 842186 - Replace use of jsval with JS::Value in h and cpp files in the dom/telephony dom/bluetooth directories. r=jwalden

--HG--
extra : rebase_source : c1560ea8c79fbb398d3e8f132e561e7eba81520a
This commit is contained in:
Jose Cortes 2013-04-02 16:06:14 -07:00
Родитель 7b76878f61
Коммит 1810d47a66
10 изменённых файлов: 17 добавлений и 17 удалений

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

@ -65,7 +65,7 @@ public:
MOZ_ASSERT(aReq && aAdapterPtr);
}
virtual bool ParseSuccessfulReply(jsval* aValue)
virtual bool ParseSuccessfulReply(JS::Value* aValue)
{
*aValue = JSVAL_VOID;
@ -390,7 +390,7 @@ BluetoothAdapter::GetDiscoverableTimeout(uint32_t* aDiscoverableTimeout)
}
NS_IMETHODIMP
BluetoothAdapter::GetDevices(JSContext* aCx, jsval* aDevices)
BluetoothAdapter::GetDevices(JSContext* aCx, JS::Value* aDevices)
{
if (mJsDeviceAddresses) {
aDevices->setObject(*mJsDeviceAddresses);
@ -403,7 +403,7 @@ BluetoothAdapter::GetDevices(JSContext* aCx, jsval* aDevices)
}
NS_IMETHODIMP
BluetoothAdapter::GetUuids(JSContext* aCx, jsval* aValue)
BluetoothAdapter::GetUuids(JSContext* aCx, JS::Value* aValue)
{
if (mJsUuids) {
aValue->setObject(*mJsUuids);

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

@ -232,7 +232,7 @@ BluetoothDevice::GetConnected(bool* aConnected)
}
NS_IMETHODIMP
BluetoothDevice::GetUuids(JSContext* aCx, jsval* aUuids)
BluetoothDevice::GetUuids(JSContext* aCx, JS::Value* aUuids)
{
if (mJsUuids) {
aUuids->setObject(*mJsUuids);
@ -244,7 +244,7 @@ BluetoothDevice::GetUuids(JSContext* aCx, jsval* aUuids)
}
NS_IMETHODIMP
BluetoothDevice::GetServices(JSContext* aCx, jsval* aServices)
BluetoothDevice::GetServices(JSContext* aCx, JS::Value* aServices)
{
if (mJsServices) {
aServices->setObject(*mJsServices);

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

@ -208,7 +208,7 @@ public:
NS_DECL_ISUPPORTS
NS_IMETHOD
Handle(const nsAString& aName, const jsval& aResult)
Handle(const nsAString& aName, const JS::Value& aResult)
{
MOZ_ASSERT(NS_IsMainThread());

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

@ -44,7 +44,7 @@ public:
}
bool
ParseSuccessfulReply(jsval* aValue)
ParseSuccessfulReply(JS::Value* aValue)
{
*aValue = JSVAL_VOID;

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

@ -31,7 +31,7 @@ BluetoothReplyRunnable::~BluetoothReplyRunnable()
{}
nsresult
BluetoothReplyRunnable::FireReply(const jsval& aVal)
BluetoothReplyRunnable::FireReply(const JS::Value& aVal)
{
nsCOMPtr<nsIDOMRequestService> rs =
do_GetService(DOMREQUEST_SERVICE_CONTRACTID);
@ -64,7 +64,7 @@ BluetoothReplyRunnable::Run()
if (mReply->type() != BluetoothReply::TBluetoothReplySuccess) {
rv = FireReply(JSVAL_VOID);
} else {
jsval v;
JS::Value v;
if (!ParseSuccessfulReply(&v)) {
rv = FireErrorString();
} else {

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

@ -36,7 +36,7 @@ public:
protected:
virtual ~BluetoothReplyRunnable();
virtual bool ParseSuccessfulReply(jsval* aValue) = 0;
virtual bool ParseSuccessfulReply(JS::Value* aValue) = 0;
// This is an autoptr so we don't have to bring the ipdl include into the
// header. We assume we'll only be running this once and it should die on
@ -44,7 +44,7 @@ protected:
nsAutoPtr<BluetoothReply> mReply;
private:
nsresult FireReply(const jsval& aVal);
nsresult FireReply(const JS::Value& aVal);
nsresult FireErrorString();
nsCOMPtr<nsIDOMDOMRequest> mDOMRequest;
@ -58,7 +58,7 @@ public:
~BluetoothVoidReplyRunnable();
protected:
virtual bool ParseSuccessfulReply(jsval* aValue)
virtual bool ParseSuccessfulReply(JS::Value* aValue)
{
*aValue = JSVAL_VOID;
return true;

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

@ -231,7 +231,7 @@ class BluetoothService::StartupTask : public nsISettingsServiceCallback
public:
NS_DECL_ISUPPORTS
NS_IMETHOD Handle(const nsAString& aName, const jsval& aResult)
NS_IMETHOD Handle(const nsAString& aName, const JS::Value& aResult)
{
MOZ_ASSERT(NS_IsMainThread());

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

@ -35,7 +35,7 @@ SetJsObject(JSContext* aContext,
aValue.get_ArrayOfBluetoothNamedValue();
for (uint32_t i = 0; i < arr.Length(); i++) {
jsval val;
JS::Value val;
const BluetoothValue& v = arr[i].value();
JSString* jsData;

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

@ -65,7 +65,7 @@ public:
}
virtual bool
ParseSuccessfulReply(jsval* aValue) MOZ_OVERRIDE
ParseSuccessfulReply(JS::Value* aValue) MOZ_OVERRIDE
{
MOZ_NOT_REACHED("This should never be called!");
return false;

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

@ -286,7 +286,7 @@ Telephony::SetSpeakerEnabled(bool aSpeakerEnabled)
}
NS_IMETHODIMP
Telephony::GetActive(jsval* aActive)
Telephony::GetActive(JS::Value* aActive)
{
if (!mActiveCall) {
aActive->setNull();
@ -307,7 +307,7 @@ Telephony::GetActive(jsval* aActive)
}
NS_IMETHODIMP
Telephony::GetCalls(jsval* aCalls)
Telephony::GetCalls(JS::Value* aCalls)
{
JSObject* calls = mCallsArray;
if (!calls) {