diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-09 20:44:55 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-09 20:44:55 +0000 |
commit | ab226471570afef1e3619e6480d5485f0a75fddd (patch) | |
tree | b2fbde8b4a52e7b3855e684fb537cb32a559a2c5 /fxjs/cjs_document.h | |
parent | 3e838a75ae5c0bb0e524f745df69e54a021fc5ec (diff) | |
download | pdfium-ab226471570afef1e3619e6480d5485f0a75fddd.tar.xz |
Add some helper methods to get InterForm objects in CJS_Document.
Add GetCoreInterForm() and GetSDKInterForm(), because otherwise there
are too many GetInterForm() calls.
Change-Id: Ibf910a51e477787c2b04b28bb359933b55dac34b
Reviewed-on: https://pdfium-review.googlesource.com/c/43597
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_document.h')
-rw-r--r-- | fxjs/cjs_document.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fxjs/cjs_document.h b/fxjs/cjs_document.h index c74855ebb0..b415c82868 100644 --- a/fxjs/cjs_document.h +++ b/fxjs/cjs_document.h @@ -14,6 +14,8 @@ #include "core/fxcrt/observable.h" #include "fxjs/js_define.h" +class CPDFSDK_InterForm; +class CPDF_InterForm; class CPDF_TextObject; struct CJS_DelayData; @@ -304,6 +306,9 @@ class CJS_Document final : public CJS_Object, public Observable<CJS_Document> { v8::Local<v8::Value> vp, const ByteString& propName); + CPDF_InterForm* GetCoreInterForm(); + CPDFSDK_InterForm* GetSDKInterForm(); + WideString m_cwBaseURL; CPDFSDK_FormFillEnvironment::ObservedPtr m_pFormFillEnv; std::list<std::unique_ptr<CJS_DelayData>> m_DelayData; |