summaryrefslogtreecommitdiff
path: root/fxjs/cjs_document.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-09 20:44:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-09 20:44:55 +0000
commitab226471570afef1e3619e6480d5485f0a75fddd (patch)
treeb2fbde8b4a52e7b3855e684fb537cb32a559a2c5 /fxjs/cjs_document.h
parent3e838a75ae5c0bb0e524f745df69e54a021fc5ec (diff)
downloadpdfium-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.h5
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;