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

Side by Side Diff: fpdfsdk/src/fsdk_actionhandler.cpp

Issue 984143002: Merge to XFA: Make conversion between CPDF_Dest and its object 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 | « fpdfsdk/src/fpdfdoc.cpp ('k') | no next file » | 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/fsdk_define.h" 7 #include "../include/fsdk_define.h"
8 #include "../include/fpdfxfa/fpdfxfa_doc.h" 8 #include "../include/fpdfxfa/fpdfxfa_doc.h"
9 #include "../include/fsdk_mgr.h" 9 #include "../include/fsdk_mgr.h"
10 #include "../include/fsdk_actionhandler.h" 10 #include "../include/fsdk_actionhandler.h"
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 ASSERT(action); 558 ASSERT(action);
559 559
560 CPDF_Document* pPDFDocument = pDocument->GetDocument()->GetPDFDoc(); 560 CPDF_Document* pPDFDocument = pDocument->GetDocument()->GetPDFDoc();
561 ASSERT(pPDFDocument != NULL); 561 ASSERT(pPDFDocument != NULL);
562 CPDFDoc_Environment* pApp = pDocument->GetEnv(); 562 CPDFDoc_Environment* pApp = pDocument->GetEnv();
563 ASSERT(pApp != NULL); 563 ASSERT(pApp != NULL);
564 564
565 CPDF_Dest MyDest = action.GetDest(pPDFDocument); 565 CPDF_Dest MyDest = action.GetDest(pPDFDocument);
566 int nPageIndex = MyDest.GetPageIndex(pPDFDocument); 566 int nPageIndex = MyDest.GetPageIndex(pPDFDocument);
567 int nFitType = MyDest.GetZoomMode(); 567 int nFitType = MyDest.GetZoomMode();
568 » const CPDF_Array * pMyArray = (CPDF_Array*)MyDest.m_pObj; 568 » const CPDF_Array * pMyArray = (CPDF_Array*)MyDest.GetObject();
569 float* pPosAry = NULL; 569 float* pPosAry = NULL;
570 int sizeOfAry = 0; 570 int sizeOfAry = 0;
571 if (pMyArray != NULL) 571 if (pMyArray != NULL)
572 { 572 {
573 pPosAry = new float[pMyArray->GetCount()]; 573 pPosAry = new float[pMyArray->GetCount()];
574 int j = 0; 574 int j = 0;
575 for (int i = 2; i < (int)pMyArray->GetCount(); i++) 575 for (int i = 2; i < (int)pMyArray->GetCount(); i++)
576 { 576 {
577 pPosAry[j++] = pMyArray->GetFloat(i); 577 pPosAry[j++] = pMyArray->GetFloat(i);
578 } 578 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 821
822 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Sound(const CPDF_Action& action, CP DFSDK_Document* pDocument) 822 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Sound(const CPDF_Action& action, CP DFSDK_Document* pDocument)
823 { 823 {
824 return FALSE; 824 return FALSE;
825 } 825 }
826 826
827 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Movie(const CPDF_Action& action, CP DFSDK_Document* pDocument) 827 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Movie(const CPDF_Action& action, CP DFSDK_Document* pDocument)
828 { 828 {
829 return FALSE; 829 return FALSE;
830 } 830 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfdoc.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698