| OLD | NEW |
| 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/basewidget/fwl_datetimepickerimp.h" | 7 #include "xfa/fwl/basewidget/fwl_datetimepickerimp.h" |
| 8 | 8 |
| 9 #include "xfa/fwl/basewidget/fwl_editimp.h" | 9 #include "xfa/fwl/basewidget/fwl_editimp.h" |
| 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" | 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" |
| 11 #include "xfa/fwl/basewidget/fwl_monthcalendarimp.h" | 11 #include "xfa/fwl/basewidget/fwl_monthcalendarimp.h" |
| 12 #include "xfa/fwl/basewidget/ifwl_spinbutton.h" | 12 #include "xfa/fwl/basewidget/ifwl_spinbutton.h" |
| 13 #include "xfa/fwl/core/cfwl_message.h" | 13 #include "xfa/fwl/core/cfwl_message.h" |
| 14 #include "xfa/fwl/core/cfwl_themebackground.h" | 14 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 15 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 15 #include "xfa/fwl/core/fwl_formimp.h" | 16 #include "xfa/fwl/core/fwl_formimp.h" |
| 16 #include "xfa/fwl/core/fwl_noteimp.h" | 17 #include "xfa/fwl/core/fwl_noteimp.h" |
| 17 #include "xfa/fwl/core/fwl_widgetimp.h" | 18 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 18 #include "xfa/fwl/core/fwl_widgetmgrimp.h" | |
| 19 #include "xfa/fwl/core/ifwl_themeprovider.h" | 19 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const int kDateTimePickerWidth = 100; | 23 const int kDateTimePickerWidth = 100; |
| 24 const int kDateTimePickerHeight = 20; | 24 const int kDateTimePickerHeight = 20; |
| 25 | 25 |
| 26 } // namespace | 26 } // namespace |
| 27 | 27 |
| 28 // static | 28 // static |
| (...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 } | 1181 } |
| 1182 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { | 1182 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { |
| 1183 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get(); | 1183 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get(); |
| 1184 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL); | 1184 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL); |
| 1185 pDelegate->OnProcessMessage(pMsg); | 1185 pDelegate->OnProcessMessage(pMsg); |
| 1186 } | 1186 } |
| 1187 } | 1187 } |
| 1188 rtInvalidate.Inflate(2, 2); | 1188 rtInvalidate.Inflate(2, 2); |
| 1189 m_pOwner->Repaint(&rtInvalidate); | 1189 m_pOwner->Repaint(&rtInvalidate); |
| 1190 } | 1190 } |
| OLD | NEW |