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

Side by Side Diff: fpdfsdk/fpdf_dataavail.cpp

Issue 2392603004: Move core/fpdfapi/fpdf_parser to core/fpdfapi/parser (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/formfiller/cffl_interactiveformfiller.cpp ('k') | fpdfsdk/fpdf_ext.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/fpdf_dataavail.h" 7 #include "public/fpdf_dataavail.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "core/fpdfapi/fpdf_parser/cpdf_data_avail.h" 12 #include "core/fpdfapi/parser/cpdf_data_avail.h"
13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" 13 #include "core/fpdfapi/parser/cpdf_document.h"
14 #include "fpdfsdk/fsdk_define.h" 14 #include "fpdfsdk/fsdk_define.h"
15 #include "public/fpdf_formfill.h" 15 #include "public/fpdf_formfill.h"
16 #include "third_party/base/ptr_util.h" 16 #include "third_party/base/ptr_util.h"
17 17
18 // These checks are here because core/ and public/ cannot depend on each other. 18 // These checks are here because core/ and public/ cannot depend on each other.
19 static_assert(CPDF_DataAvail::DataError == PDF_DATA_ERROR, 19 static_assert(CPDF_DataAvail::DataError == PDF_DATA_ERROR,
20 "CPDF_DataAvail::DataError value mismatch"); 20 "CPDF_DataAvail::DataError value mismatch");
21 static_assert(CPDF_DataAvail::DataNotAvailable == PDF_DATA_NOTAVAIL, 21 static_assert(CPDF_DataAvail::DataNotAvailable == PDF_DATA_NOTAVAIL,
22 "CPDF_DataAvail::DataNotAvailable value mismatch"); 22 "CPDF_DataAvail::DataNotAvailable value mismatch");
23 static_assert(CPDF_DataAvail::DataAvailable == PDF_DATA_AVAIL, 23 static_assert(CPDF_DataAvail::DataAvailable == PDF_DATA_AVAIL,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 CFPDF_DownloadHintsWrap hints_wrap(hints); 180 CFPDF_DownloadHintsWrap hints_wrap(hints);
181 return CFPDFDataAvailFromFPDFAvail(avail)->m_pDataAvail->IsFormAvail( 181 return CFPDFDataAvailFromFPDFAvail(avail)->m_pDataAvail->IsFormAvail(
182 &hints_wrap); 182 &hints_wrap);
183 } 183 }
184 184
185 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail) { 185 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail) {
186 if (!avail) 186 if (!avail)
187 return PDF_LINEARIZATION_UNKNOWN; 187 return PDF_LINEARIZATION_UNKNOWN;
188 return CFPDFDataAvailFromFPDFAvail(avail)->m_pDataAvail->IsLinearizedPDF(); 188 return CFPDFDataAvailFromFPDFAvail(avail)->m_pDataAvail->IsLinearizedPDF();
189 } 189 }
OLDNEW
« no previous file with comments | « fpdfsdk/formfiller/cffl_interactiveformfiller.cpp ('k') | fpdfsdk/fpdf_ext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698