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

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

Issue 1780503002: Split off CPDF_Document into its own .cpp/.h files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. Created 4 years, 9 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
« no previous file with comments | « fpdfsdk/src/fpdfsave.cpp ('k') | fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fpdfapi/cpdf_document.h"
11 #include "core/include/fxcodec/fx_codec.h" 12 #include "core/include/fxcodec/fx_codec.h"
12 #include "core/include/fxcrt/fx_safe_types.h" 13 #include "core/include/fxcrt/fx_safe_types.h"
13 #include "fpdfsdk/include/fsdk_define.h" 14 #include "fpdfsdk/include/fsdk_define.h"
14 #include "fpdfsdk/include/fsdk_mgr.h" 15 #include "fpdfsdk/include/fsdk_mgr.h"
15 #include "fpdfsdk/include/fsdk_rendercontext.h" 16 #include "fpdfsdk/include/fsdk_rendercontext.h"
16 #include "fpdfsdk/include/javascript/IJavaScript.h" 17 #include "fpdfsdk/include/javascript/IJavaScript.h"
17 #include "public/fpdf_ext.h" 18 #include "public/fpdf_ext.h"
18 #include "public/fpdf_progressive.h" 19 #include "public/fpdf_progressive.h"
19 #include "third_party/base/numerics/safe_conversions_impl.h" 20 #include "third_party/base/numerics/safe_conversions_impl.h"
20 21
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 if (!buffer) { 1135 if (!buffer) {
1135 *buflen = len; 1136 *buflen = len;
1136 } else if (*buflen >= len) { 1137 } else if (*buflen >= len) {
1137 memcpy(buffer, utf16Name.c_str(), len); 1138 memcpy(buffer, utf16Name.c_str(), len);
1138 *buflen = len; 1139 *buflen = len;
1139 } else { 1140 } else {
1140 *buflen = -1; 1141 *buflen = -1;
1141 } 1142 }
1142 return (FPDF_DEST)pDestObj; 1143 return (FPDF_DEST)pDestObj;
1143 } 1144 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfsave.cpp ('k') | fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698