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 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "printing/units.h" | 8 #include "printing/units.h" |
9 | 9 |
10 #if defined(OS_CHROMEOS) | 10 #if defined(OS_CHROMEOS) |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 settings, page_setup, ranges_vector, false, &settings_); | 142 settings, page_setup, ranges_vector, false, &settings_); |
143 | 143 |
144 g_object_unref(settings); | 144 g_object_unref(settings); |
145 // |page_setup| is owned by dialog, so it does not need to be unref'ed. | 145 // |page_setup| is owned by dialog, so it does not need to be unref'ed. |
146 gtk_widget_destroy(dialog); | 146 gtk_widget_destroy(dialog); |
147 #endif // defined(OS_CHROMEOS) | 147 #endif // defined(OS_CHROMEOS) |
148 | 148 |
149 return OK; | 149 return OK; |
150 } | 150 } |
151 | 151 |
| 152 PrintingContext::Result PrintingContextCairo::UpdatePrintSettings( |
| 153 const PageRanges& ranges) { |
| 154 DCHECK(!in_print_job_); |
| 155 |
| 156 settings_.ranges = ranges; |
| 157 |
| 158 NOTIMPLEMENTED(); |
| 159 |
| 160 return FAILED; |
| 161 } |
| 162 |
152 PrintingContext::Result PrintingContextCairo::InitWithSettings( | 163 PrintingContext::Result PrintingContextCairo::InitWithSettings( |
153 const PrintSettings& settings) { | 164 const PrintSettings& settings) { |
154 DCHECK(!in_print_job_); | 165 DCHECK(!in_print_job_); |
155 | 166 |
156 settings_ = settings; | 167 settings_ = settings; |
157 | 168 |
158 return OK; | 169 return OK; |
159 } | 170 } |
160 | 171 |
161 PrintingContext::Result PrintingContextCairo::NewDocument( | 172 PrintingContext::Result PrintingContextCairo::NewDocument( |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 void PrintingContextCairo::ReleaseContext() { | 218 void PrintingContextCairo::ReleaseContext() { |
208 // Intentional No-op. | 219 // Intentional No-op. |
209 } | 220 } |
210 | 221 |
211 gfx::NativeDrawingContext PrintingContextCairo::context() const { | 222 gfx::NativeDrawingContext PrintingContextCairo::context() const { |
212 // Intentional No-op. | 223 // Intentional No-op. |
213 return NULL; | 224 return NULL; |
214 } | 225 } |
215 | 226 |
216 } // namespace printing | 227 } // namespace printing |
OLD | NEW |