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

Side by Side Diff: fpdfsdk/fpdfview.cpp

Issue 2197513004: Refactor fxge/fx_apple and fx_win header files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fixing nits Created 4 years, 4 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 | « core/fxge/win32/fx_win32_print.cpp ('k') | pdfium.gyp » ('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
(...skipping 22 matching lines...) Expand all
33 33
34 #ifdef PDF_ENABLE_XFA 34 #ifdef PDF_ENABLE_XFA
35 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h" 35 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h"
36 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" 36 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
37 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" 37 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h"
38 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" 38 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h"
39 #include "public/fpdf_formfill.h" 39 #include "public/fpdf_formfill.h"
40 #endif // PDF_ENABLE_XFA 40 #endif // PDF_ENABLE_XFA
41 41
42 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 42 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
43 #include "core/fxge/include/fx_ge_win32.h" 43 #include "core/fxge/include/cfx_windowsdevice.h"
44 #endif 44 #endif
45 45
46 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) { 46 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc) {
47 return static_cast<UnderlyingDocumentType*>(doc); 47 return static_cast<UnderlyingDocumentType*>(doc);
48 } 48 }
49 49
50 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc) { 50 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc) {
51 return static_cast<FPDF_DOCUMENT>(doc); 51 return static_cast<FPDF_DOCUMENT>(doc);
52 } 52 }
53 53
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 if (!buffer) { 1127 if (!buffer) {
1128 *buflen = len; 1128 *buflen = len;
1129 } else if (*buflen >= len) { 1129 } else if (*buflen >= len) {
1130 memcpy(buffer, utf16Name.c_str(), len); 1130 memcpy(buffer, utf16Name.c_str(), len);
1131 *buflen = len; 1131 *buflen = len;
1132 } else { 1132 } else {
1133 *buflen = -1; 1133 *buflen = -1;
1134 } 1134 }
1135 return (FPDF_DEST)pDestObj; 1135 return (FPDF_DEST)pDestObj;
1136 } 1136 }
OLDNEW
« no previous file with comments | « core/fxge/win32/fx_win32_print.cpp ('k') | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698