diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-26 20:25:18 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-26 20:25:18 +0000 |
commit | 2cae3e26526a8aeef5744665589d1bfaf5efe6f3 (patch) | |
tree | c93e98db9f90d07158e2e2d2311e6b70d5f98cb6 /core/fpdfapi/render/cpdf_charposlist.h | |
parent | 7df950ac2ef484880fe3cbfb9961bed34fee191d (diff) | |
download | pdfium-2cae3e26526a8aeef5744665589d1bfaf5efe6f3.tar.xz |
Forward declare a bunch of classes.
Then do IWYU to fix up build errors. Move some implementations out of
headers to allow more forward declarations.
Change-Id: Idbeb978705a21cd6fb710ca9f5e99b4ea7d93ec5
Reviewed-on: https://pdfium-review.googlesource.com/c/44632
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_charposlist.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_charposlist.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_charposlist.h b/core/fpdfapi/render/cpdf_charposlist.h index c4636bca51..dd7c87b100 100644 --- a/core/fpdfapi/render/cpdf_charposlist.h +++ b/core/fpdfapi/render/cpdf_charposlist.h @@ -10,20 +10,23 @@ #include <vector> #include "core/fxcrt/fx_system.h" -#include "core/fxge/cfx_renderdevice.h" class CPDF_Font; +class FXTEXT_CHARPOS; class CPDF_CharPosList { public: CPDF_CharPosList(); ~CPDF_CharPosList(); + void Load(const std::vector<uint32_t>& charCodes, const std::vector<float>& charPos, CPDF_Font* pFont, float font_size); - FXTEXT_CHARPOS* m_pCharPos; - uint32_t m_nChars; + + // TODO(thestig): Convert to unique_ptr or vector. + FXTEXT_CHARPOS* m_pCharPos = nullptr; + uint32_t m_nChars = 0; }; #endif // CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_ |