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

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

Issue 2642493002: Add hooks to PDFium PostScript code (Closed)
Patch Set: Created 3 years, 11 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 | « pdf/pdfium/fuzzers/BUILD.gn ('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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 #if defined(OS_WIN) 768 #if defined(OS_WIN)
769 bool RenderPDFPageToDC(const void* pdf_buffer, 769 bool RenderPDFPageToDC(const void* pdf_buffer,
770 int buffer_size, 770 int buffer_size,
771 int page_number, 771 int page_number,
772 const RenderingSettings& settings, 772 const RenderingSettings& settings,
773 HDC dc) override; 773 HDC dc) override;
774 void SetPDFEnsureTypefaceCharactersAccessible( 774 void SetPDFEnsureTypefaceCharactersAccessible(
775 PDFEnsureTypefaceCharactersAccessible func) override; 775 PDFEnsureTypefaceCharactersAccessible func) override;
776 776
777 void SetPDFUseGDIPrinting(bool enable) override; 777 void SetPDFUseGDIPrinting(bool enable) override;
778
779 void SetPDFPostscriptPrintingLevel(int postscript_level) override;
778 #endif // defined(OS_WIN) 780 #endif // defined(OS_WIN)
779 bool RenderPDFPageToBitmap(const void* pdf_buffer, 781 bool RenderPDFPageToBitmap(const void* pdf_buffer,
780 int pdf_buffer_size, 782 int pdf_buffer_size,
781 int page_number, 783 int page_number,
782 const RenderingSettings& settings, 784 const RenderingSettings& settings,
783 void* bitmap_buffer) override; 785 void* bitmap_buffer) override;
784 bool GetPDFDocInfo(const void* pdf_buffer, 786 bool GetPDFDocInfo(const void* pdf_buffer,
785 int buffer_size, 787 int buffer_size,
786 int* page_count, 788 int* page_count,
787 double* max_page_width) override; 789 double* max_page_width) override;
788 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 790 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
789 int pdf_buffer_size, 791 int pdf_buffer_size,
790 int page_number, 792 int page_number,
791 double* width, 793 double* width,
792 double* height) override; 794 double* height) override;
793 }; 795 };
794 796
795 } // namespace chrome_pdf 797 } // namespace chrome_pdf
796 798
797 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 799 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdfium/fuzzers/BUILD.gn ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698