summaryrefslogtreecommitdiff
path: root/fxjs/cjs_annot.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_annot.h')
-rw-r--r--fxjs/cjs_annot.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fxjs/cjs_annot.h b/fxjs/cjs_annot.h
index ea2168ea31..0c2a66b965 100644
--- a/fxjs/cjs_annot.h
+++ b/fxjs/cjs_annot.h
@@ -7,9 +7,11 @@
#ifndef FXJS_CJS_ANNOT_H_
#define FXJS_CJS_ANNOT_H_
-#include "fpdfsdk/cpdfsdk_baannot.h"
+#include "fxjs/cjs_object.h"
#include "fxjs/js_define.h"
+class CPDFSDK_BAAnnot;
+
class CJS_Annot final : public CJS_Object {
public:
static int GetObjDefnID();
@@ -18,7 +20,7 @@ class CJS_Annot final : public CJS_Object {
CJS_Annot(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
~CJS_Annot() override;
- void SetSDKAnnot(CPDFSDK_BAAnnot* annot) { m_pAnnot.Reset(annot); }
+ void SetSDKAnnot(CPDFSDK_BAAnnot* annot);
JS_STATIC_PROP(hidden, hidden, CJS_Annot);
JS_STATIC_PROP(name, name, CJS_Annot);