From 577ad2c9ea89c721ee1dbb89d1f7e12bb8c333f7 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 22 Sep 2016 10:20:43 -0700 Subject: Move CPDFSDK_Environment code to cpp file This CL moves the code from the .h file into the .cpp file. Review-Url: https://codereview.chromium.org/2354363003 --- xfa/fxfa/app/xfa_fftext.cpp | 2 +- xfa/fxfa/include/fxfa.h | 4 +--- xfa/fxfa/parser/cscript_hostpseudomodel.cpp | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'xfa') diff --git a/xfa/fxfa/app/xfa_fftext.cpp b/xfa/fxfa/app/xfa_fftext.cpp index 2e5bb6420d..ad0fdbc42c 100644 --- a/xfa/fxfa/app/xfa_fftext.cpp +++ b/xfa/fxfa/app/xfa_fftext.cpp @@ -135,7 +135,7 @@ FX_BOOL CXFA_FFText::OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) { return FALSE; } CXFA_FFDoc* pDoc = GetDoc(); - pDoc->GetDocEnvironment()->GotoURL(pDoc, wsURLContent, FALSE); + pDoc->GetDocEnvironment()->GotoURL(pDoc, wsURLContent); return TRUE; } FWL_WidgetHit CXFA_FFText::OnHitTest(FX_FLOAT fx, FX_FLOAT fy) { diff --git a/xfa/fxfa/include/fxfa.h b/xfa/fxfa/include/fxfa.h index 04fabeec11..1ffcbf7dbb 100644 --- a/xfa/fxfa/include/fxfa.h +++ b/xfa/fxfa/include/fxfa.h @@ -321,9 +321,7 @@ class IXFA_DocEnvironment { virtual void ExportData(CXFA_FFDoc* hDoc, const CFX_WideString& wsFilePath, FX_BOOL bXDP) = 0; - virtual void GotoURL(CXFA_FFDoc* hDoc, - const CFX_WideString& bsURL, - FX_BOOL bAppend) = 0; + virtual void GotoURL(CXFA_FFDoc* hDoc, const CFX_WideString& bsURL) = 0; virtual FX_BOOL IsValidationsEnabled(CXFA_FFDoc* hDoc) = 0; virtual void SetValidationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled) = 0; virtual void SetFocusWidget(CXFA_FFDoc* hDoc, CXFA_FFWidget* hWidget) = 0; diff --git a/xfa/fxfa/parser/cscript_hostpseudomodel.cpp b/xfa/fxfa/parser/cscript_hostpseudomodel.cpp index 5ca550aae8..d4fd19e8e0 100644 --- a/xfa/fxfa/parser/cscript_hostpseudomodel.cpp +++ b/xfa/fxfa/parser/cscript_hostpseudomodel.cpp @@ -239,7 +239,7 @@ void CScript_HostPseudoModel::GotoURL(CFXJSE_Arguments* pArguments) { CFX_ByteString bsURL = pArguments->GetUTF8String(0); wsURL = CFX_WideString::FromUTF8(bsURL.AsStringC()); } - pNotify->GetDocEnvironment()->GotoURL(hDoc, wsURL, TRUE); + pNotify->GetDocEnvironment()->GotoURL(hDoc, wsURL); } void CScript_HostPseudoModel::OpenList(CFXJSE_Arguments* pArguments) { if (!m_pDocument->GetScriptContext()->IsRunAtClient()) { -- cgit v1.2.3