| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual std::string GetPageAsJSON(int index); | 92 virtual std::string GetPageAsJSON(int index); |
| 93 virtual bool GetPrintScaling(); | 93 virtual bool GetPrintScaling(); |
| 94 virtual int GetCopiesToPrint(); | 94 virtual int GetCopiesToPrint(); |
| 95 virtual int GetDuplexType(); | 95 virtual int GetDuplexType(); |
| 96 virtual bool GetPageSizeAndUniformity(pp::Size* size); | 96 virtual bool GetPageSizeAndUniformity(pp::Size* size); |
| 97 virtual void AppendBlankPages(int num_pages); | 97 virtual void AppendBlankPages(int num_pages); |
| 98 virtual void AppendPage(PDFEngine* engine, int index); | 98 virtual void AppendPage(PDFEngine* engine, int index); |
| 99 virtual pp::Point GetScrollPosition(); | 99 virtual pp::Point GetScrollPosition(); |
| 100 virtual void SetScrollPosition(const pp::Point& position); | 100 virtual void SetScrollPosition(const pp::Point& position); |
| 101 virtual bool IsProgressiveLoad(); | 101 virtual bool IsProgressiveLoad(); |
| 102 virtual std::string GetMetadata(const std::string& key); |
| 102 | 103 |
| 103 // DocumentLoader::Client implementation. | 104 // DocumentLoader::Client implementation. |
| 104 virtual pp::Instance* GetPluginInstance(); | 105 virtual pp::Instance* GetPluginInstance(); |
| 105 virtual pp::URLLoader CreateURLLoader(); | 106 virtual pp::URLLoader CreateURLLoader(); |
| 106 virtual void OnPartialDocumentLoaded(); | 107 virtual void OnPartialDocumentLoaded(); |
| 107 virtual void OnPendingRequestComplete(); | 108 virtual void OnPendingRequestComplete(); |
| 108 virtual void OnNewDataAvailable(); | 109 virtual void OnNewDataAvailable(); |
| 109 virtual void OnDocumentComplete(); | 110 virtual void OnDocumentComplete(); |
| 110 | 111 |
| 111 void UnsupportedFeature(int type); | 112 void UnsupportedFeature(int type); |
| (...skipping 639 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 |