diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-09-19 10:07:20 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-19 14:16:31 +0000 |
commit | 0264e97bceaca69d0b0232ac680bd7b26e2db66a (patch) | |
tree | 85ea26e8a518469b74c3db58d5a814c102a3622c /xfa/fwl/cfwl_datetimepicker.h | |
parent | b02aa61946a62639dd9d39bc00eff6f829b1e414 (diff) | |
download | pdfium-0264e97bceaca69d0b0232ac680bd7b26e2db66a.tar.xz |
Convert selection to use count instead of end index
This CL changes the Text Edit Engine code to use a count instead of an
end index for the selection range. Using count lets us differentiate a
selection at the beginning of 1 character and an empty selection.
A few new tests were added to test unicode word break behaviour, some are not
working yet and are commented out.
Change-Id: Icce8f5003102ef0a850151ccdf16d3c2226d94bf
Reviewed-on: https://pdfium-review.googlesource.com/13491
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_datetimepicker.h')
-rw-r--r-- | xfa/fwl/cfwl_datetimepicker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fwl/cfwl_datetimepicker.h b/xfa/fwl/cfwl_datetimepicker.h index 276fea451d..97c5cd196e 100644 --- a/xfa/fwl/cfwl_datetimepicker.h +++ b/xfa/fwl/cfwl_datetimepicker.h @@ -53,7 +53,7 @@ class CFWL_DateTimePicker : public CFWL_Widget { WideString GetEditText() const; bool HasSelection() const { return m_pEdit->HasSelection(); } - // Returns <start, end> indices of the selection. + // Returns <start, count> of the selection. std::pair<size_t, size_t> GetSelection() const { return m_pEdit->GetSelection(); } |