diff options
Diffstat (limited to 'printing')
-rw-r--r-- | printing/print_dialog_gtk_interface.h | 3 | ||||
-rw-r--r-- | printing/printing_context_gtk.cc | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/printing/print_dialog_gtk_interface.h b/printing/print_dialog_gtk_interface.h index b63076e..41fafe0 100644 --- a/printing/print_dialog_gtk_interface.h +++ b/printing/print_dialog_gtk_interface.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -32,6 +32,7 @@ class PrintDialogGtkInterface { // Shows the dialog and handles the response with |callback|. Only used when // printing with the native print dialog. virtual void ShowDialog( + bool has_selection, const PrintingContextGtk::PrintSettingsCallback& callback) = 0; // Prints the document named |document_name| contained in |metafile|. diff --git a/printing/printing_context_gtk.cc b/printing/printing_context_gtk.cc index af97906..2e06c02 100644 --- a/printing/printing_context_gtk.cc +++ b/printing/printing_context_gtk.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -62,7 +62,7 @@ void PrintingContextGtk::AskUserForSettings( int max_pages, bool has_selection, const PrintSettingsCallback& callback) { - print_dialog_->ShowDialog(callback); + print_dialog_->ShowDialog(has_selection, callback); } PrintingContext::Result PrintingContextGtk::UseDefaultSettings() { |