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

Unified Diff: printing/print_dialog_gtk_interface.h

Issue 47823002: De-duplicate job_settings parsing code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review Created 7 years, 2 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
Index: printing/print_dialog_gtk_interface.h
diff --git a/printing/print_dialog_gtk_interface.h b/printing/print_dialog_gtk_interface.h
index b3618374f40a55ff0dae7086a7da7bd12c4c2686..5a8926f1eb4b762bd3862c793f80babf34feab88 100644
--- a/printing/print_dialog_gtk_interface.h
+++ b/printing/print_dialog_gtk_interface.h
@@ -22,12 +22,12 @@ class PrintDialogGtkInterface {
// Tell the dialog to use the default print setting.
virtual void UseDefaultSettings() = 0;
- // Update the dialog to use |job_settings| and |ranges|, where |job_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 base::DictionaryValue& job_settings,
- const PageRanges& ranges,
+ // Updates the dialog to use |settings|. Only used when printing without the
+ // system print dialog. E.g. for Print Preview. Returns false on error.
+ // |pdf_only| is true if implementation needs to generate PDF without actual
Lei Zhang 2013/10/28 23:40:23 |pdf_only| -> |target_is_pdf|
Vitaly Buka (NO REVIEWS) 2013/10/29 00:31:21 Done.
+ // printing. In this case implementation may avoid setup of native print
+ // system. Ex. "save to pdf" or Cloud Print.
+ virtual bool UpdateSettings(bool target_is_pdf,
PrintSettings* settings) = 0;
// Shows the dialog and handles the response with |callback|. Only used when

Powered by Google App Engine
This is Rietveld 408576698