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

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

Issue 2207093005: Use smart pointers for class owned pointers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: small fix 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
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 <memory>
11
10 #include "xfa/fwl/core/fwl_widgetimp.h" 12 #include "xfa/fwl/core/fwl_widgetimp.h"
11 #include "xfa/fwl/core/ifwl_form.h" 13 #include "xfa/fwl/core/ifwl_form.h"
12 14
13 class CFWL_MsgMouse; 15 class CFWL_MsgMouse;
14 class CFWL_MsgClose; 16 class CFWL_MsgClose;
15 class CFWL_MsgWindowMove; 17 class CFWL_MsgWindowMove;
16 class CFWL_NoteLoop; 18 class CFWL_NoteLoop;
17 class CFWL_WidgetImpProperties; 19 class CFWL_WidgetImpProperties;
18 class IFWL_Widget; 20 class IFWL_Widget;
19 class IFWL_ThemeProvider; 21 class IFWL_ThemeProvider;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 129
128 CFX_RectF m_rtRestore; 130 CFX_RectF m_rtRestore;
129 CFX_RectF m_rtCaptionText; 131 CFX_RectF m_rtCaptionText;
130 CFX_RectF m_rtRelative; 132 CFX_RectF m_rtRelative;
131 CFX_RectF m_rtCaption; 133 CFX_RectF m_rtCaption;
132 CFX_RectF m_rtIcon; 134 CFX_RectF m_rtIcon;
133 CFWL_SysBtn* m_pCloseBox; 135 CFWL_SysBtn* m_pCloseBox;
134 CFWL_SysBtn* m_pMinBox; 136 CFWL_SysBtn* m_pMinBox;
135 CFWL_SysBtn* m_pMaxBox; 137 CFWL_SysBtn* m_pMaxBox;
136 CFWL_SysBtn* m_pCaptionBox; 138 CFWL_SysBtn* m_pCaptionBox;
137 CFWL_NoteLoop* m_pNoteLoop; 139 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop;
138 CFWL_WidgetImp* m_pSubFocus; 140 CFWL_WidgetImp* m_pSubFocus;
139 RestoreInfo m_InfoStart; 141 RestoreInfo m_InfoStart;
140 FX_FLOAT m_fCXBorder; 142 FX_FLOAT m_fCXBorder;
141 FX_FLOAT m_fCYBorder; 143 FX_FLOAT m_fCYBorder;
142 int32_t m_iCaptureBtn; 144 int32_t m_iCaptureBtn;
143 int32_t m_iSysBox; 145 int32_t m_iSysBox;
144 int32_t m_eResizeType; 146 int32_t m_eResizeType;
145 FX_BOOL m_bLButtonDown; 147 FX_BOOL m_bLButtonDown;
146 bool m_bMaximized; 148 bool m_bMaximized;
147 FX_BOOL m_bSetMaximize; 149 FX_BOOL m_bSetMaximize;
(...skipping 22 matching lines...) Expand all
170 void OnMouseMove(CFWL_MsgMouse* pMsg); 172 void OnMouseMove(CFWL_MsgMouse* pMsg);
171 void OnMouseHover(CFWL_MsgMouse* pMsg); 173 void OnMouseHover(CFWL_MsgMouse* pMsg);
172 void OnMouseLeave(CFWL_MsgMouse* pMsg); 174 void OnMouseLeave(CFWL_MsgMouse* pMsg);
173 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); 175 void OnLButtonDblClk(CFWL_MsgMouse* pMsg);
174 void OnWindowMove(CFWL_MsgWindowMove* pMsg); 176 void OnWindowMove(CFWL_MsgWindowMove* pMsg);
175 void OnClose(CFWL_MsgClose* pMsg); 177 void OnClose(CFWL_MsgClose* pMsg);
176 CFWL_FormImp* m_pOwner; 178 CFWL_FormImp* m_pOwner;
177 }; 179 };
178 180
179 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_ 181 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698