From ab226471570afef1e3619e6480d5485f0a75fddd Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 9 Oct 2018 20:44:55 +0000 Subject: 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 Reviewed-by: Tom Sepez --- fxjs/cjs_document.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fxjs/cjs_document.h') 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 { v8::Local vp, const ByteString& propName); + CPDF_InterForm* GetCoreInterForm(); + CPDFSDK_InterForm* GetSDKInterForm(); + WideString m_cwBaseURL; CPDFSDK_FormFillEnvironment::ObservedPtr m_pFormFillEnv; std::list> m_DelayData; -- cgit v1.2.3