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

--HG--
extra : rebase_source : 0b853fadf33606b78f753064ea676354943e6063
This commit is contained in:
Jose Cortes 2013-04-02 16:22:12 -07:00
parent 7e939c2f0f
commit 60d8f2002c
4 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ NS_INTERFACE_MAP_BEGIN(StkCommandEvent)
NS_INTERFACE_MAP_END_INHERITING(nsDOMEvent)
NS_IMETHODIMP
StkCommandEvent::GetCommand(JSContext* aCx, jsval* aCommand)
StkCommandEvent::GetCommand(JSContext* aCx, JS::Value* aCommand)
{
nsCOMPtr<nsIJSON> json(new nsJSON());

View File

@ -57,7 +57,7 @@ Read(JSContext* aCx, JSStructuredCloneReader* aReader, uint32_t aTag,
}
#endif
jsval wrappedFile;
JS::Value wrappedFile;
nsresult rv =
nsContentUtils::WrapNative(aCx, JS_GetGlobalForScopeChain(aCx), file,
&NS_GET_IID(nsIDOMFile), &wrappedFile);
@ -89,7 +89,7 @@ Read(JSContext* aCx, JSStructuredCloneReader* aReader, uint32_t aTag,
}
#endif
jsval wrappedBlob;
JS::Value wrappedBlob;
nsresult rv =
nsContentUtils::WrapNative(aCx, JS_GetGlobalForScopeChain(aCx), blob,
&NS_GET_IID(nsIDOMBlob), &wrappedBlob);

View File

@ -1401,7 +1401,7 @@ TabChild::DispatchMessageManagerMessage(const nsAString& aMessageName,
const nsACString& aJSONData)
{
JSAutoRequest ar(mCx);
jsval json = JSVAL_NULL;
JS::Value json = JSVAL_NULL;
StructuredCloneData cloneData;
JSAutoStructuredCloneBuffer buffer;
if (JS_ParseJSON(mCx,

View File

@ -80,10 +80,10 @@ public:
NS_FORWARD_SAFE_NSIMESSAGELISTENERMANAGER(mMessageManager)
NS_FORWARD_SAFE_NSIMESSAGESENDER(mMessageManager)
NS_IMETHOD SendSyncMessage(const nsAString& aMessageName,
const jsval& aObject,
const JS::Value& aObject,
JSContext* aCx,
uint8_t aArgc,
jsval* aRetval)
JS::Value* aRetval)
{
return mMessageManager
? mMessageManager->SendSyncMessage(aMessageName, aObject, aCx, aArgc, aRetval)