| 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_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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 | 764 |
| 765 DISALLOW_COPY_AND_ASSIGN(ScopedSubstFont); | 765 DISALLOW_COPY_AND_ASSIGN(ScopedSubstFont); |
| 766 }; | 766 }; |
| 767 | 767 |
| 768 class PDFiumEngineExports : public PDFEngineExports { | 768 class PDFiumEngineExports : public PDFEngineExports { |
| 769 public: | 769 public: |
| 770 PDFiumEngineExports() {} | 770 PDFiumEngineExports() {} |
| 771 | 771 |
| 772 // PDFEngineExports: | 772 // PDFEngineExports: |
| 773 #if defined(OS_WIN) | 773 #if defined(OS_WIN) |
| 774 bool RenderPDFPageToDC(void* pdf_handle, | 774 bool RenderPDFPageToDC(const void* pdf_buffer, |
| 775 int buffer_size, |
| 775 int page_number, | 776 int page_number, |
| 776 const RenderingSettings& settings, | 777 const RenderingSettings& settings, |
| 777 HDC dc) override; | 778 HDC dc) override; |
| 778 void SetPDFEnsureTypefaceCharactersAccessible( | 779 void SetPDFEnsureTypefaceCharactersAccessible( |
| 779 PDFEnsureTypefaceCharactersAccessible func) override; | 780 PDFEnsureTypefaceCharactersAccessible func) override; |
| 780 | 781 |
| 781 void SetPDFUseGDIPrinting(bool enable) override; | 782 void SetPDFUseGDIPrinting(bool enable) override; |
| 782 #endif // defined(OS_WIN) | 783 #endif // defined(OS_WIN) |
| 783 bool RenderPDFPageToBitmap(void* pdf_handle, | 784 bool RenderPDFPageToBitmap(const void* pdf_buffer, |
| 785 int pdf_buffer_size, |
| 784 int page_number, | 786 int page_number, |
| 785 const RenderingSettings& settings, | 787 const RenderingSettings& settings, |
| 786 void* bitmap_buffer) override; | 788 void* bitmap_buffer) override; |
| 787 bool GetPDFDocInfo(const void* pdf_buffer, | 789 bool GetPDFDocInfo(const void* pdf_buffer, |
| 788 int buffer_size, | 790 int buffer_size, |
| 789 int* page_count, | 791 int* page_count, |
| 790 double* max_page_width, | 792 double* max_page_width) override; |
| 791 void** pdf_handle) override; | 793 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
| 792 void ReleasePDFHandle(void* pdf_handle) override; | 794 int pdf_buffer_size, |
| 793 bool GetPDFPageSizeByIndex(void* pdf_handle, | |
| 794 int page_number, | 795 int page_number, |
| 795 double* width, | 796 double* width, |
| 796 double* height) override; | 797 double* height) override; |
| 797 }; | 798 }; |
| 798 | 799 |
| 799 } // namespace chrome_pdf | 800 } // namespace chrome_pdf |
| 800 | 801 |
| 801 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 802 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
| OLD | NEW |