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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 void PrintingContextLinux::PrintDocument(const MetafilePlayer& metafile) { | 62 void PrintingContextLinux::PrintDocument(const MetafilePlayer& metafile) { |
63 DCHECK(print_dialog_); | 63 DCHECK(print_dialog_); |
64 print_dialog_->PrintDocument(metafile, document_name_); | 64 print_dialog_->PrintDocument(metafile, document_name_); |
65 } | 65 } |
66 | 66 |
67 void PrintingContextLinux::AskUserForSettings( | 67 void PrintingContextLinux::AskUserForSettings( |
68 int max_pages, | 68 int max_pages, |
69 bool has_selection, | 69 bool has_selection, |
| 70 bool is_scripted, |
70 const PrintSettingsCallback& callback) { | 71 const PrintSettingsCallback& callback) { |
71 if (!print_dialog_) { | 72 if (!print_dialog_) { |
72 // Can only get here if the renderer is sending bad messages. | 73 // Can only get here if the renderer is sending bad messages. |
73 // http://crbug.com/341777 | 74 // http://crbug.com/341777 |
74 NOTREACHED(); | 75 NOTREACHED(); |
75 callback.Run(FAILED); | 76 callback.Run(FAILED); |
76 return; | 77 return; |
77 } | 78 } |
78 | 79 |
79 print_dialog_->ShowDialog( | 80 print_dialog_->ShowDialog( |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 void PrintingContextLinux::ReleaseContext() { | 182 void PrintingContextLinux::ReleaseContext() { |
182 // Intentional No-op. | 183 // Intentional No-op. |
183 } | 184 } |
184 | 185 |
185 gfx::NativeDrawingContext PrintingContextLinux::context() const { | 186 gfx::NativeDrawingContext PrintingContextLinux::context() const { |
186 // Intentional No-op. | 187 // Intentional No-op. |
187 return NULL; | 188 return NULL; |
188 } | 189 } |
189 | 190 |
190 } // namespace printing | 191 } // namespace printing |
OLD | NEW |