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

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

Issue 2508563003: Printing: Load the source PDF only once. (Closed)
Patch Set: More renaming Created 4 years, 1 month 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 | « pdf/pdf_engine.h ('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 <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
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(const void* pdf_buffer, 774 bool RenderPDFPageToDC(void* pdf_handle,
775 int buffer_size,
776 int page_number, 775 int page_number,
777 const RenderingSettings& settings, 776 const RenderingSettings& settings,
778 HDC dc) override; 777 HDC dc) override;
779 void SetPDFEnsureTypefaceCharactersAccessible( 778 void SetPDFEnsureTypefaceCharactersAccessible(
780 PDFEnsureTypefaceCharactersAccessible func) override; 779 PDFEnsureTypefaceCharactersAccessible func) override;
781 780
782 void SetPDFUseGDIPrinting(bool enable) override; 781 void SetPDFUseGDIPrinting(bool enable) override;
783 #endif // defined(OS_WIN) 782 #endif // defined(OS_WIN)
784 bool RenderPDFPageToBitmap(const void* pdf_buffer, 783 bool RenderPDFPageToBitmap(void* pdf_handle,
785 int pdf_buffer_size,
786 int page_number, 784 int page_number,
787 const RenderingSettings& settings, 785 const RenderingSettings& settings,
788 void* bitmap_buffer) override; 786 void* bitmap_buffer) override;
789 bool GetPDFDocInfo(const void* pdf_buffer, 787 bool GetPDFDocInfo(const void* pdf_buffer,
790 int buffer_size, 788 int buffer_size,
791 int* page_count, 789 int* page_count,
792 double* max_page_width) override; 790 double* max_page_width,
793 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 791 void** pdf_handle) override;
794 int pdf_buffer_size, 792 void ReleasePDFHandle(void* pdf_handle) override;
793 bool GetPDFPageSizeByIndex(void* pdf_handle,
795 int page_number, 794 int page_number,
796 double* width, 795 double* width,
797 double* height) override; 796 double* height) override;
798 }; 797 };
799 798
800 } // namespace chrome_pdf 799 } // namespace chrome_pdf
801 800
802 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 801 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698