summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_eventparam.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-05-25 16:18:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-25 16:18:40 +0000
commitcbf1550e48e300142a53f635daba3c1d8910add9 (patch)
tree71dca5ce8b3b5ac8a9f8ed6930601f3f0a272e0b /xfa/fxfa/cxfa_eventparam.h
parent4ba76201df61467928bba429ea1d8115e292072e (diff)
downloadpdfium-cbf1550e48e300142a53f635daba3c1d8910add9.tar.xz
[xfa] Generate CXFA_EventParam.newText dynamically
When an xfa.event is sent it is possible to change the selStart, selEnd and change values of the event. This should cause the value of newText to be changed as needed. This CL removes m_wsNewText from CXFA_EventParam and instead generates the new text based on the previous text, the selection and the change. Bug: 1066 Change-Id: I35d126fad9771c8980654a8af64d2b98989bff3f Reviewed-on: https://pdfium-review.googlesource.com/32970 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_eventparam.h')
-rw-r--r--xfa/fxfa/cxfa_eventparam.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_eventparam.h b/xfa/fxfa/cxfa_eventparam.h
index 210eeb515a..3fc5780008 100644
--- a/xfa/fxfa/cxfa_eventparam.h
+++ b/xfa/fxfa/cxfa_eventparam.h
@@ -67,12 +67,13 @@ class CXFA_EventParam {
WideString m_wsChange;
WideString m_wsFullText;
WideString m_wsNewContentType;
- WideString m_wsNewText;
WideString m_wsPrevContentType;
WideString m_wsPrevText;
WideString m_wsSoapFaultCode;
WideString m_wsSoapFaultString;
bool m_bIsFormReady;
+
+ WideString GetNewText() const;
};
#endif // XFA_FXFA_CXFA_EVENTPARAM_H_