| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 107 pp::Point GetScrollPosition() override; |
| 108 void SetScrollPosition(const pp::Point& position) override; | 108 void SetScrollPosition(const pp::Point& position) override; |
| 109 bool IsProgressiveLoad() override; | 109 bool IsProgressiveLoad() override; |
| 110 std::string GetMetadata(const std::string& key) override; | 110 std::string GetMetadata(const std::string& key) override; |
| 111 std::vector<pp::Rect> GetLinkRects() override; |
| 111 | 112 |
| 112 // DocumentLoader::Client implementation. | 113 // DocumentLoader::Client implementation. |
| 113 pp::Instance* GetPluginInstance() override; | 114 pp::Instance* GetPluginInstance() override; |
| 114 pp::URLLoader CreateURLLoader() override; | 115 pp::URLLoader CreateURLLoader() override; |
| 115 void OnPartialDocumentLoaded() override; | 116 void OnPartialDocumentLoaded() override; |
| 116 void OnPendingRequestComplete() override; | 117 void OnPendingRequestComplete() override; |
| 117 void OnNewDataAvailable() override; | 118 void OnNewDataAvailable() override; |
| 118 void OnDocumentComplete() override; | 119 void OnDocumentComplete() override; |
| 119 | 120 |
| 120 void UnsupportedFeature(int type); | 121 void UnsupportedFeature(int type); |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 755 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
| 755 int pdf_buffer_size, | 756 int pdf_buffer_size, |
| 756 int page_number, | 757 int page_number, |
| 757 double* width, | 758 double* width, |
| 758 double* height) override; | 759 double* height) override; |
| 759 }; | 760 }; |
| 760 | 761 |
| 761 } // namespace chrome_pdf | 762 } // namespace chrome_pdf |
| 762 | 763 |
| 763 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 764 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
| OLD | NEW |