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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Wnd.h

Issue 2173253002: Use smart pointers for class owned pointers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments 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 | « fpdfsdk/pdfwindow/PWL_FontMap.cpp ('k') | fpdfsdk/pdfwindow/PWL_Wnd.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 FPDFSDK_PDFWINDOW_PWL_WND_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_WND_H_
8 #define FPDFSDK_PDFWINDOW_PWL_WND_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_WND_H_
9 9
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "core/fpdfdoc/include/cpdf_formcontrol.h" 13 #include "core/fpdfdoc/include/cpdf_formcontrol.h"
13 #include "core/fxcrt/include/fx_basic.h" 14 #include "core/fxcrt/include/fx_basic.h"
14 #include "fpdfsdk/cfx_systemhandler.h" 15 #include "fpdfsdk/cfx_systemhandler.h"
15 16
16 class CPWL_MsgControl; 17 class CPWL_MsgControl;
17 class CPWL_ScrollBar; 18 class CPWL_ScrollBar;
18 class CPWL_Timer; 19 class CPWL_Timer;
19 class CPWL_TimerHandler; 20 class CPWL_TimerHandler;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 public: 232 public:
232 CPWL_TimerHandler(); 233 CPWL_TimerHandler();
233 virtual ~CPWL_TimerHandler(); 234 virtual ~CPWL_TimerHandler();
234 235
235 void BeginTimer(int32_t nElapse); 236 void BeginTimer(int32_t nElapse);
236 void EndTimer(); 237 void EndTimer();
237 virtual void TimerProc(); 238 virtual void TimerProc();
238 virtual CFX_SystemHandler* GetSystemHandler() const = 0; 239 virtual CFX_SystemHandler* GetSystemHandler() const = 0;
239 240
240 private: 241 private:
241 CPWL_Timer* m_pTimer; 242 std::unique_ptr<CPWL_Timer> m_pTimer;
242 }; 243 };
243 244
244 class CPWL_Wnd : public CPWL_TimerHandler { 245 class CPWL_Wnd : public CPWL_TimerHandler {
245 friend class CPWL_MsgControl; 246 friend class CPWL_MsgControl;
246 247
247 public: 248 public:
248 CPWL_Wnd(); 249 CPWL_Wnd();
249 ~CPWL_Wnd() override; 250 ~CPWL_Wnd() override;
250 251
251 void Create(const PWL_CREATEPARAM& cp); 252 void Create(const PWL_CREATEPARAM& cp);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 CFX_FloatRect m_rcWindow; 423 CFX_FloatRect m_rcWindow;
423 CFX_FloatRect m_rcClip; 424 CFX_FloatRect m_rcClip;
424 425
425 FX_BOOL m_bCreated; 426 FX_BOOL m_bCreated;
426 FX_BOOL m_bVisible; 427 FX_BOOL m_bVisible;
427 FX_BOOL m_bNotifying; 428 FX_BOOL m_bNotifying;
428 FX_BOOL m_bEnabled; 429 FX_BOOL m_bEnabled;
429 }; 430 };
430 431
431 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_ 432 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_FontMap.cpp ('k') | fpdfsdk/pdfwindow/PWL_Wnd.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698