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_CFWL_WIDGETMGR_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
8 #define XFA_FWL_CORE_CFWL_WIDGETMGR_H_ | 8 #define XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "core/fxcrt/include/fx_system.h" | 13 #include "core/fxcrt/include/fx_system.h" |
14 #include "xfa/fwl/core/fwl_error.h" | 14 #include "xfa/fwl/core/fwl_error.h" |
15 #include "xfa/fxgraphics/include/cfx_graphics.h" | 15 #include "xfa/fxgraphics/include/cfx_graphics.h" |
16 | 16 |
17 #define FWL_WGTMGR_DisableThread 0x00000001 | 17 #define FWL_WGTMGR_DisableThread 0x00000001 |
18 #define FWL_WGTMGR_DisableForm 0x00000002 | 18 #define FWL_WGTMGR_DisableForm 0x00000002 |
19 | 19 |
20 class CFWL_Message; | 20 class CFWL_Message; |
21 class CFWL_WidgetMgrDelegate; | 21 class CFWL_WidgetMgrDelegate; |
22 class CXFA_FFApp; | 22 class CXFA_FFApp; |
23 class CXFA_FWLAdapterWidgetMgr; | 23 class CXFA_FWLAdapterWidgetMgr; |
24 class CFX_Graphics; | 24 class CFX_Graphics; |
25 class CFX_Matrix; | 25 class CFX_Matrix; |
26 class IFWL_Widget; | 26 class IFWL_Widget; |
27 | 27 |
28 class CFWL_WidgetMgrItem { | 28 class CFWL_WidgetMgrItem { |
29 public: | 29 public: |
30 CFWL_WidgetMgrItem() : CFWL_WidgetMgrItem(nullptr) {} | 30 CFWL_WidgetMgrItem(); |
31 explicit CFWL_WidgetMgrItem(IFWL_Widget* widget) | 31 explicit CFWL_WidgetMgrItem(IFWL_Widget* widget); |
32 : pParent(nullptr), | 32 ~CFWL_WidgetMgrItem(); |
33 pOwner(nullptr), | |
34 pChild(nullptr), | |
35 pPrevious(nullptr), | |
36 pNext(nullptr), | |
37 pWidget(widget), | |
38 iRedrawCounter(0) | |
39 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | |
40 , | |
41 bOutsideChanged(FALSE) | |
42 #endif | |
43 { | |
44 } | |
45 ~CFWL_WidgetMgrItem() {} | |
46 | 33 |
47 CFWL_WidgetMgrItem* pParent; | 34 CFWL_WidgetMgrItem* pParent; |
48 CFWL_WidgetMgrItem* pOwner; | 35 CFWL_WidgetMgrItem* pOwner; |
49 CFWL_WidgetMgrItem* pChild; | 36 CFWL_WidgetMgrItem* pChild; |
50 CFWL_WidgetMgrItem* pPrevious; | 37 CFWL_WidgetMgrItem* pPrevious; |
51 CFWL_WidgetMgrItem* pNext; | 38 CFWL_WidgetMgrItem* pNext; |
52 IFWL_Widget* const pWidget; | 39 IFWL_Widget* const pWidget; |
53 std::unique_ptr<CFX_Graphics> pOffscreen; | 40 std::unique_ptr<CFX_Graphics> pOffscreen; |
54 int32_t iRedrawCounter; | 41 int32_t iRedrawCounter; |
55 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 42 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 const CFX_Matrix* pMatrix); | 137 const CFX_Matrix* pMatrix); |
151 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, | 138 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, |
152 CFX_Matrix* pMatrix, | 139 CFX_Matrix* pMatrix, |
153 const CFX_RectF& rtDirty); | 140 const CFX_RectF& rtDirty); |
154 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); | 141 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); |
155 | 142 |
156 CFWL_WidgetMgr* m_pWidgetMgr; | 143 CFWL_WidgetMgr* m_pWidgetMgr; |
157 }; | 144 }; |
158 | 145 |
159 #endif // XFA_FWL_CORE_CFWL_WIDGETMGR_H_ | 146 #endif // XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
OLD | NEW |