| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual bool GetPDFDocInfo(const void* pdf_buffer, | 311 virtual bool GetPDFDocInfo(const void* pdf_buffer, |
| 312 int buffer_size, | 312 int buffer_size, |
| 313 int* page_count, | 313 int* page_count, |
| 314 double* max_page_width) = 0; | 314 double* max_page_width) = 0; |
| 315 |
| 316 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
| 317 int buffer_size, int index, |
| 318 double* width, double* height) = 0; |
| 315 }; | 319 }; |
| 316 | 320 |
| 317 } // namespace chrome_pdf | 321 } // namespace chrome_pdf |
| 318 | 322 |
| 319 #endif // PDF_PDF_ENGINE_H_ | 323 #endif // PDF_PDF_ENGINE_H_ |
| OLD | NEW |