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