From dce2d72f9fbc166ee8eed0e362ab26e1e1a33cdd Mon Sep 17 00:00:00 2001 From: Diana Gage Date: Tue, 20 Jun 2017 11:17:11 -0700 Subject: Add FORM_GetSelectedText() function. This function copies the selected text from a form text field or form combobox text field into the buffer parameter and returns the length of the selected text string. When buffer is a nullptr or buflen is less than the length of the selected text, this function does not modify the buffer and only returns the selected text length. BUG=chromium:59266 Change-Id: Ie77de38e45bbe6f9ea033826c961435304eedfc7 Reviewed-on: https://pdfium-review.googlesource.com/6413 Reviewed-by: dsinclair Reviewed-by: Lei Zhang Commit-Queue: Lei Zhang --- fpdfsdk/cpdfsdk_baannothandler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fpdfsdk/cpdfsdk_baannothandler.h') diff --git a/fpdfsdk/cpdfsdk_baannothandler.h b/fpdfsdk/cpdfsdk_baannothandler.h index d5f170f452..2af2f3ee99 100644 --- a/fpdfsdk/cpdfsdk_baannothandler.h +++ b/fpdfsdk/cpdfsdk_baannothandler.h @@ -37,6 +37,7 @@ class CPDFSDK_BAAnnotHandler : public IPDFSDK_AnnotHandler { void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot) override; + CFX_WideString GetSelectedText(CPDFSDK_Annot* pAnnot) override; bool HitTest(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, const CFX_PointF& point) override; -- cgit v1.2.3