summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-14 20:20:33 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-14 20:20:33 +0000
commitc5e0f66f5f2e0645f2beab70b44690fe510a9f2d (patch)
treef8e2c82f055a43a1f19f16228a97302439a80f9a /fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
parent2eeb42b74b1d29b3cf7fb7344530137debb680dd (diff)
downloadpdfium-c5e0f66f5f2e0645f2beab70b44690fe510a9f2d.tar.xz
Fold CXFA_SubmitData into CXFA_Submit
CXFA_SubmitData is a thin wrapper around CXFA_Submit. This CL folds the two classes together. Change-Id: I867b6db067786d232df2a25c1ba7b29d6d454f8e Reviewed-on: https://pdfium-review.googlesource.com/21190 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
index f487c46bd9..7933da33e4 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
@@ -64,19 +64,7 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment {
uint32_t dwOptions) override;
FX_ARGB GetHighlightColor(CXFA_FFDoc* hDoc) override;
- /**
- *Submit data to email, http, ftp.
- * @param[in] hDoc The document handler.
- * @param[in] eFormat Determines the format in which the data will be
- *submitted. XFA_AttributeEnum::Xdp, XFA_AttributeEnum::Xml...
- * @param[in] wsTarget The URL to which the data will be submitted.
- * @param[in] eEncoding The encoding of text content.
- * @param[in] pXDPContent Controls what subset of the data is submitted, used
- *only when the format property is xdp.
- * @param[in] bEmbedPDF, specifies whether PDF is embedded in the submitted
- *content or not.
- */
- bool SubmitData(CXFA_FFDoc* hDoc, CXFA_SubmitData submitData) override;
+ bool Submit(CXFA_FFDoc* hDoc, CXFA_Submit* submit) override;
bool GetGlobalProperty(CXFA_FFDoc* hDoc,
const ByteStringView& szPropName,
@@ -93,7 +81,7 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment {
bool OnBeforeNotifySubmit();
void OnAfterNotifySubmit();
bool NotifySubmit(bool bPrevOrPost);
- bool SubmitDataInternal(CXFA_FFDoc* hDoc, CXFA_SubmitData submitData);
+ bool SubmitInternal(CXFA_FFDoc* hDoc, CXFA_Submit* submit);
bool MailToInfo(WideString& csURL,
WideString& csToAddress,
WideString& csCCAddress,