summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_context.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-01-02 17:17:02 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-03 19:54:37 +0000
commitc8fd3318a8deca3e1eabd6f7a9449ae4a0fa964d (patch)
treea5aedd888a3981f53722b7d65ea969d246f267c8 /fpdfsdk/fpdfxfa/cpdfxfa_context.h
parentdb194cf018069b930d0e3d5fc0242e14f70e8620 (diff)
downloadpdfium-c8fd3318a8deca3e1eabd6f7a9449ae4a0fa964d.tar.xz
Cleaning out params in CPDFXFA_Context
This CL cleans up some of the out params in CPDFXFA_Context. In the process several of the strings returned by ::LoadString() are inlined in their call sites and the defines removed. BUG=pdfium:549 Change-Id: I41a7ceeba3962299eecd0cb714ddb03d28dbb0ea Reviewed-on: https://pdfium-review.googlesource.com/2134 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_context.h')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_context.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.h b/fpdfsdk/fpdfxfa/cpdfxfa_context.h
index 8b9daea26f..52b16891de 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_context.h
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.h
@@ -54,9 +54,10 @@ class CPDFXFA_Context : public IXFA_AppProvider {
void ClearChangeMark();
// IFXA_AppProvider:
- void GetLanguage(CFX_WideString& wsLanguage) override;
- void GetPlatform(CFX_WideString& wsPlatform) override;
- void GetAppName(CFX_WideString& wsName) override;
+ CFX_WideString GetLanguage() override;
+ CFX_WideString GetPlatform() override;
+ CFX_WideString GetAppName() override;
+ CFX_WideString GetAppTitle() const override;
void Beep(uint32_t dwType) override;
int32_t MsgBox(const CFX_WideString& wsMessage,
@@ -79,7 +80,7 @@ class CPDFXFA_Context : public IXFA_AppProvider {
const CFX_WideString& wsData,
const CFX_WideString& wsEncode) override;
- void LoadString(int32_t iStringID, CFX_WideString& wsString) override;
+ CFX_WideString LoadString(int32_t iStringID) override;
IFWL_AdapterTimerMgr* GetTimerMgr() override;
protected: