From 9e7cd8ffb81c564e1102f6c6459ec0942a0b11ea Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 6 Nov 2015 15:56:28 -0800 Subject: Fix all relative includes to core. Do some IWYU to fix build errors due to files that have no #includes but just happened to work previously because the #includes were in the right order. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1407423004 . --- fpdfsdk/include/formfiller/FFL_ComboBox.h | 2 +- fpdfsdk/include/formfiller/FormFiller.h | 6 +++--- fpdfsdk/include/fsdk_actionhandler.h | 4 ++-- fpdfsdk/include/fsdk_annothandler.h | 2 +- fpdfsdk/include/fsdk_baseannot.h | 4 ++-- fpdfsdk/include/fsdk_baseform.h | 8 ++++---- fpdfsdk/include/fsdk_define.h | 20 ++++++++++---------- fpdfsdk/include/fsdk_mgr.h | 2 +- fpdfsdk/include/fx_systemhandler.h | 7 +++++++ fpdfsdk/include/fxedit/fx_edit.h | 6 +++--- fpdfsdk/include/fxedit/fxet_edit.h | 2 +- fpdfsdk/include/fxedit/fxet_list.h | 2 +- fpdfsdk/include/fxedit/fxet_stub.h | 8 ++++---- fpdfsdk/include/javascript/IJavaScript.h | 4 ++-- fpdfsdk/include/jsapi/fxjs_v8.h | 3 ++- fpdfsdk/include/pdfwindow/PDFWindow.h | 6 +++--- fpdfsdk/include/pdfwindow/PWL_Edit.h | 2 +- fpdfsdk/include/pdfwindow/PWL_EditCtrl.h | 2 +- fpdfsdk/include/pdfwindow/PWL_Icon.h | 2 +- fpdfsdk/include/pdfwindow/PWL_IconList.h | 2 +- fpdfsdk/include/pdfwindow/PWL_Utils.h | 4 ++-- fpdfsdk/include/pdfwindow/PWL_Wnd.h | 4 ++-- 22 files changed, 55 insertions(+), 47 deletions(-) (limited to 'fpdfsdk/include') diff --git a/fpdfsdk/include/formfiller/FFL_ComboBox.h b/fpdfsdk/include/formfiller/FFL_ComboBox.h index c18fb74282..d26aa7b9c8 100644 --- a/fpdfsdk/include/formfiller/FFL_ComboBox.h +++ b/fpdfsdk/include/formfiller/FFL_ComboBox.h @@ -7,8 +7,8 @@ #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_ #define FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_ -#include "../../../core/include/fxcrt/fx_string.h" #include "FFL_FormFiller.h" +#include "core/include/fxcrt/fx_string.h" class CBA_FontMap; class CPDFSDK_Document; diff --git a/fpdfsdk/include/formfiller/FormFiller.h b/fpdfsdk/include/formfiller/FormFiller.h index 90351f5527..acbf52eddf 100644 --- a/fpdfsdk/include/formfiller/FormFiller.h +++ b/fpdfsdk/include/formfiller/FormFiller.h @@ -7,11 +7,11 @@ #ifndef FPDFSDK_INCLUDE_FORMFILLER_FORMFILLER_H_ #define FPDFSDK_INCLUDE_FORMFILLER_FORMFILLER_H_ -#include "../../../core/include/fpdfapi/fpdf_module.h" -#include "../../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../../core/include/fpdfdoc/fpdf_vt.h" #include "../fsdk_mgr.h" #include "../fxedit/fx_edit.h" #include "../pdfwindow/IPDFWindow.h" +#include "core/include/fpdfapi/fpdf_module.h" +#include "core/include/fpdfdoc/fpdf_doc.h" +#include "core/include/fpdfdoc/fpdf_vt.h" #endif // FPDFSDK_INCLUDE_FORMFILLER_FORMFILLER_H_ diff --git a/fpdfsdk/include/fsdk_actionhandler.h b/fpdfsdk/include/fsdk_actionhandler.h index 9324b85239..4417280a83 100644 --- a/fpdfsdk/include/fsdk_actionhandler.h +++ b/fpdfsdk/include/fsdk_actionhandler.h @@ -7,8 +7,8 @@ #ifndef FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ #define FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ -#include "../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../core/include/fxcrt/fx_string.h" +#include "core/include/fpdfdoc/fpdf_doc.h" +#include "core/include/fxcrt/fx_string.h" #include "fsdk_baseform.h" #include "third_party/base/nonstd_unique_ptr.h" diff --git a/fpdfsdk/include/fsdk_annothandler.h b/fpdfsdk/include/fsdk_annothandler.h index 89705459f2..53efa63fc5 100644 --- a/fpdfsdk/include/fsdk_annothandler.h +++ b/fpdfsdk/include/fsdk_annothandler.h @@ -10,7 +10,7 @@ #include #include -#include "../../core/include/fxcrt/fx_basic.h" +#include "core/include/fxcrt/fx_basic.h" class CFFL_IFormFiller; class CFX_RenderDevice; diff --git a/fpdfsdk/include/fsdk_baseannot.h b/fpdfsdk/include/fsdk_baseannot.h index c152a4bc9e..c4d2a8ca32 100644 --- a/fpdfsdk/include/fsdk_baseannot.h +++ b/fpdfsdk/include/fsdk_baseannot.h @@ -13,8 +13,8 @@ #include #endif -#include "../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../core/include/fxcrt/fx_basic.h" +#include "core/include/fpdfdoc/fpdf_doc.h" +#include "core/include/fxcrt/fx_basic.h" #include "fx_systemhandler.h" class CPDFSDK_PageView; diff --git a/fpdfsdk/include/fsdk_baseform.h b/fpdfsdk/include/fsdk_baseform.h index b356d255fe..f9f24568c7 100644 --- a/fpdfsdk/include/fsdk_baseform.h +++ b/fpdfsdk/include/fsdk_baseform.h @@ -15,10 +15,10 @@ #include -#include "../../core/include/fpdfapi/fpdf_parser.h" -#include "../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../core/include/fxcrt/fx_basic.h" -#include "../../core/include/fxge/fx_dib.h" +#include "core/include/fpdfapi/fpdf_parser.h" +#include "core/include/fpdfdoc/fpdf_doc.h" +#include "core/include/fxcrt/fx_basic.h" +#include "core/include/fxge/fx_dib.h" #include "fsdk_baseannot.h" class CFFL_FormFiller; diff --git a/fpdfsdk/include/fsdk_define.h b/fpdfsdk/include/fsdk_define.h index 3f37b3a009..bca7805226 100644 --- a/fpdfsdk/include/fsdk_define.h +++ b/fpdfsdk/include/fsdk_define.h @@ -7,16 +7,16 @@ #ifndef FPDFSDK_INCLUDE_FSDK_DEFINE_H_ #define FPDFSDK_INCLUDE_FSDK_DEFINE_H_ -#include "../../core/include/fpdfapi/fpdfapi.h" -#include "../../core/include/fpdfapi/fpdf_module.h" -#include "../../core/include/fpdfapi/fpdf_pageobj.h" -#include "../../core/include/fpdfapi/fpdf_parser.h" -#include "../../core/include/fpdfapi/fpdf_render.h" -#include "../../core/include/fpdfapi/fpdf_serial.h" -#include "../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../core/include/fpdfdoc/fpdf_vt.h" -#include "../../core/include/fxge/fx_ge.h" -#include "../../core/include/fxge/fx_ge_win32.h" +#include "core/include/fpdfapi/fpdfapi.h" +#include "core/include/fpdfapi/fpdf_module.h" +#include "core/include/fpdfapi/fpdf_pageobj.h" +#include "core/include/fpdfapi/fpdf_parser.h" +#include "core/include/fpdfapi/fpdf_render.h" +#include "core/include/fpdfapi/fpdf_serial.h" +#include "core/include/fpdfdoc/fpdf_doc.h" +#include "core/include/fpdfdoc/fpdf_vt.h" +#include "core/include/fxge/fx_ge.h" +#include "core/include/fxge/fx_ge_win32.h" #include "public/fpdfview.h" #ifdef _WIN32 diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index 0dd331e142..b7b349197a 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -9,7 +9,7 @@ #include -#include "../../core/include/fpdftext/fpdf_text.h" +#include "core/include/fpdftext/fpdf_text.h" #include "fsdk_actionhandler.h" #include "fsdk_annothandler.h" #include "fsdk_baseannot.h" diff --git a/fpdfsdk/include/fx_systemhandler.h b/fpdfsdk/include/fx_systemhandler.h index 31d3347477..224e0758f5 100644 --- a/fpdfsdk/include/fx_systemhandler.h +++ b/fpdfsdk/include/fx_systemhandler.h @@ -7,6 +7,13 @@ #ifndef FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ #define FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ +#include "core/include/fpdfapi/fpdf_parser.h" +#include "core/include/fxcrt/fx_coordinates.h" +#include "core/include/fxcrt/fx_system.h" + +class CPDF_Document; +class CPDF_Font; + typedef void* FX_HWND; typedef void* FX_HMENU; typedef void (*TimerCallback)(int32_t idEvent); diff --git a/fpdfsdk/include/fxedit/fx_edit.h b/fpdfsdk/include/fxedit/fx_edit.h index 23acbfa79f..d4788cdfb4 100644 --- a/fpdfsdk/include/fxedit/fx_edit.h +++ b/fpdfsdk/include/fxedit/fx_edit.h @@ -7,15 +7,15 @@ #ifndef FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ #define FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ -#include "../../../core/include/fxcrt/fx_basic.h" -#include "../../../core/include/fxge/fx_dib.h" +#include "core/include/fpdfapi/fpdf_parser.h" +#include "core/include/fxcrt/fx_basic.h" +#include "core/include/fxge/fx_dib.h" class CFX_RenderDevice; class CPDF_Font; class CPDF_Matrix; class CPDF_PageObjects; class CPDF_Point; -class CPDF_Rect; class CPDF_TextObject; class IFX_Edit; class IFX_Edit_FontMap; diff --git a/fpdfsdk/include/fxedit/fxet_edit.h b/fpdfsdk/include/fxedit/fxet_edit.h index c7c17a4378..21ebe6bae1 100644 --- a/fpdfsdk/include/fxedit/fxet_edit.h +++ b/fpdfsdk/include/fxedit/fxet_edit.h @@ -7,7 +7,7 @@ #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ #define FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ -#include "../../../core/include/fpdfdoc/fpdf_vt.h" +#include "core/include/fpdfdoc/fpdf_vt.h" #include "fx_edit.h" class CFX_Edit_Page; diff --git a/fpdfsdk/include/fxedit/fxet_list.h b/fpdfsdk/include/fxedit/fxet_list.h index f032078a1c..63c6617cba 100644 --- a/fpdfsdk/include/fxedit/fxet_list.h +++ b/fpdfsdk/include/fxedit/fxet_list.h @@ -7,7 +7,7 @@ #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ #define FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ -#include "../../../core/include/fpdfapi/fpdf_parser.h" // For CPDF_Point. +#include "core/include/fpdfapi/fpdf_parser.h" // For CPDF_Point. #include "fx_edit.h" class IFX_Edit; diff --git a/fpdfsdk/include/fxedit/fxet_stub.h b/fpdfsdk/include/fxedit/fxet_stub.h index 8fe2f0cd95..b752bff7f2 100644 --- a/fpdfsdk/include/fxedit/fxet_stub.h +++ b/fpdfsdk/include/fxedit/fxet_stub.h @@ -7,10 +7,10 @@ #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_STUB_H_ #define FPDFSDK_INCLUDE_FXEDIT_FXET_STUB_H_ -#include "../../../core/include/fpdfapi/fpdf_module.h" -#include "../../../core/include/fpdfapi/fpdf_render.h" -#include "../../../core/include/fpdfapi/fpdf_pageobj.h" -#include "../../../core/include/fpdfdoc/fpdf_vt.h" #include "../fx_systemhandler.h" +#include "core/include/fpdfapi/fpdf_module.h" +#include "core/include/fpdfapi/fpdf_pageobj.h" +#include "core/include/fpdfapi/fpdf_render.h" +#include "core/include/fpdfdoc/fpdf_vt.h" #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_STUB_H_ diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h index c4c5d0d053..79247c868a 100644 --- a/fpdfsdk/include/javascript/IJavaScript.h +++ b/fpdfsdk/include/javascript/IJavaScript.h @@ -7,8 +7,8 @@ #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ #define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ -#include "../../../core/include/fxcrt/fx_string.h" -#include "../../../core/include/fxcrt/fx_system.h" +#include "core/include/fxcrt/fx_string.h" +#include "core/include/fxcrt/fx_system.h" class CPDFDoc_Environment; class CPDFSDK_Annot; diff --git a/fpdfsdk/include/jsapi/fxjs_v8.h b/fpdfsdk/include/jsapi/fxjs_v8.h index c4a31bbf07..140fcacd11 100644 --- a/fpdfsdk/include/jsapi/fxjs_v8.h +++ b/fpdfsdk/include/jsapi/fxjs_v8.h @@ -15,7 +15,8 @@ #define FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ #include -#include "../../../core/include/fxcrt/fx_basic.h" + +#include "core/include/fxcrt/fx_basic.h" // FXJS_V8 places no restrictions on these two classes; it merely passes them // on to caller-provided methods. diff --git a/fpdfsdk/include/pdfwindow/PDFWindow.h b/fpdfsdk/include/pdfwindow/PDFWindow.h index 1b5e71f168..fb2ccb5b98 100644 --- a/fpdfsdk/include/pdfwindow/PDFWindow.h +++ b/fpdfsdk/include/pdfwindow/PDFWindow.h @@ -7,11 +7,11 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PDFWINDOW_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PDFWINDOW_H_ -#include "../../../core/include/fpdfapi/fpdf_module.h" -#include "../../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../../core/include/fpdfdoc/fpdf_vt.h" #include "../fx_systemhandler.h" #include "../fxedit/fx_edit.h" +#include "core/include/fpdfapi/fpdf_module.h" +#include "core/include/fpdfdoc/fpdf_doc.h" +#include "core/include/fpdfdoc/fpdf_vt.h" #include "public/fpdf_fwlevent.h" #endif // FPDFSDK_INCLUDE_PDFWINDOW_PDFWINDOW_H_ diff --git a/fpdfsdk/include/pdfwindow/PWL_Edit.h b/fpdfsdk/include/pdfwindow/PWL_Edit.h index 71123b8368..829fc2dcda 100644 --- a/fpdfsdk/include/pdfwindow/PWL_Edit.h +++ b/fpdfsdk/include/pdfwindow/PWL_Edit.h @@ -7,9 +7,9 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ -#include "../../../core/include/fxcrt/fx_basic.h" #include "PWL_EditCtrl.h" #include "PWL_Wnd.h" +#include "core/include/fxcrt/fx_basic.h" class CPWL_Edit; class IPWL_Filler_Notify; diff --git a/fpdfsdk/include/pdfwindow/PWL_EditCtrl.h b/fpdfsdk/include/pdfwindow/PWL_EditCtrl.h index bd241a3a48..b4f019bf2d 100644 --- a/fpdfsdk/include/pdfwindow/PWL_EditCtrl.h +++ b/fpdfsdk/include/pdfwindow/PWL_EditCtrl.h @@ -7,9 +7,9 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_ -#include "../../../core/include/fxcrt/fx_string.h" #include "../fxedit/fx_edit.h" #include "PWL_Wnd.h" +#include "core/include/fxcrt/fx_string.h" class CPWL_Caret; class CPWL_Edit; diff --git a/fpdfsdk/include/pdfwindow/PWL_Icon.h b/fpdfsdk/include/pdfwindow/PWL_Icon.h index 827741106b..8c60c7be52 100644 --- a/fpdfsdk/include/pdfwindow/PWL_Icon.h +++ b/fpdfsdk/include/pdfwindow/PWL_Icon.h @@ -7,8 +7,8 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_ -#include "../../../core/include/fxcrt/fx_string.h" #include "PWL_Wnd.h" +#include "core/include/fxcrt/fx_string.h" class CPWL_Image : public CPWL_Wnd { public: diff --git a/fpdfsdk/include/pdfwindow/PWL_IconList.h b/fpdfsdk/include/pdfwindow/PWL_IconList.h index 9ffb5ee8f5..c25f3b1994 100644 --- a/fpdfsdk/include/pdfwindow/PWL_IconList.h +++ b/fpdfsdk/include/pdfwindow/PWL_IconList.h @@ -7,9 +7,9 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ -#include "../../../core/include/fxcrt/fx_string.h" #include "PWL_ListCtrl.h" #include "PWL_Wnd.h" +#include "core/include/fxcrt/fx_string.h" class IPWL_IconList_Notify; class CPWL_IconList_Item; diff --git a/fpdfsdk/include/pdfwindow/PWL_Utils.h b/fpdfsdk/include/pdfwindow/PWL_Utils.h index e797510d50..f8f1358577 100644 --- a/fpdfsdk/include/pdfwindow/PWL_Utils.h +++ b/fpdfsdk/include/pdfwindow/PWL_Utils.h @@ -7,10 +7,10 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ -#include "../../../core/include/fpdfapi/fpdf_parser.h" // For CPDF_Point. -#include "../../../core/include/fpdfdoc/fpdf_vt.h" // For CPVT_WordRange. #include "../fxedit/fx_edit.h" #include "PWL_Wnd.h" +#include "core/include/fpdfapi/fpdf_parser.h" // For CPDF_Point. +#include "core/include/fpdfdoc/fpdf_vt.h" // For CPVT_WordRange. class CFX_PathData; struct CPWL_Color; diff --git a/fpdfsdk/include/pdfwindow/PWL_Wnd.h b/fpdfsdk/include/pdfwindow/PWL_Wnd.h index e8340c34ad..7216bf508a 100644 --- a/fpdfsdk/include/pdfwindow/PWL_Wnd.h +++ b/fpdfsdk/include/pdfwindow/PWL_Wnd.h @@ -7,9 +7,9 @@ #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ -#include "../../../core/include/fxcrt/fx_basic.h" -#include "../../../core/include/fpdfdoc/fpdf_doc.h" #include "../fx_systemhandler.h" +#include "core/include/fpdfdoc/fpdf_doc.h" +#include "core/include/fxcrt/fx_basic.h" class CPWL_MsgControl; class CPWL_ScrollBar; -- cgit v1.2.3