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_editimp.h" | 7 #include "xfa/fwl/basewidget/fwl_editimp.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "xfa/fde/fde_gedevice.h" | 12 #include "xfa/fde/fde_gedevice.h" |
13 #include "xfa/fde/fde_render.h" | 13 #include "xfa/fde/fde_render.h" |
14 #include "xfa/fee/ifde_txtedtpage.h" | 14 #include "xfa/fee/ifde_txtedtpage.h" |
15 #include "xfa/fwl/basewidget/fwl_caretimp.h" | 15 #include "xfa/fwl/basewidget/fwl_caretimp.h" |
16 #include "xfa/fwl/basewidget/fwl_comboboximp.h" | 16 #include "xfa/fwl/basewidget/fwl_comboboximp.h" |
17 #include "xfa/fwl/basewidget/fwl_scrollbarimp.h" | 17 #include "xfa/fwl/basewidget/fwl_scrollbarimp.h" |
18 #include "xfa/fwl/basewidget/ifwl_caret.h" | 18 #include "xfa/fwl/basewidget/ifwl_caret.h" |
19 #include "xfa/fwl/basewidget/ifwl_datetimepicker.h" | 19 #include "xfa/fwl/basewidget/ifwl_datetimepicker.h" |
20 #include "xfa/fwl/core/cfwl_message.h" | 20 #include "xfa/fwl/core/cfwl_message.h" |
21 #include "xfa/fwl/core/cfwl_themebackground.h" | 21 #include "xfa/fwl/core/cfwl_themebackground.h" |
22 #include "xfa/fwl/core/cfwl_themepart.h" | 22 #include "xfa/fwl/core/cfwl_themepart.h" |
23 #include "xfa/fwl/core/fwl_appimp.h" | 23 #include "xfa/fwl/core/fwl_appimp.h" |
24 #include "xfa/fwl/core/fwl_noteimp.h" | 24 #include "xfa/fwl/core/fwl_noteimp.h" |
25 #include "xfa/fwl/core/fwl_targetimp.h" | |
26 #include "xfa/fwl/core/fwl_threadimp.h" | |
27 #include "xfa/fwl/core/fwl_widgetimp.h" | 25 #include "xfa/fwl/core/fwl_widgetimp.h" |
28 #include "xfa/fwl/core/fwl_widgetmgrimp.h" | 26 #include "xfa/fwl/core/fwl_widgetmgrimp.h" |
29 #include "xfa/fwl/core/ifwl_themeprovider.h" | 27 #include "xfa/fwl/core/ifwl_themeprovider.h" |
30 #include "xfa/fxfa/include/xfa_ffdoc.h" | 28 #include "xfa/fxfa/include/xfa_ffdoc.h" |
31 #include "xfa/fxfa/include/xfa_ffwidget.h" | 29 #include "xfa/fxfa/include/xfa_ffwidget.h" |
32 #include "xfa/fxgraphics/cfx_path.h" | 30 #include "xfa/fxgraphics/cfx_path.h" |
33 | 31 |
34 // static | 32 // static |
35 IFWL_Edit* IFWL_Edit::Create(const CFWL_WidgetImpProperties& properties, | 33 IFWL_Edit* IFWL_Edit::Create(const CFWL_WidgetImpProperties& properties, |
36 IFWL_Widget* pOuter) { | 34 IFWL_Widget* pOuter) { |
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 } | 2171 } |
2174 CFX_RectF rect; | 2172 CFX_RectF rect; |
2175 m_pOwner->GetWidgetRect(rect); | 2173 m_pOwner->GetWidgetRect(rect); |
2176 CFX_RectF rtInvalidate; | 2174 CFX_RectF rtInvalidate; |
2177 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); | 2175 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); |
2178 m_pOwner->Repaint(&rtInvalidate); | 2176 m_pOwner->Repaint(&rtInvalidate); |
2179 } | 2177 } |
2180 return TRUE; | 2178 return TRUE; |
2181 } | 2179 } |
2182 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} | 2180 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} |
OLD | NEW |