summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtengine.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-16 16:37:56 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-17 15:55:34 +0000
commit022b4397f98e7bb6d283918c836a4d1d386ac9cc (patch)
tree645644fa307060b6b2729c6fbac7c53054cc61ba /xfa/fde/cfde_txtedtengine.h
parente30e9cc05b62b046e5299ecc058957d93d2c68ea (diff)
downloadpdfium-022b4397f98e7bb6d283918c836a4d1d386ac9cc.tar.xz
Cleanup CFDE_TxtEdtEngine Insert and Delete methods
This CL cleans up CFDE_TxtEdtEngine::{Insert|Delete} to cleanup return values, input params and other unused bits. Change-Id: I53c4475ce3dc6518058bc130e9710842df841032 Reviewed-on: https://pdfium-review.googlesource.com/11273 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.h')
-rw-r--r--xfa/fde/cfde_txtedtengine.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fde/cfde_txtedtengine.h b/xfa/fde/cfde_txtedtengine.h
index 19aed3fe7b..31de49b4d2 100644
--- a/xfa/fde/cfde_txtedtengine.h
+++ b/xfa/fde/cfde_txtedtengine.h
@@ -111,15 +111,14 @@ class CFDE_TxtEdtEngine {
int32_t SetCaretPos(int32_t nIndex, bool bBefore);
int32_t MoveCaretPos(FDE_TXTEDTMOVECARET eMoveCaret, bool bShift, bool bCtrl);
- int32_t Insert(int32_t nStart, const wchar_t* lpText, int32_t nLength);
- int32_t Delete(int32_t nStart, bool bBackspace);
+ int32_t Insert(const CFX_WideString& str);
+ void Delete(bool bBackspace);
void SetLimit(int32_t nLimit) { m_nLimit = nLimit; }
int32_t GetLimit() const { return m_nLimit; }
void SetAliasChar(wchar_t wcAlias) { m_wcAliasChar = wcAlias; }
void RemoveSelRange(int32_t nStart, int32_t nCount);
-
void AddSelRange(int32_t nStart, int32_t nCount);
int32_t CountSelRanges() const {
return pdfium::CollectionSize<int32_t>(m_SelRangePtrArr);