diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-16 16:36:31 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-16 21:39:28 +0000 |
commit | a364729be3725adbc9689c1c8c23902df102243b (patch) | |
tree | 4d97b4e0a50145996f5b7b487a48c499e67eff82 /xfa/fde/cfde_txtedtbuf.h | |
parent | a016857bcee1a09e67bd34e895ef639a3946fa91 (diff) | |
download | pdfium-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.h')
-rw-r--r-- | xfa/fde/cfde_txtedtbuf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fde/cfde_txtedtbuf.h b/xfa/fde/cfde_txtedtbuf.h index b500a9871e..3f1ad28c4f 100644 --- a/xfa/fde/cfde_txtedtbuf.h +++ b/xfa/fde/cfde_txtedtbuf.h @@ -42,11 +42,11 @@ class CFDE_TxtEdtBuf { CFDE_TxtEdtBuf(); ~CFDE_TxtEdtBuf(); - int32_t GetChunkSize() const; - int32_t GetTextLength() const; + int32_t GetChunkSize() const { return m_chunkSize; } + int32_t GetTextLength() const { return m_nTotal; } void SetText(const CFX_WideString& wsText); - CFX_WideString GetText() const; + CFX_WideString GetText() const { return GetRange(0, m_nTotal); } wchar_t GetCharByIndex(int32_t nIndex) const; CFX_WideString GetRange(int32_t nBegin, int32_t nCount) const; |