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

Side by Side Diff: pdf/pdfium/pdfium_engine.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PDFIUM_PDFIUM_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual int GetFirstVisiblePage(); 82 virtual int GetFirstVisiblePage();
83 virtual int GetMostVisiblePage(); 83 virtual int GetMostVisiblePage();
84 virtual pp::Rect GetPageRect(int index); 84 virtual pp::Rect GetPageRect(int index);
85 virtual pp::Rect GetPageContentsRect(int index); 85 virtual pp::Rect GetPageContentsRect(int index);
86 virtual int GetVerticalScrollbarYPosition() { return position_.y(); } 86 virtual int GetVerticalScrollbarYPosition() { return position_.y(); }
87 virtual void PaintThumbnail(pp::ImageData* image_data, int index); 87 virtual void PaintThumbnail(pp::ImageData* image_data, int index);
88 virtual void SetGrayscale(bool grayscale); 88 virtual void SetGrayscale(bool grayscale);
89 virtual void OnCallback(int id); 89 virtual void OnCallback(int id);
90 virtual std::string GetPageAsJSON(int index); 90 virtual std::string GetPageAsJSON(int index);
91 virtual bool GetPrintScaling(); 91 virtual bool GetPrintScaling();
92 virtual int GetCopiesToPrint();
92 virtual void AppendBlankPages(int num_pages); 93 virtual void AppendBlankPages(int num_pages);
93 virtual void AppendPage(PDFEngine* engine, int index); 94 virtual void AppendPage(PDFEngine* engine, int index);
94 virtual pp::Point GetScrollPosition(); 95 virtual pp::Point GetScrollPosition();
95 virtual void SetScrollPosition(const pp::Point& position); 96 virtual void SetScrollPosition(const pp::Point& position);
96 virtual bool IsProgressiveLoad(); 97 virtual bool IsProgressiveLoad();
97 98
98 // DocumentLoader::Client implementation. 99 // DocumentLoader::Client implementation.
99 virtual pp::Instance* GetPluginInstance(); 100 virtual pp::Instance* GetPluginInstance();
100 virtual pp::URLLoader CreateURLLoader(); 101 virtual pp::URLLoader CreateURLLoader();
101 virtual void OnPartialDocumentLoaded(); 102 virtual void OnPartialDocumentLoaded();
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 737
737 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 738 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
738 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 739 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
739 int pdf_buffer_size, int page_number, 740 int pdf_buffer_size, int page_number,
740 double* width, double* height); 741 double* width, double* height);
741 }; 742 };
742 743
743 } // namespace chrome_pdf 744 } // namespace chrome_pdf
744 745
745 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 746 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698