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

Unified Diff: pdf/pdf_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdf_engine.h
diff --git a/pdf/pdf_engine.h b/pdf/pdf_engine.h
index 334e2cc5ed54674c69e9d7dd5e9b20c9c68e34a4..4c7ce6335d671aa1e82c7976da7dd7c437ad256f 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -333,9 +333,8 @@ class PDFEngineExports {
static PDFEngineExports* Get();
#if defined(OS_WIN)
- // See the definition of RenderPDFPageToDC in pdf.cc for details.
- virtual bool RenderPDFPageToDC(const void* pdf_buffer,
- int buffer_size,
+ // See the definitions of the corresponding functions in pdf.h for details.
+ virtual bool RenderPDFPageToDC(void* pdf_handle,
int page_number,
const RenderingSettings& settings,
HDC dc) = 0;
@@ -346,9 +345,7 @@ class PDFEngineExports {
virtual void SetPDFUseGDIPrinting(bool enable) = 0;
#endif // defined(OS_WIN)
- // See the definition of RenderPDFPageToBitmap in pdf.cc for details.
- virtual bool RenderPDFPageToBitmap(const void* pdf_buffer,
- int pdf_buffer_size,
+ virtual bool RenderPDFPageToBitmap(void* pdf_handle,
int page_number,
const RenderingSettings& settings,
void* bitmap_buffer) = 0;
@@ -356,12 +353,15 @@ class PDFEngineExports {
virtual bool GetPDFDocInfo(const void* pdf_buffer,
int buffer_size,
int* page_count,
- double* max_page_width) = 0;
+ double* max_page_width,
+ void** pdf_handle) = 0;
- // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
- virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
- int pdf_buffer_size, int page_number,
- double* width, double* height) = 0;
+ virtual void ReleasePDFHandle(void* pdf_handle) = 0;
+
+ virtual bool GetPDFPageSizeByIndex(void* pdf_handle,
+ int page_number,
+ double* width,
+ double* height) = 0;
};
} // namespace chrome_pdf
« no previous file with comments | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698