| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/cpdfsdk_environment.h" | 7 #include "fpdfsdk/cpdfsdk_environment.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" | 11 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" |
| 12 #include "fpdfsdk/cpdfsdk_document.h" | 12 #include "fpdfsdk/cpdfsdk_document.h" |
| 13 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" | 13 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" |
| 14 #include "fpdfsdk/fsdk_actionhandler.h" | 14 #include "fpdfsdk/fsdk_actionhandler.h" |
| 15 #include "fpdfsdk/javascript/ijs_runtime.h" | 15 #include "fpdfsdk/javascript/ijs_runtime.h" |
| 16 #include "third_party/base/ptr_util.h" | 16 #include "third_party/base/ptr_util.h" |
| 17 | 17 |
| 18 #ifdef PDF_ENABLE_XFA | 18 #ifdef PDF_ENABLE_XFA |
| 19 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h" | 19 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h" |
| 20 #endif // PDF_ENABLE_XFA | 20 #endif // PDF_ENABLE_XFA |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // NOTE: |bsUTF16LE| must outlive the use of the result. Care must be taken | 24 // NOTE: |bsUTF16LE| must outlive the use of the result. Care must be taken |
| 25 // since modifying the result would impact |bsUTF16LE|. | 25 // since modifying the result would impact |bsUTF16LE|. |
| 26 FPDF_WIDESTRING AsFPDFWideString(CFX_ByteString* bsUTF16LE) { | 26 FPDF_WIDESTRING AsFPDFWideString(CFX_ByteString* bsUTF16LE) { |
| 27 return reinterpret_cast<FPDF_WIDESTRING>( | 27 return reinterpret_cast<FPDF_WIDESTRING>( |
| 28 bsUTF16LE->GetBuffer(bsUTF16LE->GetLength())); | 28 bsUTF16LE->GetBuffer(bsUTF16LE->GetLength())); |
| 29 } | 29 } |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 delete[] pbuff; | 536 delete[] pbuff; |
| 537 return wsRet; | 537 return wsRet; |
| 538 } | 538 } |
| 539 | 539 |
| 540 void CPDFSDK_Environment::PageEvent(int iPageCount, | 540 void CPDFSDK_Environment::PageEvent(int iPageCount, |
| 541 uint32_t dwEventType) const { | 541 uint32_t dwEventType) const { |
| 542 if (m_pInfo && m_pInfo->FFI_PageEvent) | 542 if (m_pInfo && m_pInfo->FFI_PageEvent) |
| 543 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); | 543 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); |
| 544 } | 544 } |
| 545 #endif // PDF_ENABLE_XFA | 545 #endif // PDF_ENABLE_XFA |
| OLD | NEW |