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

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

Issue 984783002: Merge to XFA: Make conversion between CPDF_Action and its dictionary explicit. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 9 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_formcontrol.cpp ('k') | fpdfsdk/src/fpdfdoc.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 "../../src/fxcrt/fx_safe_types.h" 8 #include "../../src/fxcrt/fx_safe_types.h"
9 9
10 CPDF_LinkList::~CPDF_LinkList() 10 CPDF_LinkList::~CPDF_LinkList()
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 CPDF_NameTree name_tree(pDoc, FX_BSTRC("Dests")); 96 CPDF_NameTree name_tree(pDoc, FX_BSTRC("Dests"));
97 CFX_ByteStringC name = pDest->GetString(); 97 CFX_ByteStringC name = pDest->GetString();
98 return name_tree.LookupNamedDest(pDoc, name); 98 return name_tree.LookupNamedDest(pDoc, name);
99 } else if (pDest->GetType() == PDFOBJ_ARRAY) { 99 } else if (pDest->GetType() == PDFOBJ_ARRAY) {
100 return (CPDF_Array*)pDest; 100 return (CPDF_Array*)pDest;
101 } 101 }
102 return NULL; 102 return NULL;
103 } 103 }
104 CPDF_Action CPDF_Link::GetAction() 104 CPDF_Action CPDF_Link::GetAction()
105 { 105 {
106 return m_pDict->GetDict("A"); 106 return CPDF_Action(m_pDict->GetDict("A"));
107 } 107 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_formcontrol.cpp ('k') | fpdfsdk/src/fpdfdoc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698