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.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.h')
-rw-r--r-- | printing/printing_context.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/printing/printing_context.h b/printing/printing_context.h index d7d5016..dca306b 100644 --- a/printing/printing_context.h +++ b/printing/printing_context.h @@ -13,6 +13,8 @@ #include "printing/print_settings.h" #include "ui/gfx/native_widget_types.h" +class DictionaryValue; + namespace printing { // An abstraction of a printer context, implemented by objects that describe the @@ -47,9 +49,10 @@ class PrintingContext { // default device settings. virtual Result UseDefaultSettings() = 0; - // Update print settings. As of now we are updating the page range settings. - // In the future, update other print job settings. - virtual Result UpdatePrintSettings(const PageRanges& ranges) = 0; + // Updates print settings. |job_settings| contains all print job settings + // information. |ranges| has the new page range settings. + virtual Result UpdatePrintSettings(const DictionaryValue* const job_settings, + const PageRanges& ranges) = 0; // Initializes with predefined settings. virtual Result InitWithSettings(const PrintSettings& settings) = 0; |