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

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

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
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_error.h ('k') | xfa/fwl/core/fwl_formimp.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_FORMIMP_H_ 7 #ifndef XFA_FWL_CORE_FWL_FORMIMP_H_
8 #define XFA_FWL_CORE_FWL_FORMIMP_H_ 8 #define XFA_FWL_CORE_FWL_FORMIMP_H_
9 9
10 #include "xfa/fwl/core/fwl_widgetimp.h" 10 #include "xfa/fwl/core/fwl_widgetimp.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 typedef struct RestoreResizeInfo { 63 typedef struct RestoreResizeInfo {
64 CFX_PointF m_ptStart; 64 CFX_PointF m_ptStart;
65 CFX_SizeF m_szStart; 65 CFX_SizeF m_szStart;
66 } RestoreInfo; 66 } RestoreInfo;
67 67
68 class CFWL_FormImp : public CFWL_WidgetImp { 68 class CFWL_FormImp : public CFWL_WidgetImp {
69 public: 69 public:
70 CFWL_FormImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); 70 CFWL_FormImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter);
71 virtual ~CFWL_FormImp(); 71 virtual ~CFWL_FormImp();
72 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; 72 virtual FWL_Error GetClassName(CFX_WideString& wsClass) const;
73 virtual uint32_t GetClassID() const; 73 virtual uint32_t GetClassID() const;
74 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; 74 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const;
75 virtual FWL_ERR Initialize(); 75 virtual FWL_Error Initialize();
76 virtual FWL_ERR Finalize(); 76 virtual FWL_Error Finalize();
77 77
78 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 78 virtual FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
79 virtual FWL_ERR GetClientRect(CFX_RectF& rect); 79 virtual FWL_Error GetClientRect(CFX_RectF& rect);
80 virtual FWL_ERR Update(); 80 virtual FWL_Error Update();
81 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 81 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
82 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, 82 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics,
83 const CFX_Matrix* pMatrix = NULL); 83 const CFX_Matrix* pMatrix = NULL);
84 virtual FWL_FORMSIZE GetFormSize(); 84 virtual FWL_FORMSIZE GetFormSize();
85 virtual FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); 85 virtual FWL_Error SetFormSize(FWL_FORMSIZE eFormSize);
86 virtual IFWL_Widget* DoModal(); 86 virtual IFWL_Widget* DoModal();
87 virtual IFWL_Widget* DoModal(uint32_t& dwCommandID); 87 virtual IFWL_Widget* DoModal(uint32_t& dwCommandID);
88 virtual FWL_ERR EndDoModal(); 88 virtual FWL_Error EndDoModal();
89 virtual FWL_ERR SetBorderRegion(CFX_Path* pPath); 89 virtual FWL_Error SetBorderRegion(CFX_Path* pPath);
90 virtual void DrawBackground(CFX_Graphics* pGraphics, 90 virtual void DrawBackground(CFX_Graphics* pGraphics,
91 IFWL_ThemeProvider* pTheme); 91 IFWL_ThemeProvider* pTheme);
92 CFWL_WidgetImp* GetSubFocus(); 92 CFWL_WidgetImp* GetSubFocus();
93 void SetSubFocus(CFWL_WidgetImp* pWidget); 93 void SetSubFocus(CFWL_WidgetImp* pWidget);
94 94
95 protected: 95 protected:
96 void ShowChildWidget(IFWL_Widget* pParent); 96 void ShowChildWidget(IFWL_Widget* pParent);
97 void RemoveSysButtons(); 97 void RemoveSysButtons();
98 void CalcContentRect(CFX_RectF& rtContent); 98 void CalcContentRect(CFX_RectF& rtContent);
99 CFWL_SysBtn* GetSysBtnAtPoint(FX_FLOAT fx, FX_FLOAT fy); 99 CFWL_SysBtn* GetSysBtnAtPoint(FX_FLOAT fx, FX_FLOAT fy);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 FX_FLOAT m_fBigIconSz; 161 FX_FLOAT m_fBigIconSz;
162 CFX_DIBitmap* m_pBigIcon; 162 CFX_DIBitmap* m_pBigIcon;
163 CFX_DIBitmap* m_pSmallIcon; 163 CFX_DIBitmap* m_pSmallIcon;
164 FX_BOOL m_bMouseIn; 164 FX_BOOL m_bMouseIn;
165 friend class CFWL_FormImpDelegate; 165 friend class CFWL_FormImpDelegate;
166 }; 166 };
167 167
168 class CFWL_FormImpDelegate : public CFWL_WidgetImpDelegate { 168 class CFWL_FormImpDelegate : public CFWL_WidgetImpDelegate {
169 public: 169 public:
170 CFWL_FormImpDelegate(CFWL_FormImp* pOwner); 170 CFWL_FormImpDelegate(CFWL_FormImp* pOwner);
171 int32_t OnProcessMessage(CFWL_Message* pMessage) override; 171 void OnProcessMessage(CFWL_Message* pMessage) override;
172 FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override; 172 void OnProcessEvent(CFWL_Event* pEvent) override;
173 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, 173 void OnDrawWidget(CFX_Graphics* pGraphics,
174 const CFX_Matrix* pMatrix = NULL) override; 174 const CFX_Matrix* pMatrix = NULL) override;
175 175
176 protected: 176 protected:
177 void OnLButtonDown(CFWL_MsgMouse* pMsg); 177 void OnLButtonDown(CFWL_MsgMouse* pMsg);
178 void OnLButtonUp(CFWL_MsgMouse* pMsg); 178 void OnLButtonUp(CFWL_MsgMouse* pMsg);
179 void OnMouseMove(CFWL_MsgMouse* pMsg); 179 void OnMouseMove(CFWL_MsgMouse* pMsg);
180 void OnMouseHover(CFWL_MsgMouse* pMsg); 180 void OnMouseHover(CFWL_MsgMouse* pMsg);
181 void OnMouseLeave(CFWL_MsgMouse* pMsg); 181 void OnMouseLeave(CFWL_MsgMouse* pMsg);
182 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); 182 void OnLButtonDblClk(CFWL_MsgMouse* pMsg);
183 void OnWindowMove(CFWL_MsgWindowMove* pMsg); 183 void OnWindowMove(CFWL_MsgWindowMove* pMsg);
184 void OnClose(CFWL_MsgClose* pMsg); 184 void OnClose(CFWL_MsgClose* pMsg);
185 CFWL_FormImp* m_pOwner; 185 CFWL_FormImp* m_pOwner;
186 }; 186 };
187 187
188 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_ 188 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_error.h ('k') | xfa/fwl/core/fwl_formimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698