Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: xfa/fwl/core/ifwl_datetimepicker.cpp

Issue 2511813002: Create CFWL_EvtEditChanged (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fwl/core/ifwl_datetimepicker.h" 7 #include "xfa/fwl/core/ifwl_datetimepicker.h"
8 8
9 #include "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fwl/core/cfwl_evteditchanged.h"
10 #include "xfa/fwl/core/cfwl_msgmouse.h" 11 #include "xfa/fwl/core/cfwl_msgmouse.h"
11 #include "xfa/fwl/core/cfwl_msgsetfocus.h" 12 #include "xfa/fwl/core/cfwl_msgsetfocus.h"
12 #include "xfa/fwl/core/cfwl_themebackground.h" 13 #include "xfa/fwl/core/cfwl_themebackground.h"
13 #include "xfa/fwl/core/cfwl_widgetmgr.h" 14 #include "xfa/fwl/core/cfwl_widgetmgr.h"
14 #include "xfa/fwl/core/fwl_noteimp.h" 15 #include "xfa/fwl/core/fwl_noteimp.h"
15 #include "xfa/fwl/core/ifwl_formproxy.h" 16 #include "xfa/fwl/core/ifwl_formproxy.h"
16 #include "xfa/fwl/core/ifwl_spinbutton.h" 17 #include "xfa/fwl/core/ifwl_spinbutton.h"
17 #include "xfa/fwl/core/ifwl_themeprovider.h" 18 #include "xfa/fwl/core/ifwl_themeprovider.h"
18 19
19 namespace { 20 namespace {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 m_iDay = iDay; 191 m_iDay = iDay;
191 m_pMonthCal->SetSelect(iYear, iMonth, iDay); 192 m_pMonthCal->SetSelect(iYear, iMonth, iDay);
192 } 193 }
193 194
194 void IFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) { 195 void IFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) {
195 if (!m_pEdit) 196 if (!m_pEdit)
196 return; 197 return;
197 198
198 m_pEdit->SetText(wsText); 199 m_pEdit->SetText(wsText);
199 Repaint(&m_rtClient); 200 Repaint(&m_rtClient);
200 CFWL_Event_DtpEditChanged ev; 201
201 ev.m_wsText = wsText; 202 CFWL_EvtEditChanged ev;
Tom Sepez 2016/11/17 17:12:58 ditto
dsinclair 2016/11/17 18:00:13 Compiles without it, so doesn't seem to be needed.
202 DispatchEvent(&ev); 203 DispatchEvent(&ev);
203 } 204 }
204 205
205 void IFWL_DateTimePicker::GetEditText(CFX_WideString& wsText, 206 void IFWL_DateTimePicker::GetEditText(CFX_WideString& wsText,
206 int32_t nStart, 207 int32_t nStart,
207 int32_t nCount) const { 208 int32_t nCount) const {
208 if (m_pEdit) 209 if (m_pEdit)
209 m_pEdit->GetText(wsText, nStart, nCount); 210 m_pEdit->GetText(wsText, nStart, nCount);
210 } 211 }
211 212
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 return m_iCurDay; 676 return m_iCurDay;
676 } 677 }
677 678
678 int32_t IFWL_DateTimePicker::GetCurMonth(IFWL_Widget* pWidget) { 679 int32_t IFWL_DateTimePicker::GetCurMonth(IFWL_Widget* pWidget) {
679 return m_iCurMonth; 680 return m_iCurMonth;
680 } 681 }
681 682
682 int32_t IFWL_DateTimePicker::GetCurYear(IFWL_Widget* pWidget) { 683 int32_t IFWL_DateTimePicker::GetCurYear(IFWL_Widget* pWidget) {
683 return m_iCurYear; 684 return m_iCurYear;
684 } 685 }
OLDNEW
« xfa/fwl/core/ifwl_combobox.cpp ('K') | « xfa/fwl/core/ifwl_datetimepicker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698