| 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 #include "core/fpdfapi/page/cpdf_contentmarkitem.h" | 7 #include "core/fpdfapi/page/cpdf_contentmarkitem.h" |
| 8 | 8 |
| 9 #include "core/fpdfapi/parser/cpdf_dictionary.h" | 9 #include "core/fpdfapi/parser/cpdf_dictionary.h" |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 return nullptr; | 32 return nullptr; |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 bool CPDF_ContentMarkItem::HasMCID() const { | 36 bool CPDF_ContentMarkItem::HasMCID() const { |
| 37 CPDF_Dictionary* pDict = GetParam(); | 37 CPDF_Dictionary* pDict = GetParam(); |
| 38 return pDict && pDict->KeyExist("MCID"); | 38 return pDict && pDict->KeyExist("MCID"); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void CPDF_ContentMarkItem::SetDirectDict( | 41 void CPDF_ContentMarkItem::SetDirectDict( |
| 42 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> pDict) { | 42 std::unique_ptr<CPDF_Dictionary> pDict) { |
| 43 m_ParamType = DirectDict; | 43 m_ParamType = DirectDict; |
| 44 m_pDirectDict = std::move(pDict); | 44 m_pDirectDict = std::move(pDict); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void CPDF_ContentMarkItem::SetPropertiesDict(CPDF_Dictionary* pDict) { | 47 void CPDF_ContentMarkItem::SetPropertiesDict(CPDF_Dictionary* pDict) { |
| 48 m_ParamType = PropertiesDict; | 48 m_ParamType = PropertiesDict; |
| 49 m_pPropertiesDict = pDict; | 49 m_pPropertiesDict = pDict; |
| 50 } | 50 } |
| OLD | NEW |