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

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

Issue 2207093005: Use smart pointers for class owned pointers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: one more change Created 4 years, 4 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 <memory>
11
10 #include "core/fxcrt/include/fx_coordinates.h" 12 #include "core/fxcrt/include/fx_coordinates.h"
11 #include "core/fxcrt/include/fx_system.h" 13 #include "core/fxcrt/include/fx_system.h"
12 #include "xfa/fwl/core/cfwl_event.h" 14 #include "xfa/fwl/core/cfwl_event.h"
13 #include "xfa/fwl/core/cfwl_themepart.h" 15 #include "xfa/fwl/core/cfwl_themepart.h"
14 #include "xfa/fwl/core/ifwl_widgetdelegate.h" 16 #include "xfa/fwl/core/ifwl_widgetdelegate.h"
15 #include "xfa/fwl/core/include/fwl_widgethit.h" 17 #include "xfa/fwl/core/include/fwl_widgethit.h"
16 #include "xfa/fwl/theme/cfwl_widgettp.h" 18 #include "xfa/fwl/theme/cfwl_widgettp.h"
17 19
18 class CFWL_AppImp; 20 class CFWL_AppImp;
19 class CFWL_MsgKey; 21 class CFWL_MsgKey;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 IFWL_ThemeProvider* pTheme, 149 IFWL_ThemeProvider* pTheme,
148 const CFX_Matrix* pMatrix = nullptr); 150 const CFX_Matrix* pMatrix = nullptr);
149 void DrawEdge(CFX_Graphics* pGraphics, 151 void DrawEdge(CFX_Graphics* pGraphics,
150 CFWL_Part iPartEdge, 152 CFWL_Part iPartEdge,
151 IFWL_ThemeProvider* pTheme, 153 IFWL_ThemeProvider* pTheme,
152 const CFX_Matrix* pMatrix = nullptr); 154 const CFX_Matrix* pMatrix = nullptr);
153 void NotifyDriver(); 155 void NotifyDriver();
154 156
155 FX_BOOL IsParent(IFWL_Widget* pParent); 157 FX_BOOL IsParent(IFWL_Widget* pParent);
156 158
157 CFWL_WidgetMgr* m_pWidgetMgr; 159 CFWL_WidgetMgr* const m_pWidgetMgr;
158 CFWL_AppImp* m_pOwnerApp; 160 CFWL_AppImp* m_pOwnerApp;
159 CFWL_WidgetImpProperties* m_pProperties; 161 std::unique_ptr<CFWL_WidgetImpProperties> m_pProperties;
160 IFWL_WidgetDelegate* m_pDelegate; 162 IFWL_WidgetDelegate* m_pDelegate;
161 IFWL_WidgetDelegate* m_pCurDelegate; 163 IFWL_WidgetDelegate* m_pCurDelegate;
162 IFWL_Widget* m_pOuter; 164 IFWL_Widget* m_pOuter;
163 IFWL_Widget* m_pInterface; 165 IFWL_Widget* m_pInterface;
164 void* m_pLayoutItem; 166 void* m_pLayoutItem;
165 void* m_pAssociate; 167 void* m_pAssociate;
166 int32_t m_iLock; 168 int32_t m_iLock;
167 uint32_t m_nEventKey; 169 uint32_t m_nEventKey;
168 }; 170 };
169 171
170 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate { 172 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate {
171 public: 173 public:
172 CFWL_WidgetImpDelegate(); 174 CFWL_WidgetImpDelegate();
173 ~CFWL_WidgetImpDelegate() override {} 175 ~CFWL_WidgetImpDelegate() override {}
174 void OnProcessMessage(CFWL_Message* pMessage) override; 176 void OnProcessMessage(CFWL_Message* pMessage) override;
175 void OnProcessEvent(CFWL_Event* pEvent) override; 177 void OnProcessEvent(CFWL_Event* pEvent) override;
176 void OnDrawWidget(CFX_Graphics* pGraphics, 178 void OnDrawWidget(CFX_Graphics* pGraphics,
177 const CFX_Matrix* pMatrix = nullptr) override; 179 const CFX_Matrix* pMatrix = nullptr) override;
178 }; 180 };
179 181
180 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ 182 #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