diff options
Diffstat (limited to 'printing/print_dialog_gtk_interface.h')
-rw-r--r-- | printing/print_dialog_gtk_interface.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/printing/print_dialog_gtk_interface.h b/printing/print_dialog_gtk_interface.h index dab0c9c..c47f978 100644 --- a/printing/print_dialog_gtk_interface.h +++ b/printing/print_dialog_gtk_interface.h @@ -17,7 +17,18 @@ class Metafile; // correct without exposing those requirements to printing/. class PrintDialogGtkInterface { public: - // Shows the dialog and handles the response with |callback|. + // Tell the dialog to use the default print setting. + virtual void UseDefaultSettings() = 0; + + // Update the dialog to use |settings| and |ranges|, where |settings| is a + // dictionary of settings with possible keys from + // printing/print_job_constants.h. Only used when printing without the system + // print dialog. E.g. for Print Preview. Returns false on error. + virtual bool UpdateSettings(const DictionaryValue& settings, + const PageRanges& ranges) = 0; + + // Shows the dialog and handles the response with |callback|. Only used when + // printing with the native print dialog. virtual void ShowDialog( PrintingContextCairo::PrintSettingsCallback* callback) = 0; |