diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-16 16:37:16 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-17 15:39:14 +0000 |
commit | b3e7bfa6ed35651a22df314352883ccb44a7203d (patch) | |
tree | 7d5c4734bb8203f358890d09d2bafc49bc7fa67a /xfa/fde/cfde_txtedtbuf.h | |
parent | 1748c4f6e42cda6ffa6bf32731d2fd525c060cf1 (diff) | |
download | pdfium-b3e7bfa6ed35651a22df314352883ccb44a7203d.tar.xz |
Cleanup visibilty and unused methods in xfa/fde
This CL fixes the visibility of some methods in xfa/fde along with
removing unused methods. Unused params are also removed.
Change-Id: Ic6e6d2ac8d07dc4bdabb3e0121831e4bf3fbb8ec
Reviewed-on: https://pdfium-review.googlesource.com/11271
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtbuf.h')
-rw-r--r-- | xfa/fde/cfde_txtedtbuf.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/xfa/fde/cfde_txtedtbuf.h b/xfa/fde/cfde_txtedtbuf.h index 3f1ad28c4f..f6d9ffc8c9 100644 --- a/xfa/fde/cfde_txtedtbuf.h +++ b/xfa/fde/cfde_txtedtbuf.h @@ -42,9 +42,7 @@ class CFDE_TxtEdtBuf { CFDE_TxtEdtBuf(); ~CFDE_TxtEdtBuf(); - int32_t GetChunkSize() const { return m_chunkSize; } int32_t GetTextLength() const { return m_nTotal; } - void SetText(const CFX_WideString& wsText); CFX_WideString GetText() const { return GetRange(0, m_nTotal); } @@ -55,10 +53,10 @@ class CFDE_TxtEdtBuf { void Delete(int32_t nIndex, int32_t nLength); void Clear(bool bRelease); - private: - friend class Iterator; - friend class CFDE_TxtEdtBufTest; + void SetChunkSizeForTesting(size_t size); + size_t GetChunkCountForTesting() const { return m_chunks.size(); } + private: class ChunkHeader { public: ChunkHeader(); @@ -68,11 +66,10 @@ class CFDE_TxtEdtBuf { std::unique_ptr<wchar_t, FxFreeDeleter> wChars; }; - void SetChunkSizeForTesting(size_t size); std::tuple<int32_t, int32_t> Index2CP(int32_t nIndex) const; std::unique_ptr<ChunkHeader> NewChunk(); - size_t m_chunkSize; + int32_t m_chunkSize; int32_t m_nTotal; std::vector<std::unique_ptr<ChunkHeader>> m_chunks; }; |