Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: fpdfsdk/include/javascript/IJavaScript.h

Issue 374123002: Hook up the default v8::Platform implementation to pdfium (Closed) Base URL: https://pdfium.googlesource.com/pdfium/@master
Patch Set: updates Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/include/javascript/IJavaScript.h
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h
index 3087b6a865ac58e91eb63b6ade4236a1e4eaed31..7633bbb48679205f705fed6945ade4bacf26a426 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_

Powered by Google App Engine
This is Rietveld 408576698