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_PDF_ENGINE_H_ | 5 #ifndef PDF_PDF_ENGINE_H_ |
6 #define PDF_PDF_ENGINE_H_ | 6 #define PDF_PDF_ENGINE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 int length; | 152 int length; |
153 }; | 153 }; |
154 virtual void SearchString(const base::char16* string, | 154 virtual void SearchString(const base::char16* string, |
155 const base::char16* term, | 155 const base::char16* term, |
156 bool case_sensitive, | 156 bool case_sensitive, |
157 std::vector<SearchStringResult>* results) = 0; | 157 std::vector<SearchStringResult>* results) = 0; |
158 | 158 |
159 // Notifies the client that the engine has painted a page from the document. | 159 // Notifies the client that the engine has painted a page from the document. |
160 virtual void DocumentPaintOccurred() = 0; | 160 virtual void DocumentPaintOccurred() = 0; |
161 | 161 |
| 162 // Notifies the client that the document at |url| loaded. |
| 163 virtual void OnGotActualURL(const std::string& url) = 0; |
| 164 |
162 // Notifies the client that the document has finished loading. | 165 // Notifies the client that the document has finished loading. |
163 virtual void DocumentLoadComplete(int page_count) = 0; | 166 virtual void DocumentLoadComplete(int page_count) = 0; |
164 | 167 |
165 // Notifies the client that the document has failed to load. | 168 // Notifies the client that the document has failed to load. |
166 virtual void DocumentLoadFailed() = 0; | 169 virtual void DocumentLoadFailed() = 0; |
167 | 170 |
168 virtual pp::Instance* GetPluginInstance() = 0; | 171 virtual pp::Instance* GetPluginInstance() = 0; |
169 | 172 |
170 // Notifies that an unsupported feature in the PDF was encountered. | 173 // Notifies that an unsupported feature in the PDF was encountered. |
171 virtual void DocumentHasUnsupportedFeature(const std::string& feature) = 0; | 174 virtual void DocumentHasUnsupportedFeature(const std::string& feature) = 0; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 | 359 |
357 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 360 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
358 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 361 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
359 int pdf_buffer_size, int page_number, | 362 int pdf_buffer_size, int page_number, |
360 double* width, double* height) = 0; | 363 double* width, double* height) = 0; |
361 }; | 364 }; |
362 | 365 |
363 } // namespace chrome_pdf | 366 } // namespace chrome_pdf |
364 | 367 |
365 #endif // PDF_PDF_ENGINE_H_ | 368 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |