diff --git a/dom/bluetooth/BluetoothAdapter.cpp b/dom/bluetooth/BluetoothAdapter.cpp index 3ecf268cea38..81bc06863922 100644 --- a/dom/bluetooth/BluetoothAdapter.cpp +++ b/dom/bluetooth/BluetoothAdapter.cpp @@ -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); diff --git a/dom/bluetooth/BluetoothDevice.cpp b/dom/bluetooth/BluetoothDevice.cpp index 99c03a839eb1..023ab03ccb82 100644 --- a/dom/bluetooth/BluetoothDevice.cpp +++ b/dom/bluetooth/BluetoothDevice.cpp @@ -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); diff --git a/dom/bluetooth/BluetoothHfpManager.cpp b/dom/bluetooth/BluetoothHfpManager.cpp index efd2669f6f49..a316446592e8 100644 --- a/dom/bluetooth/BluetoothHfpManager.cpp +++ b/dom/bluetooth/BluetoothHfpManager.cpp @@ -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()); diff --git a/dom/bluetooth/BluetoothManager.cpp b/dom/bluetooth/BluetoothManager.cpp index b08d5ff932a2..d5af5f5a418a 100644 --- a/dom/bluetooth/BluetoothManager.cpp +++ b/dom/bluetooth/BluetoothManager.cpp @@ -44,7 +44,7 @@ public: } bool - ParseSuccessfulReply(jsval* aValue) + ParseSuccessfulReply(JS::Value* aValue) { *aValue = JSVAL_VOID; diff --git a/dom/bluetooth/BluetoothReplyRunnable.cpp b/dom/bluetooth/BluetoothReplyRunnable.cpp index df5c2509e4f4..bf69a66c601e 100644 --- a/dom/bluetooth/BluetoothReplyRunnable.cpp +++ b/dom/bluetooth/BluetoothReplyRunnable.cpp @@ -31,7 +31,7 @@ BluetoothReplyRunnable::~BluetoothReplyRunnable() {} nsresult -BluetoothReplyRunnable::FireReply(const jsval& aVal) +BluetoothReplyRunnable::FireReply(const JS::Value& aVal) { nsCOMPtr 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 { diff --git a/dom/bluetooth/BluetoothReplyRunnable.h b/dom/bluetooth/BluetoothReplyRunnable.h index 6a5d906aea09..6a8cb5615b3c 100644 --- a/dom/bluetooth/BluetoothReplyRunnable.h +++ b/dom/bluetooth/BluetoothReplyRunnable.h @@ -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 mReply; private: - nsresult FireReply(const jsval& aVal); + nsresult FireReply(const JS::Value& aVal); nsresult FireErrorString(); nsCOMPtr mDOMRequest; @@ -58,7 +58,7 @@ public: ~BluetoothVoidReplyRunnable(); protected: - virtual bool ParseSuccessfulReply(jsval* aValue) + virtual bool ParseSuccessfulReply(JS::Value* aValue) { *aValue = JSVAL_VOID; return true; diff --git a/dom/bluetooth/BluetoothService.cpp b/dom/bluetooth/BluetoothService.cpp index cbc0f41674d8..8ca4f7fe4be9 100644 --- a/dom/bluetooth/BluetoothService.cpp +++ b/dom/bluetooth/BluetoothService.cpp @@ -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()); diff --git a/dom/bluetooth/BluetoothUtils.cpp b/dom/bluetooth/BluetoothUtils.cpp index 490b76118d5f..9747fed709a3 100644 --- a/dom/bluetooth/BluetoothUtils.cpp +++ b/dom/bluetooth/BluetoothUtils.cpp @@ -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; diff --git a/dom/bluetooth/ipc/BluetoothParent.cpp b/dom/bluetooth/ipc/BluetoothParent.cpp index af5c8e3ed39b..c24bee44a7ff 100644 --- a/dom/bluetooth/ipc/BluetoothParent.cpp +++ b/dom/bluetooth/ipc/BluetoothParent.cpp @@ -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; diff --git a/dom/telephony/Telephony.cpp b/dom/telephony/Telephony.cpp index 0fe3aecfe2ee..bf095a150fd8 100644 --- a/dom/telephony/Telephony.cpp +++ b/dom/telephony/Telephony.cpp @@ -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) {