From a4c7ac479d291fc3373b9c2f8f25302ecd53b0d5 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 17 Apr 2018 15:12:58 +0000 Subject: Implement FORM_GetFocusedText() API. If there is a focused form field, get its text. BUG=chromium:753216 Change-Id: I05294f14d05c1c86769055f6c9eaf9177787d9fd Reviewed-on: https://pdfium-review.googlesource.com/12072 Commit-Queue: Lei Zhang Reviewed-by: dsinclair --- xfa/fxfa/cxfa_ffcombobox.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xfa/fxfa/cxfa_ffcombobox.h') diff --git a/xfa/fxfa/cxfa_ffcombobox.h b/xfa/fxfa/cxfa_ffcombobox.h index 5daab781a6..66f92b2557 100644 --- a/xfa/fxfa/cxfa_ffcombobox.h +++ b/xfa/fxfa/cxfa_ffcombobox.h @@ -37,6 +37,7 @@ class CXFA_FFComboBox : public CXFA_FFDropDown { void SelectAll() override; void Delete() override; void DeSelect() override; + WideString GetText() override; FormFieldType GetFormFieldType() override; // IFWL_WidgetDelegate @@ -67,6 +68,8 @@ class CXFA_FFComboBox : public CXFA_FFDropDown { uint32_t GetAlignment(); void FWLEventSelChange(CXFA_EventParam* pParam); + WideString GetCurrentText() const; + WideString m_wsNewValue; IFWL_WidgetDelegate* m_pOldDelegate; }; -- cgit v1.2.3