OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fxcrt/include/fx_memory.h" | 12 #include "core/fxcrt/fx_memory.h" |
13 #include "core/fxcrt/include/fx_string.h" | 13 #include "core/fxcrt/fx_string.h" |
14 #include "core/fxcrt/include/fx_system.h" | 14 #include "core/fxcrt/fx_system.h" |
15 | 15 |
16 class CPDF_Dictionary; | 16 class CPDF_Dictionary; |
17 | 17 |
18 class CPDF_ContentMarkItem { | 18 class CPDF_ContentMarkItem { |
19 public: | 19 public: |
20 enum ParamType { None, PropertiesDict, DirectDict }; | 20 enum ParamType { None, PropertiesDict, DirectDict }; |
21 | 21 |
22 CPDF_ContentMarkItem(); | 22 CPDF_ContentMarkItem(); |
23 CPDF_ContentMarkItem(const CPDF_ContentMarkItem& that); | 23 CPDF_ContentMarkItem(const CPDF_ContentMarkItem& that); |
24 ~CPDF_ContentMarkItem(); | 24 ~CPDF_ContentMarkItem(); |
(...skipping 12 matching lines...) Expand all Loading... |
37 | 37 |
38 private: | 38 private: |
39 CFX_ByteString m_MarkName; | 39 CFX_ByteString m_MarkName; |
40 ParamType m_ParamType; | 40 ParamType m_ParamType; |
41 CPDF_Dictionary* m_pPropertiesDict; // not owned. | 41 CPDF_Dictionary* m_pPropertiesDict; // not owned. |
42 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> | 42 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> |
43 m_pDirectDict; | 43 m_pDirectDict; |
44 }; | 44 }; |
45 | 45 |
46 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ | 46 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ |
OLD | NEW |