summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtbuf.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-16 16:36:31 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-16 21:39:28 +0000
commita364729be3725adbc9689c1c8c23902df102243b (patch)
tree4d97b4e0a50145996f5b7b487a48c499e67eff82 /xfa/fde/cfde_txtedtbuf.cpp
parenta016857bcee1a09e67bd34e895ef639a3946fa91 (diff)
downloadpdfium-a364729be3725adbc9689c1c8c23902df102243b.tar.xz
Move some CFDE_TxtEdt* methods to the headerschromium/3188
This CL moves several methods from the CFDE_TxtEdt* classes from the .cpp to .h files. As well, the GetCaretRect method is updated to return the rect instead of using an out param. Change-Id: I1288701f47d9ac1c413fbf06627f20b295b18b86 Reviewed-on: https://pdfium-review.googlesource.com/11270 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtbuf.cpp')
-rw-r--r--xfa/fde/cfde_txtedtbuf.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/xfa/fde/cfde_txtedtbuf.cpp b/xfa/fde/cfde_txtedtbuf.cpp
index d0f41d8b9d..1691cdaceb 100644
--- a/xfa/fde/cfde_txtedtbuf.cpp
+++ b/xfa/fde/cfde_txtedtbuf.cpp
@@ -24,14 +24,6 @@ CFDE_TxtEdtBuf::CFDE_TxtEdtBuf() : m_chunkSize(kDefaultChunkSize), m_nTotal(0) {
CFDE_TxtEdtBuf::~CFDE_TxtEdtBuf() {}
-int32_t CFDE_TxtEdtBuf::GetChunkSize() const {
- return m_chunkSize;
-}
-
-int32_t CFDE_TxtEdtBuf::GetTextLength() const {
- return m_nTotal;
-}
-
void CFDE_TxtEdtBuf::SetText(const CFX_WideString& wsText) {
ASSERT(!wsText.IsEmpty());
@@ -61,10 +53,6 @@ void CFDE_TxtEdtBuf::SetText(const CFX_WideString& wsText) {
m_nTotal = nTextLength;
}
-CFX_WideString CFDE_TxtEdtBuf::GetText() const {
- return GetRange(0, m_nTotal);
-}
-
wchar_t CFDE_TxtEdtBuf::GetCharByIndex(int32_t nIndex) const {
ASSERT(nIndex >= 0 && nIndex < GetTextLength());