diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-21 20:58:44 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-21 20:58:44 +0000 |
commit | 89f5aa8cd1f29a63a989907c454495993659854e (patch) | |
tree | 576b8450fbe372256e6433345a48ba06642e0794 /printing/printing_context_mac.h | |
parent | 6f3b9f925c3e52a63bb320ce1c6caf67701b335c (diff) | |
download | chromium_src-89f5aa8cd1f29a63a989907c454495993659854e.zip chromium_src-89f5aa8cd1f29a63a989907c454495993659854e.tar.gz chromium_src-89f5aa8cd1f29a63a989907c454495993659854e.tar.bz2 |
PrintPreview: [MAC] Set the selected printer for the current print job.
BUG=76123
TEST=Enable print preview on mac. Press ctrl+p to print a page. On print preview tab, select a printer and press print button.
Review URL: http://codereview.chromium.org/6698013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context_mac.h')
-rw-r--r-- | printing/printing_context_mac.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/printing/printing_context_mac.h b/printing/printing_context_mac.h index 8e2ba7d..e87dfce 100644 --- a/printing/printing_context_mac.h +++ b/printing/printing_context_mac.h @@ -29,7 +29,8 @@ class PrintingContextMac : public PrintingContext { bool has_selection, PrintSettingsCallback* callback); virtual Result UseDefaultSettings(); - virtual Result UpdatePrintSettings(const PageRanges& ranges); + virtual Result UpdatePrintSettings(const DictionaryValue* const job_settings, + const PageRanges& ranges); virtual Result InitWithSettings(const PrintSettings& settings); virtual Result NewDocument(const string16& document_name); virtual Result NewPage(); @@ -43,6 +44,9 @@ class PrintingContextMac : public PrintingContext { // Read the settings from the given NSPrintInfo (and cache it for later use). void ParsePrintInfo(NSPrintInfo* print_info); + // Initializes PrintSettings from native print info object. + void InitPrintSettingsFromPrintInfo(const PageRanges& ranges); + // The native print info object. scoped_nsobject<NSPrintInfo> print_info_; |