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 | 101 |
102 gfx::Size PrintingContextLinux::GetPdfPaperSizeDeviceUnits() { | 102 gfx::Size PrintingContextLinux::GetPdfPaperSizeDeviceUnits() { |
103 if (get_pdf_paper_size_) | 103 if (get_pdf_paper_size_) |
104 return get_pdf_paper_size_(this); | 104 return get_pdf_paper_size_(this); |
105 | 105 |
106 return gfx::Size(); | 106 return gfx::Size(); |
107 } | 107 } |
108 | 108 |
109 PrintingContext::Result PrintingContextLinux::UpdatePrinterSettings( | 109 PrintingContext::Result PrintingContextLinux::UpdatePrinterSettings( |
110 bool external_preview) { | 110 bool external_preview, |
| 111 bool show_system_dialog, |
| 112 gfx::NativeView parent_view) { |
| 113 DCHECK(!show_system_dialog); |
111 DCHECK(!in_print_job_); | 114 DCHECK(!in_print_job_); |
112 DCHECK(!external_preview) << "Not implemented"; | 115 DCHECK(!external_preview) << "Not implemented"; |
113 | 116 |
114 if (!create_dialog_func_) | 117 if (!create_dialog_func_) |
115 return OK; | 118 return OK; |
116 | 119 |
117 if (!print_dialog_) { | 120 if (!print_dialog_) { |
118 print_dialog_ = create_dialog_func_(this); | 121 print_dialog_ = create_dialog_func_(this); |
119 print_dialog_->AddRefToDialog(); | 122 print_dialog_->AddRefToDialog(); |
120 } | 123 } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 void PrintingContextLinux::ReleaseContext() { | 184 void PrintingContextLinux::ReleaseContext() { |
182 // Intentional No-op. | 185 // Intentional No-op. |
183 } | 186 } |
184 | 187 |
185 gfx::NativeDrawingContext PrintingContextLinux::context() const { | 188 gfx::NativeDrawingContext PrintingContextLinux::context() const { |
186 // Intentional No-op. | 189 // Intentional No-op. |
187 return NULL; | 190 return NULL; |
188 } | 191 } |
189 | 192 |
190 } // namespace printing | 193 } // namespace printing |
OLD | NEW |