summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/report.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/report.h')
-rw-r--r--fpdfsdk/javascript/report.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/report.h b/fpdfsdk/javascript/report.h
index 51798e6bcb..b9cad59824 100644
--- a/fpdfsdk/javascript/report.h
+++ b/fpdfsdk/javascript/report.h
@@ -25,16 +25,17 @@ class Report : public CJS_EmbedObj {
class CJS_Report : public CJS_Object {
public:
+ static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType);
+
explicit CJS_Report(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Report() override {}
- static int g_nObjDefnID;
- static JSMethodSpec MethodSpecs[];
-
- static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType);
-
JS_STATIC_METHOD(save, Report)
JS_STATIC_METHOD(writeText, Report);
+
+ private:
+ static int ObjDefnID;
+ static JSMethodSpec MethodSpecs[];
};
#endif // FPDFSDK_JAVASCRIPT_REPORT_H_