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

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

Issue 1425153006: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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_annot.cpp ('k') | core/src/fpdftext/fpdf_text.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 <vector> 7 #include <vector>
8 8
9 #include "../../../third_party/base/nonstd_unique_ptr.h"
10 #include "../../include/fpdfdoc/fpdf_doc.h" 9 #include "../../include/fpdfdoc/fpdf_doc.h"
10 #include "third_party/base/nonstd_unique_ptr.h"
11 11
12 CPDF_Bookmark CPDF_BookmarkTree::GetFirstChild( 12 CPDF_Bookmark CPDF_BookmarkTree::GetFirstChild(
13 const CPDF_Bookmark& parent) const { 13 const CPDF_Bookmark& parent) const {
14 if (!parent.m_pDict) { 14 if (!parent.m_pDict) {
15 CPDF_Dictionary* pRoot = m_pDocument->GetRoot()->GetDict("Outlines"); 15 CPDF_Dictionary* pRoot = m_pDocument->GetRoot()->GetDict("Outlines");
16 if (!pRoot) { 16 if (!pRoot) {
17 return CPDF_Bookmark(); 17 return CPDF_Bookmark();
18 } 18 }
19 return CPDF_Bookmark(pRoot->GetDict("First")); 19 return CPDF_Bookmark(pRoot->GetDict("First"));
20 } 20 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 if (CPDF_Array* pArray = pDest->AsArray()) 82 if (CPDF_Array* pArray = pDest->AsArray())
83 return CPDF_Dest(pArray); 83 return CPDF_Dest(pArray);
84 return CPDF_Dest(); 84 return CPDF_Dest();
85 } 85 }
86 CPDF_Action CPDF_Bookmark::GetAction() const { 86 CPDF_Action CPDF_Bookmark::GetAction() const {
87 if (!m_pDict) { 87 if (!m_pDict) {
88 return CPDF_Action(); 88 return CPDF_Action();
89 } 89 }
90 return CPDF_Action(m_pDict->GetDict("A")); 90 return CPDF_Action(m_pDict->GetDict("A"));
91 } 91 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_annot.cpp ('k') | core/src/fpdftext/fpdf_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698