OLD | NEW |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual int GetMostVisiblePage(); | 86 virtual int GetMostVisiblePage(); |
87 virtual pp::Rect GetPageRect(int index); | 87 virtual pp::Rect GetPageRect(int index); |
88 virtual pp::Rect GetPageContentsRect(int index); | 88 virtual pp::Rect GetPageContentsRect(int index); |
89 virtual int GetVerticalScrollbarYPosition() { return position_.y(); } | 89 virtual int GetVerticalScrollbarYPosition() { return position_.y(); } |
90 virtual void PaintThumbnail(pp::ImageData* image_data, int index); | 90 virtual void PaintThumbnail(pp::ImageData* image_data, int index); |
91 virtual void SetGrayscale(bool grayscale); | 91 virtual void SetGrayscale(bool grayscale); |
92 virtual void OnCallback(int id); | 92 virtual void OnCallback(int id); |
93 virtual std::string GetPageAsJSON(int index); | 93 virtual std::string GetPageAsJSON(int index); |
94 virtual bool GetPrintScaling(); | 94 virtual bool GetPrintScaling(); |
95 virtual int GetCopiesToPrint(); | 95 virtual int GetCopiesToPrint(); |
| 96 virtual int GetDuplexType(); |
96 virtual void AppendBlankPages(int num_pages); | 97 virtual void AppendBlankPages(int num_pages); |
97 virtual void AppendPage(PDFEngine* engine, int index); | 98 virtual void AppendPage(PDFEngine* engine, int index); |
98 virtual pp::Point GetScrollPosition(); | 99 virtual pp::Point GetScrollPosition(); |
99 virtual void SetScrollPosition(const pp::Point& position); | 100 virtual void SetScrollPosition(const pp::Point& position); |
100 virtual bool IsProgressiveLoad(); | 101 virtual bool IsProgressiveLoad(); |
101 | 102 |
102 // DocumentLoader::Client implementation. | 103 // DocumentLoader::Client implementation. |
103 virtual pp::Instance* GetPluginInstance(); | 104 virtual pp::Instance* GetPluginInstance(); |
104 virtual pp::URLLoader CreateURLLoader(); | 105 virtual pp::URLLoader CreateURLLoader(); |
105 virtual void OnPartialDocumentLoaded(); | 106 virtual void OnPartialDocumentLoaded(); |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 | 752 |
752 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 753 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
753 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 754 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
754 int pdf_buffer_size, int page_number, | 755 int pdf_buffer_size, int page_number, |
755 double* width, double* height); | 756 double* width, double* height); |
756 }; | 757 }; |
757 | 758 |
758 } // namespace chrome_pdf | 759 } // namespace chrome_pdf |
759 | 760 |
760 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 761 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |