summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Icon.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/Icon.h')
-rw-r--r--fpdfsdk/javascript/Icon.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/Icon.h b/fpdfsdk/javascript/Icon.h
index 3580183347..33ee554c02 100644
--- a/fpdfsdk/javascript/Icon.h
+++ b/fpdfsdk/javascript/Icon.h
@@ -28,15 +28,17 @@ class Icon : public CJS_EmbedObj {
class CJS_Icon : public CJS_Object {
public:
+ static int GetObjDefnID();
+ static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType);
+
explicit CJS_Icon(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Icon() override {}
- static int g_nObjDefnID;
- static JSPropertySpec PropertySpecs[];
-
- static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType);
-
JS_STATIC_PROP(name, name, Icon);
+
+ private:
+ static int ObjDefnID;
+ static JSPropertySpec PropertySpecs[];
};
#endif // FPDFSDK_JAVASCRIPT_ICON_H_