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

Side by Side Diff: pdf/pdf_engine.h

Issue 376083002: Export a function from the PDF plugin to get the dimensions of a PDF page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments and a typo. Created 6 years, 5 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
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_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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 int page_number, 301 int page_number,
302 const RenderingSettings& settings, 302 const RenderingSettings& settings,
303 HDC dc) = 0; 303 HDC dc) = 0;
304 #endif // OS_WIN 304 #endif // OS_WIN
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
311 virtual bool GetPDFDocInfo(const void* pdf_buffer, 312 virtual bool GetPDFDocInfo(const void* pdf_buffer,
312 int buffer_size, 313 int buffer_size,
313 int* page_count, 314 int* page_count,
314 double* max_page_width) = 0; 315 double* max_page_width) = 0;
316
317 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
Dan Beam 2014/07/10 02:19:59 btw, I didn't know ^ the rest of the file follows
318 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
319 int pdf_buffer_size, int page_number,
320 double* width, double* height) = 0;
315 }; 321 };
316 322
317 } // namespace chrome_pdf 323 } // namespace chrome_pdf
318 324
319 #endif // PDF_PDF_ENGINE_H_ 325 #endif // PDF_PDF_ENGINE_H_
OLDNEW
« pdf/pdf.cc ('K') | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698