summaryrefslogtreecommitdiffstats
path: root/printing/printing_context_win.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 19:18:05 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 19:18:05 +0000
commitb719142cac87c33ec2d6e99a238b5ecd48f87d68 (patch)
treecb073e88f553db6c3acab1c18c1f9e31793a80b7 /printing/printing_context_win.cc
parentb119a1e6bdd11040f93245e0b71d654a4883b40a (diff)
downloadchromium_src-b719142cac87c33ec2d6e99a238b5ecd48f87d68.zip
chromium_src-b719142cac87c33ec2d6e99a238b5ecd48f87d68.tar.gz
chromium_src-b719142cac87c33ec2d6e99a238b5ecd48f87d68.tar.bz2
Printing: Implement PrintingContext::UseDefaultSettings for Linux/Cairo.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3389005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60087 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context_win.cc')
-rw-r--r--printing/printing_context_win.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index ef07833..a94c71f 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -136,10 +136,10 @@ PrintingContext::~PrintingContext() {
ResetSettings();
}
-PrintingContext::Result PrintingContext::AskUserForSettings(
- HWND view,
- int max_pages,
- bool has_selection) {
+void PrintingContext::AskUserForSettings(HWND view,
+ int max_pages,
+ bool has_selection,
+ PrintSettingsCallback* callback) {
DCHECK(!in_print_job_);
dialog_box_dismissed_ = false;
@@ -190,11 +190,11 @@ PrintingContext::Result PrintingContext::AskUserForSettings(
{
if ((*print_dialog_func_)(&dialog_options) != S_OK) {
ResetSettings();
- return FAILED;
+ callback->Run(FAILED);
}
}
// TODO(maruel): Support PD_PRINTTOFILE.
- return ParseDialogResultEx(dialog_options);
+ callback->Run(ParseDialogResultEx(dialog_options));
}
PrintingContext::Result PrintingContext::UseDefaultSettings() {