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

Unified Diff: printing/printing_context_mac.h

Issue 345493003: Apply paper size selection for local printers on OSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/19/2014 10:45:12.55 Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | printing/printing_context_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_mac.h
diff --git a/printing/printing_context_mac.h b/printing/printing_context_mac.h
index 9257510807ef5f3a8a44e601d0608b64f84ecb6e..f16ef545e7c7d24a7d16b73124fe2c29d2aa9f60 100644
--- a/printing/printing_context_mac.h
+++ b/printing/printing_context_mac.h
@@ -54,13 +54,18 @@ class PRINTING_EXPORT PrintingContextMac : public PrintingContext {
PageRanges GetPageRangesFromPrintInfo();
// Updates |print_info_| to use the given printer.
- // Returns true if the printer was set else returns false.
+ // Returns true if the printer was set.
bool SetPrinter(const std::string& device_name);
- // Updates |print_info_| page format with user default paper information.
- // Returns true if the paper was set else returns false.
+ // Updates |print_info_| page format with paper selected by user. If paper was
+ // not selected, default system paper is used.
+ // Returns true if the paper was set.
bool UpdatePageFormatWithPaperInfo();
+ // Updates |print_info_| page format with |paper|.
+ // Returns true if the paper was set.
+ bool UpdatePageFormatWithPaper(PMPaper paper, PMPageFormat page_format);
+
// Sets the print job destination type as preview job.
// Returns true if the print job destination type is set.
bool SetPrintPreviewJob();
« no previous file with comments | « no previous file | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698