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

Side by Side Diff: fpdfsdk/fsdk_actionhandler.cpp

Issue 2338303002: Remove FFI_ from CPDFSDK_Environment method names (Closed)
Patch Set: Review feedback Created 4 years, 3 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/fpdfxfa/include/fpdfxfa_app.h ('k') | fpdfsdk/include/cpdfsdk_environment.h » ('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 "fpdfsdk/include/fsdk_actionhandler.h" 7 #include "fpdfsdk/include/fsdk_actionhandler.h"
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 if (pMyArray) { 432 if (pMyArray) {
433 pPosAry = new float[pMyArray->GetCount()]; 433 pPosAry = new float[pMyArray->GetCount()];
434 int j = 0; 434 int j = 0;
435 for (size_t i = 2; i < pMyArray->GetCount(); i++) { 435 for (size_t i = 2; i < pMyArray->GetCount(); i++) {
436 pPosAry[j++] = pMyArray->GetFloatAt(i); 436 pPosAry[j++] = pMyArray->GetFloatAt(i);
437 } 437 }
438 sizeOfAry = j; 438 sizeOfAry = j;
439 } 439 }
440 440
441 CPDFSDK_Environment* pApp = pDocument->GetEnv(); 441 CPDFSDK_Environment* pApp = pDocument->GetEnv();
442 pApp->FFI_DoGoToAction(nPageIndex, nFitType, pPosAry, sizeOfAry); 442 pApp->DoGoToAction(nPageIndex, nFitType, pPosAry, sizeOfAry);
443 delete[] pPosAry; 443 delete[] pPosAry;
444 } 444 }
445 445
446 void CPDFSDK_ActionHandler::DoAction_GoToR(CPDFSDK_Document* pDocument, 446 void CPDFSDK_ActionHandler::DoAction_GoToR(CPDFSDK_Document* pDocument,
447 const CPDF_Action& action) {} 447 const CPDF_Action& action) {}
448 448
449 void CPDFSDK_ActionHandler::DoAction_Launch(CPDFSDK_Document* pDocument, 449 void CPDFSDK_ActionHandler::DoAction_Launch(CPDFSDK_Document* pDocument,
450 const CPDF_Action& action) {} 450 const CPDF_Action& action) {}
451 451
452 void CPDFSDK_ActionHandler::DoAction_URI(CPDFSDK_Document* pDocument, 452 void CPDFSDK_ActionHandler::DoAction_URI(CPDFSDK_Document* pDocument,
453 const CPDF_Action& action) { 453 const CPDF_Action& action) {
454 ASSERT(action.GetDict()); 454 ASSERT(action.GetDict());
455 455
456 CPDFSDK_Environment* pApp = pDocument->GetEnv(); 456 CPDFSDK_Environment* pApp = pDocument->GetEnv();
457 CFX_ByteString sURI = action.GetURI(pDocument->GetPDFDocument()); 457 CFX_ByteString sURI = action.GetURI(pDocument->GetPDFDocument());
458 pApp->FFI_DoURIAction(sURI.c_str()); 458 pApp->DoURIAction(sURI.c_str());
459 } 459 }
460 460
461 void CPDFSDK_ActionHandler::DoAction_Named(CPDFSDK_Document* pDocument, 461 void CPDFSDK_ActionHandler::DoAction_Named(CPDFSDK_Document* pDocument,
462 const CPDF_Action& action) { 462 const CPDF_Action& action) {
463 ASSERT(action.GetDict()); 463 ASSERT(action.GetDict());
464 464
465 CFX_ByteString csName = action.GetNamedAction(); 465 CFX_ByteString csName = action.GetNamedAction();
466 pDocument->GetEnv()->FFI_ExecuteNamedAction(csName.c_str()); 466 pDocument->GetEnv()->ExecuteNamedAction(csName.c_str());
467 } 467 }
468 468
469 void CPDFSDK_ActionHandler::DoAction_SetOCGState(CPDFSDK_Document* pDocument, 469 void CPDFSDK_ActionHandler::DoAction_SetOCGState(CPDFSDK_Document* pDocument,
470 const CPDF_Action& action) {} 470 const CPDF_Action& action) {}
471 471
472 void CPDFSDK_ActionHandler::RunFieldJavaScript(CPDFSDK_Document* pDocument, 472 void CPDFSDK_ActionHandler::RunFieldJavaScript(CPDFSDK_Document* pDocument,
473 CPDF_FormField* pFormField, 473 CPDF_FormField* pFormField,
474 CPDF_AAction::AActionType type, 474 CPDF_AAction::AActionType type,
475 PDFSDK_FieldAction& data, 475 PDFSDK_FieldAction& data,
476 const CFX_WideString& script) { 476 const CFX_WideString& script) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 const CPDF_Action& action, 623 const CPDF_Action& action,
624 CPDFSDK_Document* pDocument) { 624 CPDFSDK_Document* pDocument) {
625 CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm(); 625 CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
626 if (pInterForm->DoAction_ImportData(action)) { 626 if (pInterForm->DoAction_ImportData(action)) {
627 pDocument->SetChangeMark(); 627 pDocument->SetChangeMark();
628 return TRUE; 628 return TRUE;
629 } 629 }
630 630
631 return FALSE; 631 return FALSE;
632 } 632 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/include/fpdfxfa_app.h ('k') | fpdfsdk/include/cpdfsdk_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698