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 19 matching lines...) Expand all Loading... |
30 #include "fpdfsdk/cpdfsdk_pageview.h" | 30 #include "fpdfsdk/cpdfsdk_pageview.h" |
31 #include "fpdfsdk/fsdk_define.h" | 31 #include "fpdfsdk/fsdk_define.h" |
32 #include "fpdfsdk/fsdk_pauseadapter.h" | 32 #include "fpdfsdk/fsdk_pauseadapter.h" |
33 #include "fpdfsdk/javascript/ijs_runtime.h" | 33 #include "fpdfsdk/javascript/ijs_runtime.h" |
34 #include "public/fpdf_ext.h" | 34 #include "public/fpdf_ext.h" |
35 #include "public/fpdf_progressive.h" | 35 #include "public/fpdf_progressive.h" |
36 #include "third_party/base/numerics/safe_conversions_impl.h" | 36 #include "third_party/base/numerics/safe_conversions_impl.h" |
37 #include "third_party/base/ptr_util.h" | 37 #include "third_party/base/ptr_util.h" |
38 | 38 |
39 #ifdef PDF_ENABLE_XFA | 39 #ifdef PDF_ENABLE_XFA |
40 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h" | |
41 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" | 40 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" |
42 #include "fpdfsdk/fpdfxfa/cpdfxfa_page.h" | 41 #include "fpdfsdk/fpdfxfa/cpdfxfa_page.h" |
43 #include "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h" | 42 #include "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h" |
44 #include "public/fpdf_formfill.h" | 43 #include "public/fpdf_formfill.h" |
45 #include "xfa/fxbarcode/BC_Library.h" | 44 #include "xfa/fxbarcode/BC_Library.h" |
46 #endif // PDF_ENABLE_XFA | 45 #endif // PDF_ENABLE_XFA |
47 | 46 |
48 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 47 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
49 #include "core/fxge/cfx_windowsdevice.h" | 48 #include "core/fxge/cfx_windowsdevice.h" |
50 #endif | 49 #endif |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 if (!buffer) { | 1091 if (!buffer) { |
1093 *buflen = len; | 1092 *buflen = len; |
1094 } else if (*buflen >= len) { | 1093 } else if (*buflen >= len) { |
1095 memcpy(buffer, utf16Name.c_str(), len); | 1094 memcpy(buffer, utf16Name.c_str(), len); |
1096 *buflen = len; | 1095 *buflen = len; |
1097 } else { | 1096 } else { |
1098 *buflen = -1; | 1097 *buflen = -1; |
1099 } | 1098 } |
1100 return (FPDF_DEST)pDestObj; | 1099 return (FPDF_DEST)pDestObj; |
1101 } | 1100 } |
OLD | NEW |