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

Side by Side Diff: printing/print_dialog_gtk_interface.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | printing/printing_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_PRINT_DIALOG_GTK_INTERFACE_H_ 5 #ifndef PRINTING_PRINT_DIALOG_GTK_INTERFACE_H_
6 #define PRINTING_PRINT_DIALOG_GTK_INTERFACE_H_ 6 #define PRINTING_PRINT_DIALOG_GTK_INTERFACE_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "printing/printing_context_gtk.h" 9 #include "printing/printing_context_gtk.h"
10 10
(...skipping 14 matching lines...) Expand all
25 // is a dictionary of settings with possible keys from 25 // is a dictionary of settings with possible keys from
26 // printing/print_job_constants.h. Only used when printing without the system 26 // printing/print_job_constants.h. Only used when printing without the system
27 // print dialog. E.g. for Print Preview. Returns false on error. 27 // print dialog. E.g. for Print Preview. Returns false on error.
28 virtual bool UpdateSettings(const base::DictionaryValue& job_settings, 28 virtual bool UpdateSettings(const base::DictionaryValue& job_settings,
29 const PageRanges& ranges, 29 const PageRanges& ranges,
30 PrintSettings* settings) = 0; 30 PrintSettings* settings) = 0;
31 31
32 // Shows the dialog and handles the response with |callback|. Only used when 32 // Shows the dialog and handles the response with |callback|. Only used when
33 // printing with the native print dialog. 33 // printing with the native print dialog.
34 virtual void ShowDialog( 34 virtual void ShowDialog(
35 PrintingContextGtk::PrintSettingsCallback* callback) = 0; 35 const PrintingContextGtk::PrintSettingsCallback& callback) = 0;
36 36
37 // Prints the document named |document_name| contained in |metafile|. 37 // Prints the document named |document_name| contained in |metafile|.
38 // Called from the print worker thread. Once called, the 38 // Called from the print worker thread. Once called, the
39 // PrintDialogGtkInterface instance should not be reused. 39 // PrintDialogGtkInterface instance should not be reused.
40 virtual void PrintDocument(const Metafile* metafile, 40 virtual void PrintDocument(const Metafile* metafile,
41 const string16& document_name) = 0; 41 const string16& document_name) = 0;
42 42
43 // Same as AddRef/Release, but with different names since 43 // Same as AddRef/Release, but with different names since
44 // PrintDialogGtkInterface does not inherit from RefCounted. 44 // PrintDialogGtkInterface does not inherit from RefCounted.
45 virtual void AddRefToDialog() = 0; 45 virtual void AddRefToDialog() = 0;
46 virtual void ReleaseDialog() = 0; 46 virtual void ReleaseDialog() = 0;
47 47
48 protected: 48 protected:
49 virtual ~PrintDialogGtkInterface() {} 49 virtual ~PrintDialogGtkInterface() {}
50 }; 50 };
51 51
52 } // namespace printing 52 } // namespace printing
53 53
54 #endif // PRINTING_PRINT_DIALOG_GTK_INTERFACE_H_ 54 #endif // PRINTING_PRINT_DIALOG_GTK_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | printing/printing_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698