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

Side by Side Diff: pdf/pdfium/pdfium_engine.h

Issue 1132293005: Roll PDFium to f33cdd5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace Created 5 years, 7 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 | « DEPS ('k') | pdf/pdfium/pdfium_engine.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 struct DownloadHints : public FX_DOWNLOADHINTS { 186 struct DownloadHints : public FX_DOWNLOADHINTS {
187 DocumentLoader* loader; 187 DocumentLoader* loader;
188 }; 188 };
189 189
190 // PDFium interface to get block of data. 190 // PDFium interface to get block of data.
191 static int GetBlock(void* param, unsigned long position, 191 static int GetBlock(void* param, unsigned long position,
192 unsigned char* buffer, unsigned long size); 192 unsigned char* buffer, unsigned long size);
193 193
194 // PDFium interface to check is block of data is available. 194 // PDFium interface to check is block of data is available.
195 static bool IsDataAvail(FX_FILEAVAIL* param, 195 static FPDF_BOOL IsDataAvail(FX_FILEAVAIL* param,
196 size_t offset, size_t size); 196 size_t offset, size_t size);
197 197
198 // PDFium interface to request download of the block of data. 198 // PDFium interface to request download of the block of data.
199 static void AddSegment(FX_DOWNLOADHINTS* param, 199 static void AddSegment(FX_DOWNLOADHINTS* param,
200 size_t offset, size_t size); 200 size_t offset, size_t size);
201 201
202 // We finished getting the pdf file, so load it. This will complete 202 // We finished getting the pdf file, so load it. This will complete
203 // asynchronously (due to password fetching) and may be run multiple times. 203 // asynchronously (due to password fetching) and may be run multiple times.
204 void LoadDocument(); 204 void LoadDocument();
205 205
206 // Try loading the document. Returns true if the document is successfully 206 // Try loading the document. Returns true if the document is successfully
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 753
754 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 754 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
755 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 755 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
756 int pdf_buffer_size, int page_number, 756 int pdf_buffer_size, int page_number,
757 double* width, double* height); 757 double* width, double* height);
758 }; 758 };
759 759
760 } // namespace chrome_pdf 760 } // namespace chrome_pdf
761 761
762 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 762 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698