summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/javascript/global.h
diff options
context:
space:
mode:
authorJochen Eisinger <jochen@chromium.org>2015-05-19 00:33:06 +0200
committerJochen Eisinger <jochen@chromium.org>2015-05-19 00:33:06 +0200
commit3fea540931b6b2c700c50809a3d4d8a506f4f797 (patch)
treed71d75fa7f200b073f75d6f52af78cd32b826825 /fpdfsdk/include/javascript/global.h
parent0c94bc477b5374fea34994c00fb4de291964489e (diff)
downloadpdfium-3fea540931b6b2c700c50809a3d4d8a506f4f797.tar.xz
Replace v8::Handle with v8::Local and v8::Persistent with v8::Global
those types are just aliases, and we should consistently use the new version R=tsepez@chromium.org BUG= Review URL: https://codereview.chromium.org/1138823004
Diffstat (limited to 'fpdfsdk/include/javascript/global.h')
-rw-r--r--fpdfsdk/include/javascript/global.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/include/javascript/global.h b/fpdfsdk/include/javascript/global.h
index 9ee9f42b42..2690f6822c 100644
--- a/fpdfsdk/include/javascript/global.h
+++ b/fpdfsdk/include/javascript/global.h
@@ -33,7 +33,7 @@ struct js_global_data
double dData;
bool bData;
CFX_ByteString sData;
- v8::Persistent<v8::Object> pData;
+ v8::Global<v8::Object> pData;
bool bPersistent;
bool bDeleted;
};
@@ -61,8 +61,8 @@ private:
FX_BOOL SetGlobalVariables(FX_LPCSTR propname, int nType,
double dData, bool bData, const CFX_ByteString& sData, JSObject pData, bool bDefaultPersistent);
- void ObjectToArray(v8::Handle<v8::Object> pObj, CJS_GlobalVariableArray& array);
- void PutObjectProperty(v8::Handle<v8::Object> obj, CJS_KeyValue* pData);
+ void ObjectToArray(v8::Local<v8::Object> pObj, CJS_GlobalVariableArray& array);
+ void PutObjectProperty(v8::Local<v8::Object> obj, CJS_KeyValue* pData);
private:
CFX_MapByteStringToPtr m_mapGlobal;