summaryrefslogtreecommitdiff
path: root/xfa/fxfa/include/xfa_ffdoc.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-14 07:01:54 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-14 07:01:54 -0700
commita440bb3f11f42b7a22624e9771dd8d9c57075f06 (patch)
treec3dfde4e22bb2a2c4413e55d11dc89daaa1a3fb2 /xfa/fxfa/include/xfa_ffdoc.h
parentf2662c4a0bdfbe52d961ab4d2ff9a448323c3af9 (diff)
downloadpdfium-a440bb3f11f42b7a22624e9771dd8d9c57075f06.tar.xz
Split CPDFXFA_Document apart
[DO NOT COMMIT] This CL renames IXFA_DocProvider to IXFA_DocEnvironment to better describe the purpose. Then, CPDFXFA_Document has all of the IXFA_DocEnvironment methods removed and placed in CPDFXFA_DocEnvironment. The CPDFXFA_Document then has a CPDFXFA_DocEnvironment. This splits the code related to the document apart from the XFA callback methods to work with that document. Review-Url: https://codereview.chromium.org/2328573002
Diffstat (limited to 'xfa/fxfa/include/xfa_ffdoc.h')
-rw-r--r--xfa/fxfa/include/xfa_ffdoc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/include/xfa_ffdoc.h b/xfa/fxfa/include/xfa_ffdoc.h
index ddbc0049f1..927301893b 100644
--- a/xfa/fxfa/include/xfa_ffdoc.h
+++ b/xfa/fxfa/include/xfa_ffdoc.h
@@ -27,9 +27,9 @@ struct FX_IMAGEDIB_AND_DPI {
class CXFA_FFDoc {
public:
- CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider);
+ CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocEnvironment* pDocEnvironment);
~CXFA_FFDoc();
- IXFA_DocProvider* GetDocProvider() { return m_pDocProvider; }
+ IXFA_DocEnvironment* GetDocEnvironment() const { return m_pDocEnvironment; }
uint32_t GetDocType();
int32_t StartLoad();
int32_t DoLoad(IFX_Pause* pPause = nullptr);
@@ -54,7 +54,7 @@ class CXFA_FFDoc {
FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE);
protected:
- IXFA_DocProvider* m_pDocProvider;
+ IXFA_DocEnvironment* const m_pDocEnvironment;
std::unique_ptr<CXFA_DocumentParser> m_pDocumentParser;
IFX_FileRead* m_pStream;
CXFA_FFApp* m_pApp;