summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/javascript/JS_Runtime.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-09-11 08:18:47 -0700
committerTom Sepez <tsepez@chromium.org>2015-09-11 08:18:47 -0700
commitdf4de98c06075b0e491ac645f2d118a6813cedc9 (patch)
tree9b2f9b48477b061ade9534990384109587e23946 /fpdfsdk/include/javascript/JS_Runtime.h
parent89d8b4681ce98894a1ee1a6cf4bae77e00d28797 (diff)
downloadpdfium-df4de98c06075b0e491ac645f2d118a6813cedc9.tar.xz
Rename Init methods to more accurately describe purpose
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1335763002 .
Diffstat (limited to 'fpdfsdk/include/javascript/JS_Runtime.h')
-rw-r--r--fpdfsdk/include/javascript/JS_Runtime.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/include/javascript/JS_Runtime.h b/fpdfsdk/include/javascript/JS_Runtime.h
index 314330ca6c..e93f8b3cbe 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;