From 6af5369477ec05554ef9e73ae6762860095f09e9 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 29 May 2018 19:42:39 +0000 Subject: [xfa] Propagate the xfa change data for text to JS and back. This CL adds the necessary plumbing to propagate the change information for a text widget from FWL out to JS and handle the returned value as necessary. Bug: pdfium:1066 Change-Id: I78fd81761b90294f1836e9f09dba12ed238963cc Reviewed-on: https://pdfium-review.googlesource.com/33070 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/cxfa_fftextedit.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa/cxfa_fftextedit.h') diff --git a/xfa/fxfa/cxfa_fftextedit.h b/xfa/fxfa/cxfa_fftextedit.h index 7c19444ae6..9b61373df9 100644 --- a/xfa/fxfa/cxfa_fftextedit.h +++ b/xfa/fxfa/cxfa_fftextedit.h @@ -12,6 +12,7 @@ #include "xfa/fxfa/cxfa_fffield.h" class CFWL_Event; +class CFWL_EventTextWillChange; class CFWL_Widget; class CFX_Matrix; class CXFA_FFWidget; @@ -38,9 +39,7 @@ class CXFA_FFTextEdit : public CXFA_FFField { void OnDrawWidget(CXFA_Graphics* pGraphics, const CFX_Matrix& matrix) override; - void OnTextChanged(CFWL_Widget* pWidget, - const WideString& wsChanged, - const WideString& wsPrevText); + void OnTextWillChange(CFWL_Widget* pWidget, CFWL_EventTextWillChange* change); void OnTextFull(CFWL_Widget* pWidget); // CXFA_FFWidget -- cgit v1.2.3