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

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

Issue 2435603003: Cleanup unused methods and return values in FWL code. (Closed)
Patch Set: Fix typo Created 4 years, 2 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/ifwl_edit.cpp ('k') | xfa/fwl/core/ifwl_form.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_IFWL_FORM_H_ 7 #ifndef XFA_FWL_CORE_IFWL_FORM_H_
8 #define XFA_FWL_CORE_IFWL_FORM_H_ 8 #define XFA_FWL_CORE_IFWL_FORM_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 public: 82 public:
83 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; 83 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0;
84 }; 84 };
85 85
86 class IFWL_Form : public IFWL_Widget { 86 class IFWL_Form : public IFWL_Widget {
87 public: 87 public:
88 IFWL_Form(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); 88 IFWL_Form(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter);
89 ~IFWL_Form() override; 89 ~IFWL_Form() override;
90 90
91 // IFWL_Widget 91 // IFWL_Widget
92 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
93 FWL_Type GetClassID() const override; 92 FWL_Type GetClassID() const override;
94 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; 93 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override;
95 FWL_Error Initialize() override; 94 FWL_Error Initialize() override;
96 FWL_Error Finalize() override; 95 void Finalize() override;
97 96
98 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 97 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
99 FWL_Error GetClientRect(CFX_RectF& rect) override; 98 FWL_Error GetClientRect(CFX_RectF& rect) override;
100 FWL_Error Update() override; 99 FWL_Error Update() override;
101 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 100 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
102 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 101 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
103 const CFX_Matrix* pMatrix = nullptr) override; 102 const CFX_Matrix* pMatrix = nullptr) override;
104 103
105 FWL_FORMSIZE GetFormSize(); 104 FWL_FORMSIZE GetFormSize();
106 FWL_Error SetFormSize(FWL_FORMSIZE eFormSize); 105 FWL_Error SetFormSize(FWL_FORMSIZE eFormSize);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 IFWL_Widget* m_pSubFocus; 168 IFWL_Widget* m_pSubFocus;
170 RestoreInfo m_InfoStart; 169 RestoreInfo m_InfoStart;
171 FX_FLOAT m_fCXBorder; 170 FX_FLOAT m_fCXBorder;
172 FX_FLOAT m_fCYBorder; 171 FX_FLOAT m_fCYBorder;
173 int32_t m_iCaptureBtn; 172 int32_t m_iCaptureBtn;
174 int32_t m_iSysBox; 173 int32_t m_iSysBox;
175 int32_t m_eResizeType; 174 int32_t m_eResizeType;
176 FX_BOOL m_bLButtonDown; 175 FX_BOOL m_bLButtonDown;
177 bool m_bMaximized; 176 bool m_bMaximized;
178 FX_BOOL m_bSetMaximize; 177 FX_BOOL m_bSetMaximize;
179 FX_BOOL m_bCustomizeLayout; 178 bool m_bCustomizeLayout;
180 FWL_FORMSIZE m_eFormSize; 179 FWL_FORMSIZE m_eFormSize;
181 FX_BOOL m_bDoModalFlag; 180 FX_BOOL m_bDoModalFlag;
182 FX_FLOAT m_fSmallIconSz; 181 FX_FLOAT m_fSmallIconSz;
183 FX_FLOAT m_fBigIconSz; 182 FX_FLOAT m_fBigIconSz;
184 CFX_DIBitmap* m_pBigIcon; 183 CFX_DIBitmap* m_pBigIcon;
185 CFX_DIBitmap* m_pSmallIcon; 184 CFX_DIBitmap* m_pSmallIcon;
186 FX_BOOL m_bMouseIn; 185 FX_BOOL m_bMouseIn;
187 }; 186 };
188 187
189 class CFWL_FormImpDelegate : public CFWL_WidgetImpDelegate { 188 class CFWL_FormImpDelegate : public CFWL_WidgetImpDelegate {
(...skipping 10 matching lines...) Expand all
200 void OnMouseMove(CFWL_MsgMouse* pMsg); 199 void OnMouseMove(CFWL_MsgMouse* pMsg);
201 void OnMouseHover(CFWL_MsgMouse* pMsg); 200 void OnMouseHover(CFWL_MsgMouse* pMsg);
202 void OnMouseLeave(CFWL_MsgMouse* pMsg); 201 void OnMouseLeave(CFWL_MsgMouse* pMsg);
203 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); 202 void OnLButtonDblClk(CFWL_MsgMouse* pMsg);
204 void OnWindowMove(CFWL_MsgWindowMove* pMsg); 203 void OnWindowMove(CFWL_MsgWindowMove* pMsg);
205 void OnClose(CFWL_MsgClose* pMsg); 204 void OnClose(CFWL_MsgClose* pMsg);
206 IFWL_Form* m_pOwner; 205 IFWL_Form* m_pOwner;
207 }; 206 };
208 207
209 #endif // XFA_FWL_CORE_IFWL_FORM_H_ 208 #endif // XFA_FWL_CORE_IFWL_FORM_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_edit.cpp ('k') | xfa/fwl/core/ifwl_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698