7#ifndef FXJS_CJS_ANNOT_H_
8#define FXJS_CJS_ANNOT_H_
10#include "fpdfsdk/cpdfsdk_baannot.h"
11#include "fxjs/cjs_object.h"
12#include "fxjs/js_define.h"
19 CJS_Annot(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
29 static uint32_t ObjDefnID;
30 static const char kName[];
34 CJS_Result set_hidden(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
37 CJS_Result set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
40 CJS_Result set_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
static uint32_t GetObjDefnID()
static void DefineJSObjects(CFXJS_Engine *pEngine)
void SetSDKAnnot(CPDFSDK_BAAnnot *annot)
CJS_Annot(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
static void DefineProps(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSPropertySpec > consts)
static CJS_Result Success()
static CJS_Result Failure(JSMessage id)
WideString GetAnnotName() const
void SetAnnotName(const WideString &sName)
CPDF_Annot::Subtype GetAnnotSubtype() const override
void SetFlags(uint32_t nFlags)
uint32_t GetFlags() const
static ByteString AnnotSubtypeToString(Subtype nSubtype)
#define JS_STATIC_PROP(err_name, prop_name, class_name)
constexpr uint32_t kNoView
constexpr uint32_t kHidden
constexpr uint32_t kPrint
constexpr uint32_t kInvisible