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

Side by Side Diff: pdf/pdfium/pdfium_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: Redid comments to conform to the style of existing comment. Rename parameters for same reason. 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_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, 607 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer,
608 int pdf_buffer_size, 608 int pdf_buffer_size,
609 int page_number, 609 int page_number,
610 const RenderingSettings& settings, 610 const RenderingSettings& settings,
611 void* bitmap_buffer); 611 void* bitmap_buffer);
612 612
613 virtual bool GetPDFDocInfo(const void* pdf_buffer, 613 virtual bool GetPDFDocInfo(const void* pdf_buffer,
614 int buffer_size, 614 int buffer_size,
615 int* page_count, 615 int* page_count,
616 double* max_page_width); 616 double* max_page_width);
617
618 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
619 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
620 int pdf_buffer_size, int page_number,
621 double* width, double* height);
617 }; 622 };
618 623
619 } // namespace chrome_pdf 624 } // namespace chrome_pdf
620 625
621 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 626 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698