| 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 "public/fpdfview.h" | 7 #include "public/fpdfview.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "fpdfsdk/cpdfsdk_pageview.h" | 29 #include "fpdfsdk/cpdfsdk_pageview.h" |
| 30 #include "fpdfsdk/fsdk_define.h" | 30 #include "fpdfsdk/fsdk_define.h" |
| 31 #include "fpdfsdk/fsdk_pauseadapter.h" | 31 #include "fpdfsdk/fsdk_pauseadapter.h" |
| 32 #include "fpdfsdk/javascript/ijs_runtime.h" | 32 #include "fpdfsdk/javascript/ijs_runtime.h" |
| 33 #include "public/fpdf_ext.h" | 33 #include "public/fpdf_ext.h" |
| 34 #include "public/fpdf_progressive.h" | 34 #include "public/fpdf_progressive.h" |
| 35 #include "third_party/base/numerics/safe_conversions_impl.h" | 35 #include "third_party/base/numerics/safe_conversions_impl.h" |
| 36 #include "third_party/base/ptr_util.h" | 36 #include "third_party/base/ptr_util.h" |
| 37 | 37 |
| 38 #ifdef PDF_ENABLE_XFA | 38 #ifdef PDF_ENABLE_XFA |
| 39 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h" | 39 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h" |
| 40 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" | 40 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" |
| 41 #include "fpdfsdk/fpdfxfa/fpdfxfa_page.h" | 41 #include "fpdfsdk/fpdfxfa/cpdfxfa_page.h" |
| 42 #include "fpdfsdk/fpdfxfa/fpdfxfa_util.h" | 42 #include "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h" |
| 43 #include "public/fpdf_formfill.h" | 43 #include "public/fpdf_formfill.h" |
| 44 #endif // PDF_ENABLE_XFA | 44 #endif // PDF_ENABLE_XFA |
| 45 | 45 |
| 46 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 46 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
| 47 #include "core/fxge/cfx_windowsdevice.h" | 47 #include "core/fxge/cfx_windowsdevice.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) { | 50 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) { |
| 51 return static_cast<UnderlyingDocumentType*>(doc); | 51 return static_cast<UnderlyingDocumentType*>(doc); |
| 52 } | 52 } |
| (...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 if (!buffer) { | 1129 if (!buffer) { |
| 1130 *buflen = len; | 1130 *buflen = len; |
| 1131 } else if (*buflen >= len) { | 1131 } else if (*buflen >= len) { |
| 1132 memcpy(buffer, utf16Name.c_str(), len); | 1132 memcpy(buffer, utf16Name.c_str(), len); |
| 1133 *buflen = len; | 1133 *buflen = len; |
| 1134 } else { | 1134 } else { |
| 1135 *buflen = -1; | 1135 *buflen = -1; |
| 1136 } | 1136 } |
| 1137 return (FPDF_DEST)pDestObj; | 1137 return (FPDF_DEST)pDestObj; |
| 1138 } | 1138 } |
| OLD | NEW |