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

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: Fixed typo in comments. Moved all the comments over to pdf_engine.h. 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 ~ScopedUnsupportedFeature(); 590 ~ScopedUnsupportedFeature();
591 private: 591 private:
592 PDFiumEngine* engine_; 592 PDFiumEngine* engine_;
593 PDFiumEngine* old_engine_; 593 PDFiumEngine* old_engine_;
594 }; 594 };
595 595
596 class PDFiumEngineExports : public PDFEngineExports { 596 class PDFiumEngineExports : public PDFEngineExports {
597 public: 597 public:
598 PDFiumEngineExports() {} 598 PDFiumEngineExports() {}
599 #if defined(OS_WIN) 599 #if defined(OS_WIN)
600 // See the definition of RenderPDFPageToDC in pdf.cc for details.
601 virtual bool RenderPDFPageToDC(const void* pdf_buffer, 600 virtual bool RenderPDFPageToDC(const void* pdf_buffer,
602 int buffer_size, 601 int buffer_size,
603 int page_number, 602 int page_number,
604 const RenderingSettings& settings, 603 const RenderingSettings& settings,
605 HDC dc); 604 HDC dc);
606 #endif // OS_WIN 605 #endif // OS_WIN
607 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer, 606 virtual bool RenderPDFPageToBitmap(const void* pdf_buffer,
608 int pdf_buffer_size, 607 int pdf_buffer_size,
609 int page_number, 608 int page_number,
610 const RenderingSettings& settings, 609 const RenderingSettings& settings,
611 void* bitmap_buffer); 610 void* bitmap_buffer);
612 611
613 virtual bool GetPDFDocInfo(const void* pdf_buffer, 612 virtual bool GetPDFDocInfo(const void* pdf_buffer,
614 int buffer_size, 613 int buffer_size,
615 int* page_count, 614 int* page_count,
616 double* max_page_width); 615 double* max_page_width);
616
617 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
618 int pdf_buffer_size, int page_number,
619 double* width, double* height);
617 }; 620 };
618 621
619 } // namespace chrome_pdf 622 } // namespace chrome_pdf
620 623
621 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 624 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« pdf/pdf_engine.h ('K') | « 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