summaryrefslogtreecommitdiff
path: root/fpdfsdk/include
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-04 12:08:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-04 12:08:40 -0700
commit221caf6f6f9810cbc0e0c4c50af9b036a052ae13 (patch)
treecbccfb1bd8b48387753c45604f0f85e52c48aa07 /fpdfsdk/include
parent6e56a5ebc88e05fe0bf05624eba9aeed57fa6d60 (diff)
downloadpdfium-221caf6f6f9810cbc0e0c4c50af9b036a052ae13.tar.xz
Cleanup the FF Handler proxy methods.
This CL removes the proxy methods from CXFA_FFWidgetHandler and CXFA_DocHandler and removes CXFA_FFMenuHandler as it was only proxy methods. The calls are made directly on the object now. Review URL: https://codereview.chromium.org/1857893002
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r--fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h b/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h
index 6d501317d6..dc09c8b656 100644
--- a/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h
+++ b/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h
@@ -11,6 +11,7 @@
#include "public/fpdfview.h"
#include "xfa/include/fxfa/fxfa.h"
+#include "xfa/include/fxfa/xfa_ffdoc.h"
#include "xfa/include/fxfa/xfa_ffdochandler.h"
class CPDFXFA_App;
@@ -212,12 +213,13 @@ class CPDFXFA_Document : public IXFA_DocProvider {
FXFA_LOADSTATUS_CLOSING,
FXFA_LOADSTATUS_CLOSED
};
+
void CloseXFADoc(CXFA_FFDocHandler* pDoc) {
if (pDoc) {
- pDoc->CloseDoc(m_pXFADoc);
- pDoc->ReleaseDoc(m_pXFADoc);
- m_pXFADoc = NULL;
- m_pXFADocView = NULL;
+ m_pXFADoc->CloseDoc();
+ delete m_pXFADoc;
+ m_pXFADoc = nullptr;
+ m_pXFADocView = nullptr;
}
}