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

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1547833002: Switch from nonstd::unique_ptr to std::unique_ptr. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 12 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 | « core/include/fpdfapi/fpdf_render.h ('k') | core/include/fxcodec/fx_codec.h » ('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 CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory>
11 #include <vector> 12 #include <vector>
12 13
13 #include "core/include/fpdfapi/fpdf_parser.h" 14 #include "core/include/fpdfapi/fpdf_parser.h"
14 #include "core/include/fpdfapi/fpdf_render.h" 15 #include "core/include/fpdfapi/fpdf_render.h"
15 #include "third_party/base/nonstd_unique_ptr.h"
16 16
17 class CFieldTree; 17 class CFieldTree;
18 class CPDF_AAction; 18 class CPDF_AAction;
19 class CPDF_Action; 19 class CPDF_Action;
20 class CPDF_ActionFields; 20 class CPDF_ActionFields;
21 class CPDF_Annot; 21 class CPDF_Annot;
22 class CPDF_AnnotList; 22 class CPDF_AnnotList;
23 class CPDF_ApSettings; 23 class CPDF_ApSettings;
24 class CPDF_Bookmark; 24 class CPDF_Bookmark;
25 class CPDF_BookmarkTree; 25 class CPDF_BookmarkTree;
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 const CFX_ByteString& name2); 693 const CFX_ByteString& name2);
694 694
695 CPDF_Document* const m_pDocument; 695 CPDF_Document* const m_pDocument;
696 696
697 FX_BOOL m_bGenerateAP; 697 FX_BOOL m_bGenerateAP;
698 698
699 CPDF_Dictionary* m_pFormDict; 699 CPDF_Dictionary* m_pFormDict;
700 700
701 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; 701 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap;
702 702
703 nonstd::unique_ptr<CFieldTree> m_pFieldTree; 703 std::unique_ptr<CFieldTree> m_pFieldTree;
704 704
705 CFX_ByteString m_bsEncoding; 705 CFX_ByteString m_bsEncoding;
706 706
707 CPDF_FormNotify* m_pFormNotify; 707 CPDF_FormNotify* m_pFormNotify;
708 708
709 FX_BOOL m_bUpdated; 709 FX_BOOL m_bUpdated;
710 friend class CPDF_FormControl; 710 friend class CPDF_FormControl;
711 friend class CPDF_FormField; 711 friend class CPDF_FormField;
712 }; 712 };
713 #define FORMFIELD_READONLY 0x01 713 #define FORMFIELD_READONLY 0x01
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 }; 1053 };
1054 1054
1055 class CPDF_Metadata { 1055 class CPDF_Metadata {
1056 public: 1056 public:
1057 explicit CPDF_Metadata(CPDF_Document* pDoc); 1057 explicit CPDF_Metadata(CPDF_Document* pDoc);
1058 ~CPDF_Metadata(); 1058 ~CPDF_Metadata();
1059 1059
1060 const CXML_Element* GetRoot() const; 1060 const CXML_Element* GetRoot() const;
1061 1061
1062 private: 1062 private:
1063 nonstd::unique_ptr<CXML_Element> m_pXmlElement; 1063 std::unique_ptr<CXML_Element> m_pXmlElement;
1064 }; 1064 };
1065 1065
1066 class CPDF_ViewerPreferences { 1066 class CPDF_ViewerPreferences {
1067 public: 1067 public:
1068 explicit CPDF_ViewerPreferences(CPDF_Document* pDoc); 1068 explicit CPDF_ViewerPreferences(CPDF_Document* pDoc);
1069 1069
1070 ~CPDF_ViewerPreferences(); 1070 ~CPDF_ViewerPreferences();
1071 1071
1072 FX_BOOL IsDirectionR2L() const; 1072 FX_BOOL IsDirectionR2L() const;
1073 1073
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; 1144 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const;
1145 1145
1146 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; 1146 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const;
1147 1147
1148 CPDF_Dictionary* const m_pDict; 1148 CPDF_Dictionary* const m_pDict;
1149 }; 1149 };
1150 1150
1151 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); 1151 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath);
1152 1152
1153 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1153 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_render.h ('k') | core/include/fxcodec/fx_codec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698