OLD | NEW |
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/fsdk_mgr.h" | 8 #include "../include/fsdk_mgr.h" |
9 #include "../include/fsdk_actionhandler.h" | 9 #include "../include/fsdk_actionhandler.h" |
10 #include "../include/javascript/IJavaScript.h" | 10 #include "../include/javascript/IJavaScript.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 } | 593 } |
594 | 594 |
595 void CPDFSDK_ActionHandler::DoAction_URI(CPDFSDK_Document* pDocument, const CPDF
_Action& action) | 595 void CPDFSDK_ActionHandler::DoAction_URI(CPDFSDK_Document* pDocument, const CPDF
_Action& action) |
596 { | 596 { |
597 ASSERT(action); | 597 ASSERT(action); |
598 | 598 |
599 CPDFDoc_Environment* pApp = pDocument->GetEnv(); | 599 CPDFDoc_Environment* pApp = pDocument->GetEnv(); |
600 ASSERT(pApp != NULL); | 600 ASSERT(pApp != NULL); |
601 | 601 |
602 CFX_ByteString sURI = action.GetURI(pDocument->GetDocument()); | 602 CFX_ByteString sURI = action.GetURI(pDocument->GetDocument()); |
603 » pApp->FFI_DoURIAction(FX_LPCSTR(sURI)); | 603 » pApp->FFI_DoURIAction(sURI.c_str()); |
604 } | 604 } |
605 | 605 |
606 void CPDFSDK_ActionHandler::DoAction_Named(CPDFSDK_Document* pDocument, const CP
DF_Action& action) | 606 void CPDFSDK_ActionHandler::DoAction_Named(CPDFSDK_Document* pDocument, const CP
DF_Action& action) |
607 { | 607 { |
608 ASSERT(action); | 608 ASSERT(action); |
609 | 609 |
610 CFX_ByteString csName = action.GetNamedAction(); | 610 CFX_ByteString csName = action.GetNamedAction(); |
611 pDocument->GetEnv()->FFI_ExecuteNamedAction(csName); | 611 pDocument->GetEnv()->FFI_ExecuteNamedAction(csName); |
612 } | 612 } |
613 | 613 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |