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

Side by Side Diff: printing/printing_context_gtk.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 | « printing/printing_context.h ('k') | printing/printing_context_gtk.cc » ('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_PRINTING_CONTEXT_GTK_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_GTK_H_
6 #define PRINTING_PRINTING_CONTEXT_GTK_H_ 6 #define PRINTING_PRINTING_CONTEXT_GTK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "printing/printing_context.h" 10 #include "printing/printing_context.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Sets the function that creates the print dialog. 26 // Sets the function that creates the print dialog.
27 static void SetCreatePrintDialogFunction( 27 static void SetCreatePrintDialogFunction(
28 PrintDialogGtkInterface* (*create_dialog_func)( 28 PrintDialogGtkInterface* (*create_dialog_func)(
29 PrintingContextGtk* context)); 29 PrintingContextGtk* context));
30 30
31 // Prints the document contained in |metafile|. 31 // Prints the document contained in |metafile|.
32 void PrintDocument(const Metafile* metafile); 32 void PrintDocument(const Metafile* metafile);
33 33
34 // PrintingContext implementation. 34 // PrintingContext implementation.
35 virtual void AskUserForSettings(gfx::NativeView parent_view, 35 virtual void AskUserForSettings(
36 int max_pages, 36 gfx::NativeView parent_view,
37 bool has_selection, 37 int max_pages,
38 PrintSettingsCallback* callback) OVERRIDE; 38 bool has_selection,
39 const PrintSettingsCallback& callback) OVERRIDE;
39 virtual Result UseDefaultSettings() OVERRIDE; 40 virtual Result UseDefaultSettings() OVERRIDE;
40 virtual Result UpdatePrinterSettings( 41 virtual Result UpdatePrinterSettings(
41 const base::DictionaryValue& job_settings, 42 const base::DictionaryValue& job_settings,
42 const PageRanges& ranges) OVERRIDE; 43 const PageRanges& ranges) OVERRIDE;
43 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; 44 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE;
44 virtual Result NewDocument(const string16& document_name) OVERRIDE; 45 virtual Result NewDocument(const string16& document_name) OVERRIDE;
45 virtual Result NewPage() OVERRIDE; 46 virtual Result NewPage() OVERRIDE;
46 virtual Result PageDone() OVERRIDE; 47 virtual Result PageDone() OVERRIDE;
47 virtual Result DocumentDone() OVERRIDE; 48 virtual Result DocumentDone() OVERRIDE;
48 virtual void Cancel() OVERRIDE; 49 virtual void Cancel() OVERRIDE;
49 virtual void ReleaseContext() OVERRIDE; 50 virtual void ReleaseContext() OVERRIDE;
50 virtual gfx::NativeDrawingContext context() const OVERRIDE; 51 virtual gfx::NativeDrawingContext context() const OVERRIDE;
51 52
52 private: 53 private:
53 string16 document_name_; 54 string16 document_name_;
54 PrintDialogGtkInterface* print_dialog_; 55 PrintDialogGtkInterface* print_dialog_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(PrintingContextGtk); 57 DISALLOW_COPY_AND_ASSIGN(PrintingContextGtk);
57 }; 58 };
58 59
59 } // namespace printing 60 } // namespace printing
60 61
61 #endif // PRINTING_PRINTING_CONTEXT_GTK_H_ 62 #endif // PRINTING_PRINTING_CONTEXT_GTK_H_
62 63
OLDNEW
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698