7#include "fxjs/cjs_icon.h"
10 {
"name", get_name_static, set_name_static}};
12uint32_t CJS_Icon::ObjDefnID = 0;
13const char CJS_Icon::kName[] =
"Icon";
23 JSConstructor<CJS_Icon>, JSDestructor);
27CJS_Icon::
CJS_Icon(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
32CJS_Result CJS_Icon::get_name(CJS_Runtime* pRuntime) {
33 return CJS_Result::Success(pRuntime->NewString(m_swIconName.AsStringView()));
36CJS_Result CJS_Icon::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) {
CJS_Icon(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
static uint32_t GetObjDefnID()
static void DefineJSObjects(CFXJS_Engine *pEngine)
static void DefineProps(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSPropertySpec > consts)
static CJS_Result Failure(JSMessage id)