mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
55924de20e
commit
b1d36a593b
@ -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());
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user