summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/javascript/IJavaScript.h
diff options
context:
space:
mode:
authorJochen Eisinger <jochen@chromium.org>2014-07-17 08:46:45 +0200
committerJochen Eisinger <jochen@chromium.org>2014-07-17 08:46:45 +0200
commit3fb18f41076a111e48cd8cdaee596075c89c275c (patch)
treeb9522eaaa1779a3632a13cda3912ade871b34cb8 /fpdfsdk/include/javascript/IJavaScript.h
parent8f75c67f4e724ba44eb3d90e4033f8cc90522273 (diff)
downloadpdfium-3fb18f41076a111e48cd8cdaee596075c89c275c.tar.xz
Hook up the default v8::Platform implementation to pdfium
It remains to call the PumpMessageLoop() method at a regular interval, however, since nothing posts to the loop yet, that shouldn't be a problem. BUG=25 R=jam@chromium.org Review URL: https://codereview.chromium.org/374123002
Diffstat (limited to 'fpdfsdk/include/javascript/IJavaScript.h')
-rw-r--r--fpdfsdk/include/javascript/IJavaScript.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h
index 3087b6a865..7633bbb486 100644
--- a/fpdfsdk/include/javascript/IJavaScript.h
+++ b/fpdfsdk/include/javascript/IJavaScript.h
@@ -7,6 +7,10 @@
#ifndef _IJAVASCRIPT_H_
#define _IJAVASCRIPT_H_
+namespace v8 {
+class Platform;
+}
+
class IFXJS_Context
{
public:
@@ -92,7 +96,7 @@ class CJS_GlobalData;
class CJS_RuntimeFactory
{
public:
- CJS_RuntimeFactory():m_bInit(FALSE),m_nRef(0),m_pGlobalData(NULL),m_nGlobalDataCount(0) {}
+ CJS_RuntimeFactory():m_bInit(FALSE),m_nRef(0),m_pGlobalData(NULL),m_nGlobalDataCount(0),m_platform(NULL) {}
~CJS_RuntimeFactory();
IFXJS_Runtime* NewJSRuntime(CPDFDoc_Environment* pApp);
void DeleteJSRuntime(IFXJS_Runtime* pRuntime);
@@ -106,6 +110,7 @@ private:
int m_nRef;
CJS_GlobalData* m_pGlobalData;
FX_INT32 m_nGlobalDataCount;
+ v8::Platform* m_platform;
};
#endif //_IJAVASCRIPT_H_