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

Side by Side Diff: core/src/fpdfdoc/doc_metadata.cpp

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/src/fpdfdoc/doc_link.cpp ('k') | core/src/fpdfdoc/doc_ocg.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 #include "../../include/fpdfdoc/fpdf_doc.h" 7 #include "../../include/fpdfdoc/fpdf_doc.h"
8 #include "../../include/fxcrt/fx_xml.h" 8 #include "../../include/fxcrt/fx_xml.h"
9 typedef struct _PDFDOC_METADATA { 9 typedef struct _PDFDOC_METADATA {
10 CPDF_Document *m_pDoc; 10 CPDF_Document *m_pDoc;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 if (!pXmlElmnt) { 67 if (!pXmlElmnt) {
68 return; 68 return;
69 } 69 }
70 CXML_Element *&pElmntRdf = ((PDFDOC_LPMETADATA)m_pData)->m_pElmntRdf; 70 CXML_Element *&pElmntRdf = ((PDFDOC_LPMETADATA)m_pData)->m_pElmntRdf;
71 if (pXmlElmnt->GetTagName() == FX_BSTRC("RDF")) { 71 if (pXmlElmnt->GetTagName() == FX_BSTRC("RDF")) {
72 pElmntRdf = pXmlElmnt; 72 pElmntRdf = pXmlElmnt;
73 } else { 73 } else {
74 pElmntRdf = pXmlElmnt->GetElement(NULL, FX_BSTRC("RDF")); 74 pElmntRdf = pXmlElmnt->GetElement(NULL, FX_BSTRC("RDF"));
75 } 75 }
76 } 76 }
77 FX_INT32 CPDF_Metadata::GetString(FX_BSTR bsItem, CFX_WideString &wsStr) 77 int32_t CPDF_Metadata::GetString(FX_BSTR bsItem, CFX_WideString &wsStr)
78 { 78 {
79 if (!((PDFDOC_LPMETADATA)m_pData)->m_pXmlElmnt) { 79 if (!((PDFDOC_LPMETADATA)m_pData)->m_pXmlElmnt) {
80 return -1; 80 return -1;
81 } 81 }
82 if (!((PDFDOC_LPMETADATA)m_pData)->m_pStringMap) { 82 if (!((PDFDOC_LPMETADATA)m_pData)->m_pStringMap) {
83 return -1; 83 return -1;
84 } 84 }
85 void *szTag; 85 void *szTag;
86 if (!((PDFDOC_LPMETADATA)m_pData)->m_pStringMap->Lookup(bsItem, szTag)) { 86 if (!((PDFDOC_LPMETADATA)m_pData)->m_pStringMap->Lookup(bsItem, szTag)) {
87 return -1; 87 return -1;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 return -1; 140 return -1;
141 } 141 }
142 CXML_Element* CPDF_Metadata::GetRoot() const 142 CXML_Element* CPDF_Metadata::GetRoot() const
143 { 143 {
144 return ((PDFDOC_LPMETADATA)m_pData)->m_pXmlElmnt; 144 return ((PDFDOC_LPMETADATA)m_pData)->m_pXmlElmnt;
145 } 145 }
146 CXML_Element* CPDF_Metadata::GetRDF() const 146 CXML_Element* CPDF_Metadata::GetRDF() const
147 { 147 {
148 return ((PDFDOC_LPMETADATA)m_pData)->m_pElmntRdf; 148 return ((PDFDOC_LPMETADATA)m_pData)->m_pElmntRdf;
149 } 149 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_link.cpp ('k') | core/src/fpdfdoc/doc_ocg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698