diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-18 21:09:55 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-18 21:09:55 +0000 |
commit | 31beedc1e833842385b20b40d0ef27dbfc979443 (patch) | |
tree | 3678b19d407cfa3bc38bcc654b3b14e1aa7cdba9 /fxjs/cjs_annot.cpp | |
parent | f58b6f62614357ef3a6f171a9f5c89d72981ac40 (diff) | |
download | pdfium-31beedc1e833842385b20b40d0ef27dbfc979443.tar.xz |
Do more IWYU in fxjs/.
Change-Id: I778085c6e21904e697d5899a93f4e4e9fca92478
Reviewed-on: https://pdfium-review.googlesource.com/c/44272
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/cjs_annot.cpp')
-rw-r--r-- | fxjs/cjs_annot.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fxjs/cjs_annot.cpp b/fxjs/cjs_annot.cpp index dda52f629c..7b0dee6971 100644 --- a/fxjs/cjs_annot.cpp +++ b/fxjs/cjs_annot.cpp @@ -6,6 +6,7 @@ #include "fxjs/cjs_annot.h" +#include "fpdfsdk/cpdfsdk_baannot.h" #include "fxjs/cjs_event_context.h" #include "fxjs/cjs_object.h" #include "fxjs/js_define.h" @@ -37,6 +38,10 @@ CJS_Annot::CJS_Annot(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) CJS_Annot::~CJS_Annot() = default; +void CJS_Annot::SetSDKAnnot(CPDFSDK_BAAnnot* annot) { + m_pAnnot.Reset(annot); +} + CJS_Result CJS_Annot::get_hidden(CJS_Runtime* pRuntime) { if (!m_pAnnot) return CJS_Result::Failure(JSMessage::kBadObjectError); |