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

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

Issue 1952693003: Convert FWL_ERR into an enum class. (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" 10 #include "core/fxcrt/include/fx_system.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 CFWL_WidgetMgr(CXFA_FFApp* pAdapterNative); 64 CFWL_WidgetMgr(CXFA_FFApp* pAdapterNative);
65 ~CFWL_WidgetMgr() override; 65 ~CFWL_WidgetMgr() override;
66 66
67 // IFWL_WidgetMgr: 67 // IFWL_WidgetMgr:
68 int32_t CountWidgets(IFWL_Widget* pParent = NULL) override; 68 int32_t CountWidgets(IFWL_Widget* pParent = NULL) override;
69 IFWL_Widget* GetWidget(int32_t nIndex, IFWL_Widget* pParent = NULL) override; 69 IFWL_Widget* GetWidget(int32_t nIndex, IFWL_Widget* pParent = NULL) override;
70 IFWL_Widget* GetWidget(IFWL_Widget* pWidget, 70 IFWL_Widget* GetWidget(IFWL_Widget* pWidget,
71 FWL_WGTRELATION eRelation) override; 71 FWL_WGTRELATION eRelation) override;
72 int32_t GetWidgetIndex(IFWL_Widget* pWidget) override; 72 int32_t GetWidgetIndex(IFWL_Widget* pWidget) override;
73 FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) override; 73 FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) override;
74 FWL_ERR RepaintWidget(IFWL_Widget* pWidget, 74 FWL_Error RepaintWidget(IFWL_Widget* pWidget,
75 const CFX_RectF* pRect = NULL) override; 75 const CFX_RectF* pRect = NULL) override;
76 uint32_t GetCapability() override { return m_dwCapability; } 76 uint32_t GetCapability() override { return m_dwCapability; }
77 77
78 void AddWidget(IFWL_Widget* pWidget); 78 void AddWidget(IFWL_Widget* pWidget);
79 void InsertWidget(IFWL_Widget* pParent, 79 void InsertWidget(IFWL_Widget* pParent,
80 IFWL_Widget* pChild, 80 IFWL_Widget* pChild,
81 int32_t nIndex = -1); 81 int32_t nIndex = -1);
82 void RemoveWidget(IFWL_Widget* pWidget); 82 void RemoveWidget(IFWL_Widget* pWidget);
83 void SetOwner(IFWL_Widget* pOwner, IFWL_Widget* pOwned); 83 void SetOwner(IFWL_Widget* pOwner, IFWL_Widget* pOwned);
84 void SetParent(IFWL_Widget* pParent, IFWL_Widget* pChild); 84 void SetParent(IFWL_Widget* pParent, IFWL_Widget* pChild);
85 FX_BOOL IsChild(IFWL_Widget* pChild, IFWL_Widget* pParent); 85 FX_BOOL IsChild(IFWL_Widget* pChild, IFWL_Widget* pParent);
86 FWL_ERR SetWidgetRect_Native(IFWL_Widget* pWidget, const CFX_RectF& rect); 86 FWL_Error SetWidgetRect_Native(IFWL_Widget* pWidget, const CFX_RectF& rect);
87 IFWL_Widget* GetWidgetAtPoint(IFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); 87 IFWL_Widget* GetWidgetAtPoint(IFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy);
88 void NotifySizeChanged(IFWL_Widget* pForm, FX_FLOAT fx, FX_FLOAT fy); 88 void NotifySizeChanged(IFWL_Widget* pForm, FX_FLOAT fx, FX_FLOAT fy);
89 IFWL_Widget* nextTab(IFWL_Widget* parent, IFWL_Widget* focus, FX_BOOL& bFind); 89 IFWL_Widget* nextTab(IFWL_Widget* parent, IFWL_Widget* focus, FX_BOOL& bFind);
90 int32_t CountRadioButtonGroup(IFWL_Widget* pFirst); 90 int32_t CountRadioButtonGroup(IFWL_Widget* pFirst);
91 IFWL_Widget* GetSiblingRadioButton(IFWL_Widget* pWidget, FX_BOOL bNext); 91 IFWL_Widget* GetSiblingRadioButton(IFWL_Widget* pWidget, FX_BOOL bNext);
92 IFWL_Widget* GetRadioButtonGroupHeader(IFWL_Widget* pRadioButton); 92 IFWL_Widget* GetRadioButtonGroupHeader(IFWL_Widget* pRadioButton);
93 void GetSameGroupRadioButton(IFWL_Widget* pRadioButton, 93 void GetSameGroupRadioButton(IFWL_Widget* pRadioButton,
94 CFX_ArrayTemplate<IFWL_Widget*>& group); 94 CFX_ArrayTemplate<IFWL_Widget*>& group);
95 IFWL_Widget* GetDefaultButton(IFWL_Widget* pParent); 95 IFWL_Widget* GetDefaultButton(IFWL_Widget* pParent);
96 void AddRedrawCounts(IFWL_Widget* pWidget); 96 void AddRedrawCounts(IFWL_Widget* pWidget);
(...skipping 23 matching lines...) Expand all
120 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) 120 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_)
121 CFX_RectF m_rtScreen; 121 CFX_RectF m_rtScreen;
122 #endif 122 #endif
123 }; 123 };
124 124
125 class CFWL_WidgetMgrDelegate { 125 class CFWL_WidgetMgrDelegate {
126 public: 126 public:
127 CFWL_WidgetMgrDelegate(CFWL_WidgetMgr* pWidgetMgr); 127 CFWL_WidgetMgrDelegate(CFWL_WidgetMgr* pWidgetMgr);
128 ~CFWL_WidgetMgrDelegate() {} 128 ~CFWL_WidgetMgrDelegate() {}
129 129
130 FWL_ERR OnSetCapability(uint32_t dwCapability = FWL_WGTMGR_DisableThread); 130 FWL_Error OnSetCapability(uint32_t dwCapability = FWL_WGTMGR_DisableThread);
131 int32_t OnProcessMessageToForm(CFWL_Message* pMessage); 131 void OnProcessMessageToForm(CFWL_Message* pMessage);
132 FWL_ERR OnDrawWidget(IFWL_Widget* pWidget, 132 void OnDrawWidget(IFWL_Widget* pWidget,
133 CFX_Graphics* pGraphics, 133 CFX_Graphics* pGraphics,
134 const CFX_Matrix* pMatrix); 134 const CFX_Matrix* pMatrix);
135 135
136 protected: 136 protected:
137 void DrawChild(IFWL_Widget* pParent, 137 void DrawChild(IFWL_Widget* pParent,
138 const CFX_RectF& rtClip, 138 const CFX_RectF& rtClip,
139 CFX_Graphics* pGraphics, 139 CFX_Graphics* pGraphics,
140 const CFX_Matrix* pMatrix); 140 const CFX_Matrix* pMatrix);
141 CFX_Graphics* DrawWidgetBefore(IFWL_Widget* pWidget, 141 CFX_Graphics* DrawWidgetBefore(IFWL_Widget* pWidget,
142 CFX_Graphics* pGraphics, 142 CFX_Graphics* pGraphics,
143 const CFX_Matrix* pMatrix); 143 const CFX_Matrix* pMatrix);
144 void DrawWidgetAfter(IFWL_Widget* pWidget, 144 void DrawWidgetAfter(IFWL_Widget* pWidget,
145 CFX_Graphics* pGraphics, 145 CFX_Graphics* pGraphics,
146 CFX_RectF& rtClip, 146 CFX_RectF& rtClip,
147 const CFX_Matrix* pMatrix); 147 const CFX_Matrix* pMatrix);
148 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, 148 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget,
149 CFX_Matrix* pMatrix, 149 CFX_Matrix* pMatrix,
150 const CFX_RectF& rtDirty); 150 const CFX_RectF& rtDirty);
151 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); 151 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget);
152 152
153 CFWL_WidgetMgr* m_pWidgetMgr; 153 CFWL_WidgetMgr* m_pWidgetMgr;
154 }; 154 };
155 155
156 #endif // XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ 156 #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