Chromium Code Reviews| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 240 virtual void PaintThumbnail(pp::ImageData* image_data, int index) = 0; | 240 virtual void PaintThumbnail(pp::ImageData* image_data, int index) = 0; |
| 241 // Set color / grayscale rendering modes. | 241 // Set color / grayscale rendering modes. |
| 242 virtual void SetGrayscale(bool grayscale) = 0; | 242 virtual void SetGrayscale(bool grayscale) = 0; |
| 243 // Callback for timer that's set with ScheduleCallback(). | 243 // Callback for timer that's set with ScheduleCallback(). |
| 244 virtual void OnCallback(int id) = 0; | 244 virtual void OnCallback(int id) = 0; |
| 245 // Gets the JSON representation of the PDF file | 245 // Gets the JSON representation of the PDF file |
| 246 virtual std::string GetPageAsJSON(int index) = 0; | 246 virtual std::string GetPageAsJSON(int index) = 0; |
| 247 // Gets the PDF document's print scaling preference. True if the document can | 247 // Gets the PDF document's print scaling preference. True if the document can |
| 248 // be scaled to fit. | 248 // be scaled to fit. |
| 249 virtual bool GetPrintScaling() = 0; | 249 virtual bool GetPrintScaling() = 0; |
| 250 // Gets the number of copies to be printed. | |
| 251 virtual int GetNumCopies() = 0; | |
|
Vitaly Buka (NO REVIEWS)
2014/07/10 01:13:05
name
Nikhil
2014/07/16 13:52:55
Done.
| |
| 250 | 252 |
| 251 // Append blank pages to make a 1-page document to a |num_pages| document. | 253 // Append blank pages to make a 1-page document to a |num_pages| document. |
| 252 // Always retain the first page data. | 254 // Always retain the first page data. |
| 253 virtual void AppendBlankPages(int num_pages) = 0; | 255 virtual void AppendBlankPages(int num_pages) = 0; |
| 254 // Append the first page of the document loaded with the |engine| to this | 256 // Append the first page of the document loaded with the |engine| to this |
| 255 // document at page |index|. | 257 // document at page |index|. |
| 256 virtual void AppendPage(PDFEngine* engine, int index) = 0; | 258 virtual void AppendPage(PDFEngine* engine, int index) = 0; |
| 257 | 259 |
| 258 // Allow client to query and reset scroll positions in document coordinates. | 260 // Allow client to query and reset scroll positions in document coordinates. |
| 259 // Note that this is meant for cases where the device scale factor changes, | 261 // Note that this is meant for cases where the device scale factor changes, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 310 void* bitmap_buffer) = 0; | 312 void* bitmap_buffer) = 0; |
| 311 virtual bool GetPDFDocInfo(const void* pdf_buffer, | 313 virtual bool GetPDFDocInfo(const void* pdf_buffer, |
| 312 int buffer_size, | 314 int buffer_size, |
| 313 int* page_count, | 315 int* page_count, |
| 314 double* max_page_width) = 0; | 316 double* max_page_width) = 0; |
| 315 }; | 317 }; |
| 316 | 318 |
| 317 } // namespace chrome_pdf | 319 } // namespace chrome_pdf |
| 318 | 320 |
| 319 #endif // PDF_PDF_ENGINE_H_ | 321 #endif // PDF_PDF_ENGINE_H_ |
| OLD | NEW |