7#ifndef FXJS_CJS_ICON_H_
8#define FXJS_CJS_ICON_H_
10#include "fxjs/cjs_object.h"
11#include "fxjs/js_define.h"
18 CJS_Icon(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
27 static uint32_t ObjDefnID;
28 static const char kName[];
32 CJS_Result set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
34 WideString m_swIconName;
void DoFieldDelay(const WideString &sFieldName, int nControlIndex)
CJS_Document(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
void SetFormFillEnv(CPDFSDK_FormFillEnvironment *pFormFillEnv)
void AddDelayData(std::unique_ptr< CJS_DelayData > pData)
static uint32_t GetObjDefnID()
static void DefineJSObjects(CFXJS_Engine *pEngine)
bool IsUserGesture() const
CJS_Icon(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
void SetIconName(WideString name)
WideString GetIconName() const
static uint32_t GetObjDefnID()
static void DefineJSObjects(CFXJS_Engine *pEngine)
static void DefineProps(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSPropertySpec > consts)
CJS_Runtime * GetRuntime() const
static void DefineMethods(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSMethodSpec > consts)
static CJS_Result Success()
static CJS_Result Failure(JSMessage id)
static CJS_Result Failure(const WideString &str)
CJS_EventContext * GetCurrentEventContext() const
CPDFSDK_AnnotIteration(CPDFSDK_PageView *page_view)
#define JS_STATIC_PROP(err_name, prop_name, class_name)
@ kUserGestureRequiredError