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

Unified Diff: printing/printing_context.h

Issue 8549031: base::Bind: Convert PrintingContext::PrintSettingsCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years, 1 month 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
« no previous file with comments | « printing/print_dialog_gtk_interface.h ('k') | printing/printing_context_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.h
diff --git a/printing/printing_context.h b/printing/printing_context.h
index 5dbe70d02fe51dc4b8dc4f38acc6a787d1563e26..60ea0bec78362af97a222a989a7d044dc20f625f 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.
« no previous file with comments | « printing/print_dialog_gtk_interface.h ('k') | printing/printing_context_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698