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_CAIRO_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_ | 6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "printing/printing_context.h" | 10 #include "printing/printing_context.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Prints the document contained in |metafile|. | 32 // Prints the document contained in |metafile|. |
33 void PrintDocument(const Metafile* metafile); | 33 void PrintDocument(const Metafile* metafile); |
34 #endif | 34 #endif |
35 | 35 |
36 // PrintingContext implementation. | 36 // PrintingContext implementation. |
37 virtual void AskUserForSettings(gfx::NativeView parent_view, | 37 virtual void AskUserForSettings(gfx::NativeView parent_view, |
38 int max_pages, | 38 int max_pages, |
39 bool has_selection, | 39 bool has_selection, |
40 PrintSettingsCallback* callback); | 40 PrintSettingsCallback* callback); |
41 virtual Result UseDefaultSettings(); | 41 virtual Result UseDefaultSettings(); |
42 virtual Result UpdatePrintSettings(const base::DictionaryValue& job_settings, | 42 virtual Result UpdatePrinterSettings( |
43 const PageRanges& ranges); | 43 const base::DictionaryValue& job_settings, |
| 44 const PageRanges& ranges); |
44 virtual Result InitWithSettings(const PrintSettings& settings); | 45 virtual Result InitWithSettings(const PrintSettings& settings); |
45 virtual Result NewDocument(const string16& document_name); | 46 virtual Result NewDocument(const string16& document_name); |
46 virtual Result NewPage(); | 47 virtual Result NewPage(); |
47 virtual Result PageDone(); | 48 virtual Result PageDone(); |
48 virtual Result DocumentDone(); | 49 virtual Result DocumentDone(); |
49 virtual void Cancel(); | 50 virtual void Cancel(); |
50 virtual void ReleaseContext(); | 51 virtual void ReleaseContext(); |
51 virtual gfx::NativeDrawingContext context() const; | 52 virtual gfx::NativeDrawingContext context() const; |
52 | 53 |
53 private: | 54 private: |
54 #if !defined(OS_CHROMEOS) | 55 #if !defined(OS_CHROMEOS) |
55 string16 document_name_; | 56 string16 document_name_; |
56 PrintDialogGtkInterface* print_dialog_; | 57 PrintDialogGtkInterface* print_dialog_; |
57 #endif | 58 #endif |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); | 60 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace printing | 63 } // namespace printing |
63 | 64 |
64 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ | 65 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
OLD | NEW |