diff options
Diffstat (limited to 'fpdfsdk/javascript/console.h')
-rw-r--r-- | fpdfsdk/javascript/console.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/console.h b/fpdfsdk/javascript/console.h index de1a40a30e..96c2daec21 100644 --- a/fpdfsdk/javascript/console.h +++ b/fpdfsdk/javascript/console.h @@ -29,18 +29,19 @@ class console : public CJS_EmbedObj { class CJS_Console : public CJS_Object { public: + static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType); + explicit CJS_Console(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} ~CJS_Console() override {} - static int g_nObjDefnID; - static JSMethodSpec MethodSpecs[]; - - static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType); - JS_STATIC_METHOD(clear, console); JS_STATIC_METHOD(hide, console); JS_STATIC_METHOD(println, console); JS_STATIC_METHOD(show, console); + + private: + static int ObjDefnID; + static JSMethodSpec MethodSpecs[]; }; #endif // FPDFSDK_JAVASCRIPT_CONSOLE_H_ |