From e5b0bd1a79f90b7758246655e18ef965a87bcd0b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 19 Jun 2015 17:15:41 -0700 Subject: Merge to XFA: Do some IWYU cleanups. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1176333002. (cherry picked from commit 0ef0de55657db8a83372ad8eb22d84c5893afc4c) Review URL: https://codereview.chromium.org/1195943005. --- fpdfsdk/src/fpdf_ext.cpp | 1 + fpdfsdk/src/fpdf_searchex.cpp | 12 ++++++++---- fpdfsdk/src/fpdftext.cpp | 3 ++- fpdfsdk/src/fpdfview.cpp | 3 ++- fpdfsdk/src/javascript/JS_GlobalData.cpp | 1 + fpdfsdk/src/pdfwindow/PWL_Edit.cpp | 1 + 6 files changed, 15 insertions(+), 6 deletions(-) (limited to 'fpdfsdk/src') diff --git a/fpdfsdk/src/fpdf_ext.cpp b/fpdfsdk/src/fpdf_ext.cpp index f40023b9cc..d0036e6a1e 100644 --- a/fpdfsdk/src/fpdf_ext.cpp +++ b/fpdfsdk/src/fpdf_ext.cpp @@ -4,6 +4,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "../../core/include/fxcrt/fx_xml.h" #include "../../public/fpdf_ext.h" #include "../include/fsdk_define.h" #include "../include/fpdfxfa/fpdfxfa_doc.h" diff --git a/fpdfsdk/src/fpdf_searchex.cpp b/fpdfsdk/src/fpdf_searchex.cpp index d63f8fff46..e012d30590 100644 --- a/fpdfsdk/src/fpdf_searchex.cpp +++ b/fpdfsdk/src/fpdf_searchex.cpp @@ -5,10 +5,14 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../public/fpdf_searchex.h" -#include "../include/fsdk_define.h" -DLLEXPORT int STDCALL FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex) +#include "../../core/include/fpdftext/fpdf_text.h" + +DLLEXPORT int STDCALL FPDFText_GetCharIndexFromTextIndex( + FPDF_TEXTPAGE text_page, + int nTextIndex) { - if(!text_page) return -1; - return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex); + if (!text_page) + return -1; + return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex); } diff --git a/fpdfsdk/src/fpdftext.cpp b/fpdfsdk/src/fpdftext.cpp index 610050ff59..acfc79238a 100644 --- a/fpdfsdk/src/fpdftext.cpp +++ b/fpdfsdk/src/fpdftext.cpp @@ -4,8 +4,9 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "../../core/include/fpdfdoc/fpdf_doc.h" +#include "../../core/include/fpdftext/fpdf_text.h" #include "../../public/fpdf_text.h" -#include "../include/fsdk_define.h" #include "../include/fpdfxfa/fpdfxfa_doc.h" #include "../include/fpdfxfa/fpdfxfa_page.h" diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index 227843ec5c..4e6ffb0000 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -4,7 +4,8 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - +#include "../../core/include/fpdfapi/fpdf_module.h" +#include "../../core/include/fxcodec/fx_codec.h" #include "../../core/include/fxcrt/fx_safe_types.h" #include "../../public/fpdf_ext.h" #include "../../public/fpdf_formfill.h" diff --git a/fpdfsdk/src/javascript/JS_GlobalData.cpp b/fpdfsdk/src/javascript/JS_GlobalData.cpp index e17f305d36..2b925a18f6 100644 --- a/fpdfsdk/src/javascript/JS_GlobalData.cpp +++ b/fpdfsdk/src/javascript/JS_GlobalData.cpp @@ -4,6 +4,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "../../../core/include/fdrm/fx_crypt.h" #include "../../include/javascript/JavaScript.h" #include "../../include/javascript/IJavaScript.h" #include "../../include/javascript/JS_GlobalData.h" diff --git a/fpdfsdk/src/pdfwindow/PWL_Edit.cpp b/fpdfsdk/src/pdfwindow/PWL_Edit.cpp index 627e7a85d9..58d8a79da1 100644 --- a/fpdfsdk/src/pdfwindow/PWL_Edit.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_Edit.cpp @@ -5,6 +5,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../../core/include/fxcrt/fx_safe_types.h" +#include "../../../core/include/fxcrt/fx_xml.h" #include "../../include/pdfwindow/PDFWindow.h" #include "../../include/pdfwindow/PWL_Caret.h" #include "../../include/pdfwindow/PWL_Edit.h" -- cgit v1.2.3