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_cairo.h" | 5 #include "printing/printing_context_cairo.h" |
6 | 6 |
7 // TODO(abodenha@chromium.org) The number of #ifdefs here has gotten too | 7 // TODO(abodenha@chromium.org) The number of #ifdefs here has gotten too |
8 // large. Refactor this code into separate files for Linux and Chrome OS. | 8 // large. Refactor this code into separate files for Linux and Chrome OS. |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 return OK; | 157 return OK; |
158 #else | 158 #else |
159 DCHECK(!in_print_job_); | 159 DCHECK(!in_print_job_); |
160 | 160 |
161 if (!print_dialog_) { | 161 if (!print_dialog_) { |
162 print_dialog_ = create_dialog_func_(this); | 162 print_dialog_ = create_dialog_func_(this); |
163 print_dialog_->AddRefToDialog(); | 163 print_dialog_->AddRefToDialog(); |
164 } | 164 } |
165 | 165 |
166 if (!print_dialog_->UpdateSettings(job_settings, ranges)) | 166 if (!print_dialog_->UpdateSettings(job_settings, ranges, &settings_)) |
167 return OnError(); | 167 return OnError(); |
168 | 168 |
169 return OK; | 169 return OK; |
170 #endif | 170 #endif |
171 } | 171 } |
172 | 172 |
173 PrintingContext::Result PrintingContextCairo::InitWithSettings( | 173 PrintingContext::Result PrintingContextCairo::InitWithSettings( |
174 const PrintSettings& settings) { | 174 const PrintSettings& settings) { |
175 DCHECK(!in_print_job_); | 175 DCHECK(!in_print_job_); |
176 | 176 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void PrintingContextCairo::ReleaseContext() { | 228 void PrintingContextCairo::ReleaseContext() { |
229 // Intentional No-op. | 229 // Intentional No-op. |
230 } | 230 } |
231 | 231 |
232 gfx::NativeDrawingContext PrintingContextCairo::context() const { | 232 gfx::NativeDrawingContext PrintingContextCairo::context() const { |
233 // Intentional No-op. | 233 // Intentional No-op. |
234 return NULL; | 234 return NULL; |
235 } | 235 } |
236 | 236 |
237 } // namespace printing | 237 } // namespace printing |
OLD | NEW |