Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: pdf/pdf_engine.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PPB_Printing_Dev changes Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual void PaintThumbnail(pp::ImageData* image_data, int index) = 0; 237 virtual void PaintThumbnail(pp::ImageData* image_data, int index) = 0;
238 // Set color / grayscale rendering modes. 238 // Set color / grayscale rendering modes.
239 virtual void SetGrayscale(bool grayscale) = 0; 239 virtual void SetGrayscale(bool grayscale) = 0;
240 // Callback for timer that's set with ScheduleCallback(). 240 // Callback for timer that's set with ScheduleCallback().
241 virtual void OnCallback(int id) = 0; 241 virtual void OnCallback(int id) = 0;
242 // Gets the JSON representation of the PDF file 242 // Gets the JSON representation of the PDF file
243 virtual std::string GetPageAsJSON(int index) = 0; 243 virtual std::string GetPageAsJSON(int index) = 0;
244 // Gets the PDF document's print scaling preference. True if the document can 244 // Gets the PDF document's print scaling preference. True if the document can
245 // be scaled to fit. 245 // be scaled to fit.
246 virtual bool GetPrintScaling() = 0; 246 virtual bool GetPrintScaling() = 0;
247 // Gets the number of copies to be printed.
248 virtual int GetCopiesToPrint() = 0;
247 249
248 // Append blank pages to make a 1-page document to a |num_pages| document. 250 // Append blank pages to make a 1-page document to a |num_pages| document.
249 // Always retain the first page data. 251 // Always retain the first page data.
250 virtual void AppendBlankPages(int num_pages) = 0; 252 virtual void AppendBlankPages(int num_pages) = 0;
251 // Append the first page of the document loaded with the |engine| to this 253 // Append the first page of the document loaded with the |engine| to this
252 // document at page |index|. 254 // document at page |index|.
253 virtual void AppendPage(PDFEngine* engine, int index) = 0; 255 virtual void AppendPage(PDFEngine* engine, int index) = 0;
254 256
255 // Allow client to query and reset scroll positions in document coordinates. 257 // Allow client to query and reset scroll positions in document coordinates.
256 // Note that this is meant for cases where the device scale factor changes, 258 // Note that this is meant for cases where the device scale factor changes,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 315
314 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 316 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
315 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 317 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
316 int pdf_buffer_size, int page_number, 318 int pdf_buffer_size, int page_number,
317 double* width, double* height) = 0; 319 double* width, double* height) = 0;
318 }; 320 };
319 321
320 } // namespace chrome_pdf 322 } // namespace chrome_pdf
321 323
322 #endif // PDF_PDF_ENGINE_H_ 324 #endif // PDF_PDF_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698