| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 int start_char_index, | 97 int start_char_index, |
| 98 uint32_t* out_len, | 98 uint32_t* out_len, |
| 99 double* out_font_size, | 99 double* out_font_size, |
| 100 pp::FloatRect* out_bounds) override; | 100 pp::FloatRect* out_bounds) override; |
| 101 bool GetPrintScaling() override; | 101 bool GetPrintScaling() override; |
| 102 int GetCopiesToPrint() override; | 102 int GetCopiesToPrint() override; |
| 103 int GetDuplexType() override; | 103 int GetDuplexType() override; |
| 104 bool GetPageSizeAndUniformity(pp::Size* size) override; | 104 bool GetPageSizeAndUniformity(pp::Size* size) override; |
| 105 void AppendBlankPages(int num_pages) override; | 105 void AppendBlankPages(int num_pages) override; |
| 106 void AppendPage(PDFEngine* engine, int index) override; | 106 void AppendPage(PDFEngine* engine, int index) override; |
| 107 pp::Point GetScrollPosition() override; | |
| 108 void SetScrollPosition(const pp::Point& position) override; | |
| 109 bool IsProgressiveLoad() override; | 107 bool IsProgressiveLoad() override; |
| 110 std::string GetMetadata(const std::string& key) override; | 108 std::string GetMetadata(const std::string& key) override; |
| 111 | 109 |
| 112 // DocumentLoader::Client implementation. | 110 // DocumentLoader::Client implementation. |
| 113 pp::Instance* GetPluginInstance() override; | 111 pp::Instance* GetPluginInstance() override; |
| 114 pp::URLLoader CreateURLLoader() override; | 112 pp::URLLoader CreateURLLoader() override; |
| 115 void OnPartialDocumentLoaded() override; | 113 void OnPartialDocumentLoaded() override; |
| 116 void OnPendingRequestComplete() override; | 114 void OnPendingRequestComplete() override; |
| 117 void OnNewDataAvailable() override; | 115 void OnNewDataAvailable() override; |
| 118 void OnDocumentComplete() override; | 116 void OnDocumentComplete() override; |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 752 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
| 755 int pdf_buffer_size, | 753 int pdf_buffer_size, |
| 756 int page_number, | 754 int page_number, |
| 757 double* width, | 755 double* width, |
| 758 double* height) override; | 756 double* height) override; |
| 759 }; | 757 }; |
| 760 | 758 |
| 761 } // namespace chrome_pdf | 759 } // namespace chrome_pdf |
| 762 | 760 |
| 763 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 761 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
| OLD | NEW |