| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 has finished loading. | 162 // Notifies the client that the document has finished loading. |
| 163 virtual void DocumentLoadComplete(int page_count) = 0; | 163 virtual void DocumentLoadComplete(int page_count) = 0; |
| 164 | 164 |
| 165 // Notifies the client that the document has failed to load. | 165 // Notifies the client that the document has failed to load. |
| 166 virtual void DocumentLoadFailed() = 0; | 166 virtual void DocumentLoadFailed() = 0; |
| 167 | 167 |
| 168 // Notifies the client that the document has requested substitute fonts. |
| 169 virtual void FontSubstituted() = 0; |
| 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; |
| 172 | 175 |
| 173 // Notifies the client about document load progress. | 176 // Notifies the client about document load progress. |
| 174 virtual void DocumentLoadProgress(uint32_t available, | 177 virtual void DocumentLoadProgress(uint32_t available, |
| 175 uint32_t doc_size) = 0; | 178 uint32_t doc_size) = 0; |
| 176 | 179 |
| 177 // Notifies the client about focus changes for form text fields. | 180 // Notifies the client about focus changes for form text fields. |
| (...skipping 178 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 |