| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_linux.h" | 5 #include "printing/printing_context_linux.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "printing/metafile.h" | 9 #include "printing/metafile.h" |
| 10 #include "printing/print_dialog_gtk_interface.h" | 10 #include "printing/print_dialog_gtk_interface.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 gfx::Size PrintingContextLinux::GetPdfPaperSizeDeviceUnits() { | 101 gfx::Size PrintingContextLinux::GetPdfPaperSizeDeviceUnits() { |
| 102 if (get_pdf_paper_size_) | 102 if (get_pdf_paper_size_) |
| 103 return get_pdf_paper_size_(this); | 103 return get_pdf_paper_size_(this); |
| 104 | 104 |
| 105 return gfx::Size(); | 105 return gfx::Size(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 PrintingContext::Result PrintingContextLinux::UpdatePrinterSettings( | 108 PrintingContext::Result PrintingContextLinux::UpdatePrinterSettings( |
| 109 bool external_preview, | 109 bool external_preview, |
| 110 bool show_system_dialog) { | 110 bool show_system_dialog, |
| 111 int page_count) { |
| 111 DCHECK(!show_system_dialog); | 112 DCHECK(!show_system_dialog); |
| 112 DCHECK(!in_print_job_); | 113 DCHECK(!in_print_job_); |
| 113 DCHECK(!external_preview) << "Not implemented"; | 114 DCHECK(!external_preview) << "Not implemented"; |
| 114 | 115 |
| 115 if (!create_dialog_func_) | 116 if (!create_dialog_func_) |
| 116 return OK; | 117 return OK; |
| 117 | 118 |
| 118 if (!print_dialog_) { | 119 if (!print_dialog_) { |
| 119 print_dialog_ = create_dialog_func_(this); | 120 print_dialog_ = create_dialog_func_(this); |
| 120 print_dialog_->AddRefToDialog(); | 121 print_dialog_->AddRefToDialog(); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void PrintingContextLinux::ReleaseContext() { | 183 void PrintingContextLinux::ReleaseContext() { |
| 183 // Intentional No-op. | 184 // Intentional No-op. |
| 184 } | 185 } |
| 185 | 186 |
| 186 gfx::NativeDrawingContext PrintingContextLinux::context() const { | 187 gfx::NativeDrawingContext PrintingContextLinux::context() const { |
| 187 // Intentional No-op. | 188 // Intentional No-op. |
| 188 return NULL; | 189 return NULL; |
| 189 } | 190 } |
| 190 | 191 |
| 191 } // namespace printing | 192 } // namespace printing |
| OLD | NEW |