diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-19 01:58:38 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-19 01:58:38 +0000 |
commit | abe4811df1767cc8ebcbc6f819981ea5172caf7c (patch) | |
tree | b58a4a79f842c79cb189ab009e158ed8a99950b6 /printing/printing_context.h | |
parent | cd8b4c7f2791bc845dfb0fb761be9306f2a0f82c (diff) | |
download | chromium_src-abe4811df1767cc8ebcbc6f819981ea5172caf7c.zip chromium_src-abe4811df1767cc8ebcbc6f819981ea5172caf7c.tar.gz chromium_src-abe4811df1767cc8ebcbc6f819981ea5172caf7c.tar.bz2 |
base::Bind: Convert PrintingContext::PrintSettingsCallback.
BUG=none
TEST=none
R=csilv@chromium.org
Review URL: http://codereview.chromium.org/8549031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110813 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context.h')
-rw-r--r-- | printing/printing_context.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/printing/printing_context.h b/printing/printing_context.h index 5dbe70d..60ea0be 100644 --- a/printing/printing_context.h +++ b/printing/printing_context.h @@ -8,7 +8,7 @@ #include <string> #include "base/basictypes.h" -#include "base/callback_old.h" +#include "base/callback.h" #include "base/string16.h" #include "printing/print_settings.h" #include "ui/gfx/native_widget_types.h" @@ -36,7 +36,7 @@ class PRINTING_EXPORT PrintingContext { // Callback of AskUserForSettings, used to notify the PrintJobWorker when // print settings are available. - typedef Callback1<Result>::Type PrintSettingsCallback; + typedef base::Callback<void(Result)> PrintSettingsCallback; // Asks the user what printer and format should be used to print. Updates the // context with the select device settings. The result of the call is returned @@ -45,7 +45,7 @@ class PRINTING_EXPORT PrintingContext { virtual void AskUserForSettings(gfx::NativeView parent_view, int max_pages, bool has_selection, - PrintSettingsCallback* callback) = 0; + const PrintSettingsCallback& callback) = 0; // Selects the user's default printer and format. Updates the context with the // default device settings. |