| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 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) { |
| 111 DCHECK(!show_system_dialog); |
| 110 DCHECK(!in_print_job_); | 112 DCHECK(!in_print_job_); |
| 111 DCHECK(!external_preview) << "Not implemented"; | 113 DCHECK(!external_preview) << "Not implemented"; |
| 112 | 114 |
| 113 if (!create_dialog_func_) | 115 if (!create_dialog_func_) |
| 114 return OK; | 116 return OK; |
| 115 | 117 |
| 116 if (!print_dialog_) { | 118 if (!print_dialog_) { |
| 117 print_dialog_ = create_dialog_func_(this); | 119 print_dialog_ = create_dialog_func_(this); |
| 118 print_dialog_->AddRefToDialog(); | 120 print_dialog_->AddRefToDialog(); |
| 119 } | 121 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 void PrintingContextLinux::ReleaseContext() { | 182 void PrintingContextLinux::ReleaseContext() { |
| 181 // Intentional No-op. | 183 // Intentional No-op. |
| 182 } | 184 } |
| 183 | 185 |
| 184 gfx::NativeDrawingContext PrintingContextLinux::context() const { | 186 gfx::NativeDrawingContext PrintingContextLinux::context() const { |
| 185 // Intentional No-op. | 187 // Intentional No-op. |
| 186 return NULL; | 188 return NULL; |
| 187 } | 189 } |
| 188 | 190 |
| 189 } // namespace printing | 191 } // namespace printing |
| OLD | NEW |