Index: fpdfsdk/include/javascript/JS_Runtime.h |
diff --git a/fpdfsdk/include/javascript/JS_Runtime.h b/fpdfsdk/include/javascript/JS_Runtime.h |
index 314330ca6c4983e11daeaa4525585100be14e318..e93f8b3cbed3bec7efcf687e5d1c927ca609c9a2 100644 |
--- a/fpdfsdk/include/javascript/JS_Runtime.h |
+++ b/fpdfsdk/include/javascript/JS_Runtime.h |
@@ -42,8 +42,6 @@ class CJS_Runtime : public IFXJS_Runtime { |
CPDFDoc_Environment* GetReaderApp() const { return m_pApp; } |
- FX_BOOL InitJSObjects(); |
- |
FX_BOOL AddEventToLoop(const CFX_WideString& sTargetName, |
JS_EVENT_T eEventType); |
void RemoveEventInLoop(const CFX_WideString& sTargetName, |
@@ -57,7 +55,9 @@ class CJS_Runtime : public IFXJS_Runtime { |
v8::Isolate* GetIsolate() const { return m_isolate; } |
v8::Local<v8::Context> NewJSContext(); |
- protected: |
+ private: |
+ FX_BOOL DefineJSObjects(); |
+ |
CFX_ArrayTemplate<CJS_Context*> m_ContextArray; |
CPDFDoc_Environment* m_pApp; |
CPDFSDK_Document* m_pDocument; |