| 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_PAGE_CPDF_CONTENTMARKITEM_H_ | 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_CONTENTMARKITEM_H_ |
| 8 #define CORE_FPDFAPI_PAGE_CPDF_CONTENTMARKITEM_H_ | 8 #define CORE_FPDFAPI_PAGE_CPDF_CONTENTMARKITEM_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 ~CPDF_ContentMarkItem(); | 24 ~CPDF_ContentMarkItem(); |
| 25 | 25 |
| 26 CPDF_ContentMarkItem& operator=(CPDF_ContentMarkItem&& other) = default; | 26 CPDF_ContentMarkItem& operator=(CPDF_ContentMarkItem&& other) = default; |
| 27 | 27 |
| 28 CFX_ByteString GetName() const { return m_MarkName; } | 28 CFX_ByteString GetName() const { return m_MarkName; } |
| 29 ParamType GetParamType() const { return m_ParamType; } | 29 ParamType GetParamType() const { return m_ParamType; } |
| 30 CPDF_Dictionary* GetParam() const; | 30 CPDF_Dictionary* GetParam() const; |
| 31 bool HasMCID() const; | 31 bool HasMCID() const; |
| 32 | 32 |
| 33 void SetName(const CFX_ByteString& name) { m_MarkName = name; } | 33 void SetName(const CFX_ByteString& name) { m_MarkName = name; } |
| 34 void SetDirectDict( | 34 void SetDirectDict(std::unique_ptr<CPDF_Dictionary> pDict); |
| 35 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> pDict); | |
| 36 void SetPropertiesDict(CPDF_Dictionary* pDict); | 35 void SetPropertiesDict(CPDF_Dictionary* pDict); |
| 37 | 36 |
| 38 private: | 37 private: |
| 39 CFX_ByteString m_MarkName; | 38 CFX_ByteString m_MarkName; |
| 40 ParamType m_ParamType; | 39 ParamType m_ParamType; |
| 41 CPDF_Dictionary* m_pPropertiesDict; // not owned. | 40 CPDF_Dictionary* m_pPropertiesDict; // not owned. |
| 42 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> | 41 std::unique_ptr<CPDF_Dictionary> m_pDirectDict; |
| 43 m_pDirectDict; | |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 #endif // CORE_FPDFAPI_PAGE_CPDF_CONTENTMARKITEM_H_ | 44 #endif // CORE_FPDFAPI_PAGE_CPDF_CONTENTMARKITEM_H_ |
| OLD | NEW |