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

Side by Side Diff: fpdfsdk/formfiller/cffl_listbox.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/formfiller/cffl_iformfiller.cpp ('k') | fpdfsdk/formfiller/cffl_listbox.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_FORMFILLER_CFFL_LISTBOX_H_ 7 #ifndef FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_
8 #define FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_ 8 #define FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_
9 9
10 #include <memory>
10 #include <set> 11 #include <set>
11 12
12 #include "fpdfsdk/formfiller/cffl_formfiller.h" 13 #include "fpdfsdk/formfiller/cffl_formfiller.h"
13 14
14 class CBA_FontMap; 15 class CBA_FontMap;
15 16
16 class CFFL_ListBox : public CFFL_FormFiller { 17 class CFFL_ListBox : public CFFL_FormFiller {
17 public: 18 public:
18 CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); 19 CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget);
19 ~CFFL_ListBox() override; 20 ~CFFL_ListBox() override;
(...skipping 10 matching lines...) Expand all
30 PDFSDK_FieldAction& fa) override; 31 PDFSDK_FieldAction& fa) override;
31 void SetActionData(CPDFSDK_PageView* pPageView, 32 void SetActionData(CPDFSDK_PageView* pPageView,
32 CPDF_AAction::AActionType type, 33 CPDF_AAction::AActionType type,
33 const PDFSDK_FieldAction& fa) override; 34 const PDFSDK_FieldAction& fa) override;
34 void SaveState(CPDFSDK_PageView* pPageView) override; 35 void SaveState(CPDFSDK_PageView* pPageView) override;
35 void RestoreState(CPDFSDK_PageView* pPageView) override; 36 void RestoreState(CPDFSDK_PageView* pPageView) override;
36 CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView, 37 CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView,
37 FX_BOOL bRestoreValue) override; 38 FX_BOOL bRestoreValue) override;
38 39
39 private: 40 private:
40 CBA_FontMap* m_pFontMap; 41 std::unique_ptr<CBA_FontMap> m_pFontMap;
41 std::set<int> m_OriginSelections; 42 std::set<int> m_OriginSelections;
42 CFX_ArrayTemplate<int> m_State; 43 CFX_ArrayTemplate<int> m_State;
43 }; 44 };
44 45
45 #endif // FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_ 46 #endif // FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_
OLDNEW
« no previous file with comments | « fpdfsdk/formfiller/cffl_iformfiller.cpp ('k') | fpdfsdk/formfiller/cffl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698