OLD | NEW |
---|---|
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_PDF_ENGINE_H_ | 5 #ifndef PDF_PDF_ENGINE_H_ |
6 #define PDF_PDF_ENGINE_H_ | 6 #define PDF_PDF_ENGINE_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
301 int page_number, | 301 int page_number, |
302 const RenderingSettings& settings, | 302 const RenderingSettings& settings, |
303 HDC dc) = 0; | 303 HDC dc) = 0; |
304 #endif // OS_WIN | 304 #endif // OS_WIN |
305 // See the definition of RenderPDFPageToBitmap in pdf.cc for details. | 305 // See the definition of RenderPDFPageToBitmap in pdf.cc for details. |
306 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, | 306 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, |
307 int pdf_buffer_size, | 307 int pdf_buffer_size, |
308 int page_number, | 308 int page_number, |
309 const RenderingSettings& settings, | 309 const RenderingSettings& settings, |
310 void* bitmap_buffer) = 0; | 310 void* bitmap_buffer) = 0; |
311 | |
311 virtual bool GetPDFDocInfo(const void* pdf_buffer, | 312 virtual bool GetPDFDocInfo(const void* pdf_buffer, |
312 int buffer_size, | 313 int buffer_size, |
313 int* page_count, | 314 int* page_count, |
314 double* max_page_width) = 0; | 315 double* max_page_width) = 0; |
316 | |
317 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | |
Dan Beam
2014/07/09 22:18:21
you should make the .cc file always adhere to the
ivandavid
2014/07/09 22:53:40
Done.
| |
318 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | |
319 int pdf_buffer_size, int page_number, | |
320 double* width, double* height) = 0; | |
315 }; | 321 }; |
316 | 322 |
317 } // namespace chrome_pdf | 323 } // namespace chrome_pdf |
318 | 324 |
319 #endif // PDF_PDF_ENGINE_H_ | 325 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |