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

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

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 6 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_noteimp.cpp ('k') | xfa/fwl/core/fwl_widgetimp.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_WIDGETIMP_H_ 7 #ifndef XFA_FWL_CORE_FWL_WIDGETIMP_H_
8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual FWL_Error LockUpdate(); 56 virtual FWL_Error LockUpdate();
57 virtual FWL_Error UnlockUpdate(); 57 virtual FWL_Error UnlockUpdate();
58 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 58 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
59 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, 59 virtual FWL_Error TransformTo(IFWL_Widget* pWidget,
60 FX_FLOAT& fx, 60 FX_FLOAT& fx,
61 FX_FLOAT& fy); 61 FX_FLOAT& fy);
62 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); 62 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt);
63 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); 63 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE);
64 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix); 64 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix);
65 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, 65 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics,
66 const CFX_Matrix* pMatrix = NULL); 66 const CFX_Matrix* pMatrix = nullptr);
67 virtual IFWL_ThemeProvider* GetThemeProvider(); 67 virtual IFWL_ThemeProvider* GetThemeProvider();
68 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); 68 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
69 virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider); 69 virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider);
70 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); 70 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate);
71 virtual IFWL_App* GetOwnerApp() const; 71 virtual IFWL_App* GetOwnerApp() const;
72 72
73 FWL_Error SetOwnerApp(CFWL_AppImp* pOwnerApp); 73 FWL_Error SetOwnerApp(CFWL_AppImp* pOwnerApp);
74 IFWL_Widget* GetInterface() const; 74 IFWL_Widget* GetInterface() const;
75 void SetInterface(IFWL_Widget* pInterface); 75 void SetInterface(IFWL_Widget* pInterface);
76 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); 76 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 CFX_RectF& rtPopup); 125 CFX_RectF& rtPopup);
126 FX_BOOL GetPopupPosComboBox(FX_FLOAT fMinHeight, 126 FX_BOOL GetPopupPosComboBox(FX_FLOAT fMinHeight,
127 FX_FLOAT fMaxHeight, 127 FX_FLOAT fMaxHeight,
128 const CFX_RectF& rtAnchor, 128 const CFX_RectF& rtAnchor,
129 CFX_RectF& rtPopup); 129 CFX_RectF& rtPopup);
130 FX_BOOL GetPopupPosGeneral(FX_FLOAT fMinHeight, 130 FX_BOOL GetPopupPosGeneral(FX_FLOAT fMinHeight,
131 FX_FLOAT fMaxHeight, 131 FX_FLOAT fMaxHeight,
132 const CFX_RectF& rtAnchor, 132 const CFX_RectF& rtAnchor,
133 CFX_RectF& rtPopup); 133 CFX_RectF& rtPopup);
134 FX_BOOL GetScreenSize(FX_FLOAT& fx, FX_FLOAT& fy); 134 FX_BOOL GetScreenSize(FX_FLOAT& fx, FX_FLOAT& fy);
135 void RegisterEventTarget(IFWL_Widget* pEventSource = NULL, 135 void RegisterEventTarget(IFWL_Widget* pEventSource = nullptr,
136 uint32_t dwFilter = FWL_EVENT_ALL_MASK); 136 uint32_t dwFilter = FWL_EVENT_ALL_MASK);
137 void UnregisterEventTarget(); 137 void UnregisterEventTarget();
138 void DispatchKeyEvent(CFWL_MsgKey* pNote); 138 void DispatchKeyEvent(CFWL_MsgKey* pNote);
139 void DispatchEvent(CFWL_Event* pEvent); 139 void DispatchEvent(CFWL_Event* pEvent);
140 void Repaint(const CFX_RectF* pRect = NULL); 140 void Repaint(const CFX_RectF* pRect = nullptr);
141 void DrawBackground(CFX_Graphics* pGraphics, 141 void DrawBackground(CFX_Graphics* pGraphics,
142 CFWL_Part iPartBk, 142 CFWL_Part iPartBk,
143 IFWL_ThemeProvider* pTheme, 143 IFWL_ThemeProvider* pTheme,
144 const CFX_Matrix* pMatrix = NULL); 144 const CFX_Matrix* pMatrix = nullptr);
145 void DrawBorder(CFX_Graphics* pGraphics, 145 void DrawBorder(CFX_Graphics* pGraphics,
146 CFWL_Part iPartBorder, 146 CFWL_Part iPartBorder,
147 IFWL_ThemeProvider* pTheme, 147 IFWL_ThemeProvider* pTheme,
148 const CFX_Matrix* pMatrix = NULL); 148 const CFX_Matrix* pMatrix = nullptr);
149 void DrawEdge(CFX_Graphics* pGraphics, 149 void DrawEdge(CFX_Graphics* pGraphics,
150 CFWL_Part iPartEdge, 150 CFWL_Part iPartEdge,
151 IFWL_ThemeProvider* pTheme, 151 IFWL_ThemeProvider* pTheme,
152 const CFX_Matrix* pMatrix = NULL); 152 const CFX_Matrix* pMatrix = nullptr);
153 void NotifyDriver(); 153 void NotifyDriver();
154 154
155 FX_BOOL IsParent(IFWL_Widget* pParent); 155 FX_BOOL IsParent(IFWL_Widget* pParent);
156 156
157 CFWL_WidgetMgr* m_pWidgetMgr; 157 CFWL_WidgetMgr* m_pWidgetMgr;
158 CFWL_AppImp* m_pOwnerApp; 158 CFWL_AppImp* m_pOwnerApp;
159 CFWL_WidgetImpProperties* m_pProperties; 159 CFWL_WidgetImpProperties* m_pProperties;
160 IFWL_WidgetDelegate* m_pDelegate; 160 IFWL_WidgetDelegate* m_pDelegate;
161 IFWL_WidgetDelegate* m_pCurDelegate; 161 IFWL_WidgetDelegate* m_pCurDelegate;
162 IFWL_Widget* m_pOuter; 162 IFWL_Widget* m_pOuter;
163 IFWL_Widget* m_pInterface; 163 IFWL_Widget* m_pInterface;
164 void* m_pLayoutItem; 164 void* m_pLayoutItem;
165 void* m_pAssociate; 165 void* m_pAssociate;
166 int32_t m_iLock; 166 int32_t m_iLock;
167 uint32_t m_nEventKey; 167 uint32_t m_nEventKey;
168 }; 168 };
169 169
170 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate { 170 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate {
171 public: 171 public:
172 CFWL_WidgetImpDelegate(); 172 CFWL_WidgetImpDelegate();
173 ~CFWL_WidgetImpDelegate() override {} 173 ~CFWL_WidgetImpDelegate() override {}
174 void OnProcessMessage(CFWL_Message* pMessage) override; 174 void OnProcessMessage(CFWL_Message* pMessage) override;
175 void OnProcessEvent(CFWL_Event* pEvent) override; 175 void OnProcessEvent(CFWL_Event* pEvent) override;
176 void OnDrawWidget(CFX_Graphics* pGraphics, 176 void OnDrawWidget(CFX_Graphics* pGraphics,
177 const CFX_Matrix* pMatrix = NULL) override; 177 const CFX_Matrix* pMatrix = nullptr) override;
178 }; 178 };
179 179
180 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ 180 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_noteimp.cpp ('k') | xfa/fwl/core/fwl_widgetimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698