Index: fpdfsdk/include/javascript/IJavaScript.h |
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h |
index 3791b886c4f1a0f97d0ffab31d457759d4720d07..4aeb76065bd56c4359b9d7261dab74a10b912e8a 100644 |
--- a/fpdfsdk/include/javascript/IJavaScript.h |
+++ b/fpdfsdk/include/javascript/IJavaScript.h |
@@ -133,6 +133,7 @@ class IFXJS_Context { |
class IFXJS_Runtime { |
public: |
+ static IFXJS_Runtime* Create(CPDFDoc_Environment* pEnv); |
virtual ~IFXJS_Runtime() {} |
virtual IFXJS_Context* NewContext() = 0; |
@@ -140,6 +141,9 @@ class IFXJS_Runtime { |
virtual IFXJS_Context* GetCurrentContext() = 0; |
virtual void SetReaderDocument(CPDFSDK_Document* pReaderDoc) = 0; |
virtual CPDFSDK_Document* GetReaderDocument() = 0; |
+ |
+ protected: |
+ IFXJS_Runtime() {} |
}; |
#endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |