From ab27768d235985c0789a10ab490be43e262f48f6 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 17 Feb 2016 10:07:21 -0800 Subject: Banish CFX_ByteArray and CFX_WideArray to the XFA side. Fix IWYU and include paths as we go. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1701883004 . --- fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h | 4 +++- fpdfsdk/include/fsdk_mgr.h | 2 +- fpdfsdk/include/pdfwindow/PWL_Wnd.h | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/include') diff --git a/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h b/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h index 64b3875629..eb064d2682 100644 --- a/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h +++ b/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h @@ -7,6 +7,8 @@ #ifndef FPDFXFA_DOC_H_ #define FPDFXFA_DOC_H_ +#include + #include "public/fpdfview.h" #include "xfa/include/fxfa/fxfa.h" @@ -161,7 +163,7 @@ class CPDFXFA_Document : public IXFA_DocProvider { } virtual FX_BOOL GetSuggestWords(IXFA_Doc* hDoc, const CFX_ByteStringC& sWord, - CFX_ByteStringArray& sSuggest) { + std::vector& sSuggest) { return FALSE; } diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index bef3b980fe..5fdf645306 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -378,7 +378,7 @@ class CPDFDoc_Environment final { FPDF_BOOL FFI_ShowFileDialog(const FX_WCHAR* wsTitle, const FX_WCHAR* wsFilter, - CFX_WideStringArray& wsPathArr, + std::vector& wsPathArr, FX_BOOL bOpen) { return FALSE; } diff --git a/fpdfsdk/include/pdfwindow/PWL_Wnd.h b/fpdfsdk/include/pdfwindow/PWL_Wnd.h index 058057bb76..1bc5023c98 100644 --- a/fpdfsdk/include/pdfwindow/PWL_Wnd.h +++ b/fpdfsdk/include/pdfwindow/PWL_Wnd.h @@ -7,6 +7,8 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ +#include + #include "core/include/fpdfdoc/fpdf_doc.h" #include "core/include/fxcrt/fx_basic.h" #include "fpdfsdk/include/fx_systemhandler.h" @@ -171,7 +173,7 @@ class IPWL_SpellCheck { virtual ~IPWL_SpellCheck() {} virtual FX_BOOL CheckWord(const FX_CHAR* sWord) = 0; virtual void SuggestWords(const FX_CHAR* sWord, - CFX_ByteStringArray& sSuggest) = 0; + std::vector& sSuggest) = 0; }; class IPWL_Provider { -- cgit v1.2.3