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 #include "printing/printing_context_no_system_dialog.h" | 5 #include "printing/printing_context_no_system_dialog.h" |
6 | 6 |
7 #include <unicode/ulocdata.h> | 7 #include <unicode/ulocdata.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 float multiplier = 100 * settings_.device_units_per_inch(); | 70 float multiplier = 100 * settings_.device_units_per_inch(); |
71 multiplier /= kHundrethsMMPerInch; | 71 multiplier /= kHundrethsMMPerInch; |
72 width *= multiplier; | 72 width *= multiplier; |
73 height *= multiplier; | 73 height *= multiplier; |
74 } | 74 } |
75 return gfx::Size(width, height); | 75 return gfx::Size(width, height); |
76 } | 76 } |
77 | 77 |
78 PrintingContext::Result PrintingContextNoSystemDialog::UpdatePrinterSettings( | 78 PrintingContext::Result PrintingContextNoSystemDialog::UpdatePrinterSettings( |
79 bool external_preview, | 79 bool external_preview, |
80 bool show_system_dialog) { | 80 bool show_system_dialog, |
| 81 int page_count) { |
81 DCHECK(!show_system_dialog); | 82 DCHECK(!show_system_dialog); |
82 | 83 |
83 if (settings_.dpi() == 0) | 84 if (settings_.dpi() == 0) |
84 UseDefaultSettings(); | 85 UseDefaultSettings(); |
85 | 86 |
86 return OK; | 87 return OK; |
87 } | 88 } |
88 | 89 |
89 PrintingContext::Result PrintingContextNoSystemDialog::InitWithSettings( | 90 PrintingContext::Result PrintingContextNoSystemDialog::InitWithSettings( |
90 const PrintSettings& settings) { | 91 const PrintSettings& settings) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Intentional No-op. | 142 // Intentional No-op. |
142 } | 143 } |
143 | 144 |
144 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { | 145 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { |
145 // Intentional No-op. | 146 // Intentional No-op. |
146 return NULL; | 147 return NULL; |
147 } | 148 } |
148 | 149 |
149 } // namespace printing | 150 } // namespace printing |
150 | 151 |
OLD | NEW |