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 "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 virtual void DocumentHasUnsupportedFeature(const std::string& feature) = 0; | 166 virtual void DocumentHasUnsupportedFeature(const std::string& feature) = 0; |
167 | 167 |
168 // Notifies the client about document load progress. | 168 // Notifies the client about document load progress. |
169 virtual void DocumentLoadProgress(uint32 available, uint32 doc_size) = 0; | 169 virtual void DocumentLoadProgress(uint32 available, uint32 doc_size) = 0; |
170 | 170 |
171 // Notifies the client about focus changes for form text fields. | 171 // Notifies the client about focus changes for form text fields. |
172 virtual void FormTextFieldFocusChange(bool in_focus) = 0; | 172 virtual void FormTextFieldFocusChange(bool in_focus) = 0; |
173 | 173 |
174 // Returns true if the plugin has been opened within print preview. | 174 // Returns true if the plugin has been opened within print preview. |
175 virtual bool IsPrintPreview() = 0; | 175 virtual bool IsPrintPreview() = 0; |
| 176 |
| 177 virtual void IsSelectingChanged(bool is_selecting) = 0; |
176 }; | 178 }; |
177 | 179 |
178 // Factory method to create an instance of the PDF Engine. | 180 // Factory method to create an instance of the PDF Engine. |
179 static PDFEngine* Create(Client* client); | 181 static PDFEngine* Create(Client* client); |
180 | 182 |
181 virtual ~PDFEngine() {} | 183 virtual ~PDFEngine() {} |
182 // Most of these functions are similar to the Pepper functions of the same | 184 // Most of these functions are similar to the Pepper functions of the same |
183 // name, so not repeating the description here unless it's different. | 185 // name, so not repeating the description here unless it's different. |
184 virtual bool New(const char* url) = 0; | 186 virtual bool New(const char* url) = 0; |
185 virtual bool New(const char* url, | 187 virtual bool New(const char* url, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 316 |
315 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 317 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
316 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 318 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
317 int pdf_buffer_size, int page_number, | 319 int pdf_buffer_size, int page_number, |
318 double* width, double* height) = 0; | 320 double* width, double* height) = 0; |
319 }; | 321 }; |
320 | 322 |
321 } // namespace chrome_pdf | 323 } // namespace chrome_pdf |
322 | 324 |
323 #endif // PDF_PDF_ENGINE_H_ | 325 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |