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 #ifndef XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
9 | 9 |
| 10 #include "core/fxcrt/include/fx_coordinates.h" |
| 11 #include "core/fxcrt/include/fx_system.h" |
| 12 #include "xfa/fwl/core/cfwl_event.h" |
10 #include "xfa/fwl/core/fwl_targetimp.h" | 13 #include "xfa/fwl/core/fwl_targetimp.h" |
11 #include "xfa/include/fwl/core/fwl_widget.h" | 14 #include "xfa/fwl/core/ifwl_widgetdelegate.h" |
12 | 15 |
| 16 class CFWL_MsgKey; |
13 class CFWL_NoteThreadImp; | 17 class CFWL_NoteThreadImp; |
14 class CFWL_WidgetImpProperties; | 18 class CFWL_WidgetImpProperties; |
15 class CFWL_WidgetMgr; | 19 class CFWL_WidgetMgr; |
16 class IFWL_DataProvider; | 20 class IFWL_DataProvider; |
| 21 class IFWL_NoteThread; |
17 class IFWL_ThemeProvider; | 22 class IFWL_ThemeProvider; |
18 class IFWL_Widget; | 23 class IFWL_Widget; |
19 class IFWL_WidgetDelegate; | |
20 | 24 |
21 class CFWL_WidgetImp : public CFWL_TargetImp { | 25 class CFWL_WidgetImp : public CFWL_TargetImp { |
22 public: | 26 public: |
23 virtual FWL_ERR Initialize(); | 27 virtual FWL_ERR Initialize(); |
24 virtual FWL_ERR Finalize(); | 28 virtual FWL_ERR Finalize(); |
25 | 29 |
26 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 30 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
27 virtual FWL_ERR GetGlobalRect(CFX_RectF& rect); | 31 virtual FWL_ERR GetGlobalRect(CFX_RectF& rect); |
28 virtual FWL_ERR SetWidgetRect(const CFX_RectF& rect); | 32 virtual FWL_ERR SetWidgetRect(const CFX_RectF& rect); |
29 virtual FWL_ERR GetClientRect(CFX_RectF& rect); | 33 virtual FWL_ERR GetClientRect(CFX_RectF& rect); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 public: | 157 public: |
154 CFWL_WidgetImpDelegate(); | 158 CFWL_WidgetImpDelegate(); |
155 ~CFWL_WidgetImpDelegate() override {} | 159 ~CFWL_WidgetImpDelegate() override {} |
156 int32_t OnProcessMessage(CFWL_Message* pMessage) override; | 160 int32_t OnProcessMessage(CFWL_Message* pMessage) override; |
157 FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override; | 161 FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override; |
158 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 162 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
159 const CFX_Matrix* pMatrix = NULL) override; | 163 const CFX_Matrix* pMatrix = NULL) override; |
160 }; | 164 }; |
161 | 165 |
162 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 166 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
OLD | NEW |