| 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 |
| 163 |
| 152 PrintingContext::Result PrintingContextCairo::InitWithSettings( | 164 PrintingContext::Result PrintingContextCairo::InitWithSettings( |
| 153 const PrintSettings& settings) { | 165 const PrintSettings& settings) { |
| 154 DCHECK(!in_print_job_); | 166 DCHECK(!in_print_job_); |
| 155 | 167 |
| 156 settings_ = settings; | 168 settings_ = settings; |
| 157 | 169 |
| 158 return OK; | 170 return OK; |
| 159 } | 171 } |
| 160 | 172 |
| 161 PrintingContext::Result PrintingContextCairo::NewDocument( | 173 PrintingContext::Result PrintingContextCairo::NewDocument( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 void PrintingContextCairo::ReleaseContext() { | 219 void PrintingContextCairo::ReleaseContext() { |
| 208 // Intentional No-op. | 220 // Intentional No-op. |
| 209 } | 221 } |
| 210 | 222 |
| 211 gfx::NativeDrawingContext PrintingContextCairo::context() const { | 223 gfx::NativeDrawingContext PrintingContextCairo::context() const { |
| 212 // Intentional No-op. | 224 // Intentional No-op. |
| 213 return NULL; | 225 return NULL; |
| 214 } | 226 } |
| 215 | 227 |
| 216 } // namespace printing | 228 } // namespace printing |
| OLD | NEW |