OLD | NEW |
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 20 matching lines...) Expand all Loading... |
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( | 35 virtual void AskUserForSettings( |
36 gfx::NativeView parent_view, | 36 gfx::NativeView parent_view, |
37 int max_pages, | 37 int max_pages, |
38 bool has_selection, | 38 bool has_selection, |
39 const PrintSettingsCallback& callback) OVERRIDE; | 39 const PrintSettingsCallback& callback) OVERRIDE; |
40 virtual Result UseDefaultSettings() OVERRIDE; | 40 virtual Result UseDefaultSettings() OVERRIDE; |
41 virtual Result UpdatePrinterSettings( | 41 virtual Result UpdatePrinterSettings(bool target_is_pdf, |
42 const base::DictionaryValue& job_settings, | 42 bool external_preview) OVERRIDE; |
43 const PageRanges& ranges) OVERRIDE; | |
44 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; | 43 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; |
45 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; | 44 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; |
46 virtual Result NewPage() OVERRIDE; | 45 virtual Result NewPage() OVERRIDE; |
47 virtual Result PageDone() OVERRIDE; | 46 virtual Result PageDone() OVERRIDE; |
48 virtual Result DocumentDone() OVERRIDE; | 47 virtual Result DocumentDone() OVERRIDE; |
49 virtual void Cancel() OVERRIDE; | 48 virtual void Cancel() OVERRIDE; |
50 virtual void ReleaseContext() OVERRIDE; | 49 virtual void ReleaseContext() OVERRIDE; |
51 virtual gfx::NativeDrawingContext context() const OVERRIDE; | 50 virtual gfx::NativeDrawingContext context() const OVERRIDE; |
52 | 51 |
53 private: | 52 private: |
54 base::string16 document_name_; | 53 base::string16 document_name_; |
55 PrintDialogGtkInterface* print_dialog_; | 54 PrintDialogGtkInterface* print_dialog_; |
56 | 55 |
57 DISALLOW_COPY_AND_ASSIGN(PrintingContextGtk); | 56 DISALLOW_COPY_AND_ASSIGN(PrintingContextGtk); |
58 }; | 57 }; |
59 | 58 |
60 } // namespace printing | 59 } // namespace printing |
61 | 60 |
62 #endif // PRINTING_PRINTING_CONTEXT_GTK_H_ | 61 #endif // PRINTING_PRINTING_CONTEXT_GTK_H_ |
63 | 62 |
OLD | NEW |