summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_datetimepicker.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-17 10:32:52 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-17 10:32:52 -0800
commitb977720aa7f159ae2c1e9d9b3af1adecff730545 (patch)
treea16a1ece85b3d5276a7257016302ad27564143da /xfa/fwl/core/ifwl_datetimepicker.cpp
parent28f9b62c397c4f3f8dc0cba69ce1cb8c02f81e76 (diff)
downloadpdfium-b977720aa7f159ae2c1e9d9b3af1adecff730545.tar.xz
Create CFWL_EvtEditChanged
This CL creates a generic event for CFWL_EventType::EditChanged and uses it in the ComboBox and DateTimePicker. None of the params from the custom events were used so they have been removed. Review-Url: https://codereview.chromium.org/2511813002
Diffstat (limited to 'xfa/fwl/core/ifwl_datetimepicker.cpp')
-rw-r--r--xfa/fwl/core/ifwl_datetimepicker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fwl/core/ifwl_datetimepicker.cpp b/xfa/fwl/core/ifwl_datetimepicker.cpp
index 074065b1e2..1e35eee55b 100644
--- a/xfa/fwl/core/ifwl_datetimepicker.cpp
+++ b/xfa/fwl/core/ifwl_datetimepicker.cpp
@@ -7,6 +7,7 @@
#include "xfa/fwl/core/ifwl_datetimepicker.h"
#include "third_party/base/ptr_util.h"
+#include "xfa/fwl/core/cfwl_evteditchanged.h"
#include "xfa/fwl/core/cfwl_msgmouse.h"
#include "xfa/fwl/core/cfwl_msgsetfocus.h"
#include "xfa/fwl/core/cfwl_themebackground.h"
@@ -197,8 +198,8 @@ void IFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) {
m_pEdit->SetText(wsText);
Repaint(&m_rtClient);
- CFWL_Event_DtpEditChanged ev;
- ev.m_wsText = wsText;
+
+ CFWL_EvtEditChanged ev;
DispatchEvent(&ev);
}