summaryrefslogtreecommitdiff
path: root/xfa/fxfa
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-03-27 16:27:34 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-27 16:27:34 +0000
commit1f12904e10b3dcfde861f4befeaec34519f2d6d4 (patch)
tree8c0ec0dfbf60277c7db9332b9932e3cac4501588 /xfa/fxfa
parentc90adc58b97200d20b0532bde95b79dcba00637f (diff)
downloadpdfium-1f12904e10b3dcfde861f4befeaec34519f2d6d4.tar.xz
Remove CXFA_FFNotify proxy methods
This CL removes proxy methods from CXFA_FFNotify and calls them directly. Change-Id: I1fecc625e0b81b659baeffc9ca567c5c20e12c23 Reviewed-on: https://pdfium-review.googlesource.com/29252 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa')
-rw-r--r--xfa/fxfa/cxfa_ffnotify.cpp12
-rw-r--r--xfa/fxfa/cxfa_ffnotify.h4
2 files changed, 1 insertions, 15 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp
index 187d1a4ced..5ba699b168 100644
--- a/xfa/fxfa/cxfa_ffnotify.cpp
+++ b/xfa/fxfa/cxfa_ffnotify.cpp
@@ -233,14 +233,6 @@ void CXFA_FFNotify::AddCalcValidate(CXFA_Node* pNode) {
pDocView->AddValidateNode(pNode);
}
-CXFA_FFDoc* CXFA_FFNotify::GetHDOC() {
- return m_pDoc.Get();
-}
-
-IXFA_DocEnvironment* CXFA_FFNotify::GetDocEnvironment() const {
- return m_pDoc->GetDocEnvironment();
-}
-
IXFA_AppProvider* CXFA_FFNotify::GetAppProvider() {
return m_pDoc->GetApp()->GetAppProvider();
}
@@ -250,10 +242,6 @@ CXFA_FFWidgetHandler* CXFA_FFNotify::GetWidgetHandler() {
return pDocView ? pDocView->GetWidgetHandler() : nullptr;
}
-CXFA_FFWidget* CXFA_FFNotify::GetHWidget(CXFA_LayoutItem* pLayoutItem) {
- return XFA_GetWidgetFromLayoutItem(pLayoutItem);
-}
-
void CXFA_FFNotify::OpenDropDownList(CXFA_FFWidget* hWidget) {
if (hWidget->GetNode()->GetFFWidgetType() != XFA_FFWidgetType::kChoiceList)
return;
diff --git a/xfa/fxfa/cxfa_ffnotify.h b/xfa/fxfa/cxfa_ffnotify.h
index f3f9093cbc..e61b00ebfe 100644
--- a/xfa/fxfa/cxfa_ffnotify.h
+++ b/xfa/fxfa/cxfa_ffnotify.h
@@ -58,11 +58,9 @@ class CXFA_FFNotify {
bool bIsFormReady,
bool bRecursive);
void AddCalcValidate(CXFA_Node* pNode);
- CXFA_FFDoc* GetHDOC();
- IXFA_DocEnvironment* GetDocEnvironment() const;
+ CXFA_FFDoc* GetHDOC() { return m_pDoc.Get(); }
IXFA_AppProvider* GetAppProvider();
CXFA_FFWidgetHandler* GetWidgetHandler();
- CXFA_FFWidget* GetHWidget(CXFA_LayoutItem* pLayoutItem);
void OpenDropDownList(CXFA_FFWidget* hWidget);
void ResetData(CXFA_Node* pNode);
int32_t GetLayoutStatus();