summaryrefslogtreecommitdiff
path: root/fxjs/cjs_icon.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_icon.h')
-rw-r--r--fxjs/cjs_icon.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/fxjs/cjs_icon.h b/fxjs/cjs_icon.h
index 3ded32f83a..a346d69e73 100644
--- a/fxjs/cjs_icon.h
+++ b/fxjs/cjs_icon.h
@@ -9,34 +9,28 @@
#include "fxjs/JS_Define.h"
-class Icon : public CJS_EmbedObj {
- public:
- explicit Icon(CJS_Object* pJSObject);
- ~Icon() override;
-
- CJS_Return get_name(CJS_Runtime* pRuntime);
- CJS_Return set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
-
- WideString GetIconName() const { return m_swIconName; }
- void SetIconName(WideString name) { m_swIconName = name; }
-
- private:
- WideString m_swIconName;
-};
-
class CJS_Icon : public CJS_Object {
public:
static int GetObjDefnID();
static void DefineJSObjects(CFXJS_Engine* pEngine);
explicit CJS_Icon(v8::Local<v8::Object> pObject);
- ~CJS_Icon() override = default;
+ ~CJS_Icon() override;
+
+ WideString GetIconName() const { return m_swIconName; }
+ void SetIconName(WideString name) { m_swIconName = name; }
- JS_STATIC_PROP(name, name, Icon);
+ JS_STATIC_PROP(name, name, CJS_Icon);
private:
static int ObjDefnID;
+ static const char kName[];
static const JSPropertySpec PropertySpecs[];
+
+ CJS_Return get_name(CJS_Runtime* pRuntime);
+ CJS_Return set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+
+ WideString m_swIconName;
};
#endif // FXJS_CJS_ICON_H_