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

Side by Side Diff: fpdfsdk/src/fpdfview.cpp

Issue 1572523002: XFA: Remove relative includes outside of xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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
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 "public/fpdfview.h" 7 #include "public/fpdfview.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "core/include/fxcodec/fx_codec.h" 11 #include "core/include/fxcodec/fx_codec.h"
12 #include "core/include/fxcrt/fx_safe_types.h" 12 #include "core/include/fxcrt/fx_safe_types.h"
13 #include "fpdfsdk/include/fsdk_define.h" 13 #include "fpdfsdk/include/fsdk_define.h"
14 #include "fpdfsdk/include/fsdk_mgr.h" 14 #include "fpdfsdk/include/fsdk_mgr.h"
15 #include "fpdfsdk/include/fsdk_rendercontext.h" 15 #include "fpdfsdk/include/fsdk_rendercontext.h"
16 #include "fpdfsdk/include/javascript/IJavaScript.h" 16 #include "fpdfsdk/include/javascript/IJavaScript.h"
17 #include "public/fpdf_ext.h" 17 #include "public/fpdf_ext.h"
18 #include "public/fpdf_progressive.h" 18 #include "public/fpdf_progressive.h"
19 #include "third_party/base/numerics/safe_conversions_impl.h" 19 #include "third_party/base/numerics/safe_conversions_impl.h"
20 20
21 #ifdef PDF_ENABLE_XFA 21 #ifdef PDF_ENABLE_XFA
22 #include "../include/fpdfxfa/fpdfxfa_app.h"
23 #include "../include/fpdfxfa/fpdfxfa_doc.h"
24 #include "../include/fpdfxfa/fpdfxfa_page.h"
25 #include "../include/fpdfxfa/fpdfxfa_util.h"
26 #include "core/include/fpdfapi/fpdf_module.h" 22 #include "core/include/fpdfapi/fpdf_module.h"
23 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h"
24 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
25 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h"
26 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h"
27 #include "public/fpdf_formfill.h" 27 #include "public/fpdf_formfill.h"
28 #endif // PDF_ENABLE_XFA 28 #endif // PDF_ENABLE_XFA
29 29
30 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) { 30 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) {
31 return static_cast<UnderlyingDocumentType*>(doc); 31 return static_cast<UnderlyingDocumentType*>(doc);
32 } 32 }
33 33
34 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc) { 34 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc) {
35 return static_cast<FPDF_DOCUMENT>(doc); 35 return static_cast<FPDF_DOCUMENT>(doc);
36 } 36 }
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 if (!buffer) { 1181 if (!buffer) {
1182 *buflen = len; 1182 *buflen = len;
1183 } else if (*buflen >= len) { 1183 } else if (*buflen >= len) {
1184 memcpy(buffer, utf16Name.c_str(), len); 1184 memcpy(buffer, utf16Name.c_str(), len);
1185 *buflen = len; 1185 *buflen = len;
1186 } else { 1186 } else {
1187 *buflen = -1; 1187 *buflen = -1;
1188 } 1188 }
1189 return (FPDF_DEST)pDestObj; 1189 return (FPDF_DEST)pDestObj;
1190 } 1190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698