summaryrefslogtreecommitdiffstats
path: root/printing/print_dialog_gtk_interface.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 22:30:48 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 22:30:48 +0000
commit1c23b4e86cf43bf86c591840bba6be39ad49b0c9 (patch)
tree5e3c268f4544a27d74fc81d0820e0a3fd82949ae /printing/print_dialog_gtk_interface.h
parent0374b165987b53354edca740082640315091fd95 (diff)
downloadchromium_src-1c23b4e86cf43bf86c591840bba6be39ad49b0c9.zip
chromium_src-1c23b4e86cf43bf86c591840bba6be39ad49b0c9.tar.gz
chromium_src-1c23b4e86cf43bf86c591840bba6be39ad49b0c9.tar.bz2
Move margin processing code to the browser process.
It seems that this is where it is supposed to live and it was erroneously added to PrintWebViewHelper. BUG=67091, 92045, 91880, 92000, 92218, 95905 TEST=NONE Review URL: http://codereview.chromium.org/8201027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/print_dialog_gtk_interface.h')
-rw-r--r--printing/print_dialog_gtk_interface.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/printing/print_dialog_gtk_interface.h b/printing/print_dialog_gtk_interface.h
index 4fb9341..22de95c 100644
--- a/printing/print_dialog_gtk_interface.h
+++ b/printing/print_dialog_gtk_interface.h
@@ -11,6 +11,7 @@
namespace printing {
class Metafile;
+class PrintSettings;
// An interface for GTK printing dialogs. Classes that live outside of
// printing/ can implement this interface and get threading requirements
@@ -20,12 +21,13 @@ class PrintDialogGtkInterface {
// 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
+ // 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& settings,
- const PageRanges& ranges) = 0;
+ virtual bool UpdateSettings(const base::DictionaryValue& job_settings,
+ const PageRanges& ranges,
+ PrintSettings* settings) = 0;
// Shows the dialog and handles the response with |callback|. Only used when
// printing with the native print dialog.