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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void AppendPage(PDFEngine* engine, int index) override; | 107 void AppendPage(PDFEngine* engine, int index) override; |
108 #if defined(PDF_ENABLE_XFA) | 108 #if defined(PDF_ENABLE_XFA) |
109 void SetScrollPosition(const pp::Point& position) override; | 109 void SetScrollPosition(const pp::Point& position) override; |
110 #endif | 110 #endif |
111 bool IsProgressiveLoad() override; | 111 bool IsProgressiveLoad() override; |
112 std::string GetMetadata(const std::string& key) override; | 112 std::string GetMetadata(const std::string& key) override; |
113 | 113 |
114 // DocumentLoader::Client implementation. | 114 // DocumentLoader::Client implementation. |
115 pp::Instance* GetPluginInstance() override; | 115 pp::Instance* GetPluginInstance() override; |
116 pp::URLLoader CreateURLLoader() override; | 116 pp::URLLoader CreateURLLoader() override; |
| 117 void OnGotActualURL(const std::string& url) override; |
117 void OnPartialDocumentLoaded() override; | 118 void OnPartialDocumentLoaded() override; |
118 void OnPendingRequestComplete() override; | 119 void OnPendingRequestComplete() override; |
119 void OnNewDataAvailable() override; | 120 void OnNewDataAvailable() override; |
120 void OnDocumentComplete() override; | 121 void OnDocumentComplete() override; |
121 | 122 |
122 void UnsupportedFeature(int type); | 123 void UnsupportedFeature(int type); |
123 | 124 |
124 std::string current_find_text() const { return current_find_text_; } | 125 std::string current_find_text() const { return current_find_text_; } |
125 | 126 |
126 FPDF_DOCUMENT doc() { return doc_; } | 127 FPDF_DOCUMENT doc() { return doc_; } |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 773 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
773 int pdf_buffer_size, | 774 int pdf_buffer_size, |
774 int page_number, | 775 int page_number, |
775 double* width, | 776 double* width, |
776 double* height) override; | 777 double* height) override; |
777 }; | 778 }; |
778 | 779 |
779 } // namespace chrome_pdf | 780 } // namespace chrome_pdf |
780 | 781 |
781 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 782 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |