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_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_H_ |
6 #define PRINTING_PRINTING_CONTEXT_H_ | 6 #define PRINTING_PRINTING_CONTEXT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // Updates the context with PDF printer settings. | 66 // Updates the context with PDF printer settings. |
67 Result UsePdfSettings(); | 67 Result UsePdfSettings(); |
68 | 68 |
69 // Returns paper size to be used for PDF or Cloud Print in device units. | 69 // Returns paper size to be used for PDF or Cloud Print in device units. |
70 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0; | 70 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0; |
71 | 71 |
72 // Updates printer settings. | 72 // Updates printer settings. |
73 // |external_preview| is true if pdf is going to be opened in external | 73 // |external_preview| is true if pdf is going to be opened in external |
74 // preview. Used by MacOS only now to open Preview.app. | 74 // preview. Used by MacOS only now to open Preview.app. |
75 virtual Result UpdatePrinterSettings(bool external_preview) = 0; | 75 virtual Result UpdatePrinterSettings(bool external_preview, |
| 76 bool show_system_dialog) = 0; |
76 | 77 |
77 // Updates Print Settings. |job_settings| contains all print job | 78 // Updates Print Settings. |job_settings| contains all print job |
78 // settings information. |ranges| has the new page range settings. | 79 // settings information. |ranges| has the new page range settings. |
79 Result UpdatePrintSettings(const base::DictionaryValue& job_settings); | 80 Result UpdatePrintSettings(const base::DictionaryValue& job_settings); |
80 | 81 |
81 // Initializes with predefined settings. | 82 // Initializes with predefined settings. |
82 virtual Result InitWithSettings(const PrintSettings& settings) = 0; | 83 virtual Result InitWithSettings(const PrintSettings& settings) = 0; |
83 | 84 |
84 // Does platform specific setup of the printer before the printing. Signal the | 85 // Does platform specific setup of the printer before the printing. Signal the |
85 // printer that a document is about to be spooled. | 86 // printer that a document is about to be spooled. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Did the user cancel the print job. | 144 // Did the user cancel the print job. |
144 volatile bool abort_printing_; | 145 volatile bool abort_printing_; |
145 | 146 |
146 private: | 147 private: |
147 DISALLOW_COPY_AND_ASSIGN(PrintingContext); | 148 DISALLOW_COPY_AND_ASSIGN(PrintingContext); |
148 }; | 149 }; |
149 | 150 |
150 } // namespace printing | 151 } // namespace printing |
151 | 152 |
152 #endif // PRINTING_PRINTING_CONTEXT_H_ | 153 #endif // PRINTING_PRINTING_CONTEXT_H_ |
OLD | NEW |