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

Side by Side Diff: xfa/fwl/core/fwl_widgetmgrimp.h

Issue 1921853006: More FWL interface cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « xfa/fwl/core/fwl_widgetimp.cpp ('k') | xfa/fwl/core/fwl_widgetmgrimp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ 7 #ifndef XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_
8 #define XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ 8 #define XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_
9 9
10 #include "core/fxcrt/include/fx_system.h"
11 #include "xfa/fwl/core/fwl_error.h"
10 #include "xfa/fwl/core/ifwl_widgetmgr.h" 12 #include "xfa/fwl/core/ifwl_widgetmgr.h"
11 #include "xfa/fwl/core/ifwl_widgetmgrdelegate.h"
12 #include "xfa/fxgraphics/include/cfx_graphics.h" 13 #include "xfa/fxgraphics/include/cfx_graphics.h"
13 14
15 #define FWL_WGTMGR_DisableThread 0x00000001
16 #define FWL_WGTMGR_DisableForm 0x00000002
17
18 class CFWL_Message;
19 class CFWL_WidgetMgrDelegate;
20 class CFX_Graphics;
21 class CFX_Matrix;
22 class IFWL_AdapterWidgetMgr;
23 class IFWL_AdapterNative;
14 class IFWL_Widget; 24 class IFWL_Widget;
15 class IFWL_AdapterWidgetMgr;
16 class CFWL_WidgetMgrDelegate;
17 class IFWL_AdapterNative;
18 25
19 class CFWL_WidgetMgrItem { 26 class CFWL_WidgetMgrItem {
20 public: 27 public:
21 CFWL_WidgetMgrItem() 28 CFWL_WidgetMgrItem()
22 : pParent(NULL), 29 : pParent(NULL),
23 pOwner(NULL), 30 pOwner(NULL),
24 pChild(NULL), 31 pChild(NULL),
25 pPrevious(NULL), 32 pPrevious(NULL),
26 pNext(NULL), 33 pNext(NULL),
27 pWidget(NULL), 34 pWidget(NULL),
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 CFX_MapPtrToPtr m_mapWidgetItem; 136 CFX_MapPtrToPtr m_mapWidgetItem;
130 IFWL_AdapterWidgetMgr* m_pAdapter; 137 IFWL_AdapterWidgetMgr* m_pAdapter;
131 CFWL_WidgetMgrDelegate* m_pDelegate; 138 CFWL_WidgetMgrDelegate* m_pDelegate;
132 friend class CFWL_WidgetMgrDelegate; 139 friend class CFWL_WidgetMgrDelegate;
133 uint32_t m_dwCapability; 140 uint32_t m_dwCapability;
134 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) 141 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_)
135 CFX_RectF m_rtScreen; 142 CFX_RectF m_rtScreen;
136 #endif 143 #endif
137 }; 144 };
138 145
139 class CFWL_WidgetMgrDelegate : public IFWL_WidgetMgrDelegate { 146 class CFWL_WidgetMgrDelegate {
140 public: 147 public:
141 CFWL_WidgetMgrDelegate(CFWL_WidgetMgr* pWidgetMgr); 148 CFWL_WidgetMgrDelegate(CFWL_WidgetMgr* pWidgetMgr);
142 ~CFWL_WidgetMgrDelegate() override {} 149 ~CFWL_WidgetMgrDelegate() {}
143 150
144 // IFWL_WidgetMgrDelegate: 151 FWL_ERR OnSetCapability(uint32_t dwCapability = FWL_WGTMGR_DisableThread);
145 FWL_ERR OnSetCapability( 152 int32_t OnProcessMessageToForm(CFWL_Message* pMessage);
146 uint32_t dwCapability = FWL_WGTMGR_DisableThread) override;
147 int32_t OnProcessMessageToForm(CFWL_Message* pMessage) override;
148 FWL_ERR OnDrawWidget(IFWL_Widget* pWidget, 153 FWL_ERR OnDrawWidget(IFWL_Widget* pWidget,
149 CFX_Graphics* pGraphics, 154 CFX_Graphics* pGraphics,
150 const CFX_Matrix* pMatrix) override; 155 const CFX_Matrix* pMatrix);
151 156
152 protected: 157 protected:
153 void DrawChild(IFWL_Widget* pParent, 158 void DrawChild(IFWL_Widget* pParent,
154 const CFX_RectF& rtClip, 159 const CFX_RectF& rtClip,
155 CFX_Graphics* pGraphics, 160 CFX_Graphics* pGraphics,
156 const CFX_Matrix* pMatrix); 161 const CFX_Matrix* pMatrix);
157 CFX_Graphics* DrawWidgetBefore(IFWL_Widget* pWidget, 162 CFX_Graphics* DrawWidgetBefore(IFWL_Widget* pWidget,
158 CFX_Graphics* pGraphics, 163 CFX_Graphics* pGraphics,
159 const CFX_Matrix* pMatrix); 164 const CFX_Matrix* pMatrix);
160 void DrawWidgetAfter(IFWL_Widget* pWidget, 165 void DrawWidgetAfter(IFWL_Widget* pWidget,
161 CFX_Graphics* pGraphics, 166 CFX_Graphics* pGraphics,
162 CFX_RectF& rtClip, 167 CFX_RectF& rtClip,
163 const CFX_Matrix* pMatrix); 168 const CFX_Matrix* pMatrix);
164 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, 169 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget,
165 CFX_Matrix* pMatrix, 170 CFX_Matrix* pMatrix,
166 const CFX_RectF& rtDirty); 171 const CFX_RectF& rtDirty);
167 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); 172 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget);
168 173
169 CFWL_WidgetMgr* m_pWidgetMgr; 174 CFWL_WidgetMgr* m_pWidgetMgr;
170 }; 175 };
171 176
172 #endif // XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ 177 #endif // XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_widgetimp.cpp ('k') | xfa/fwl/core/fwl_widgetmgrimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698