Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: printing/printing_context_linux.cc

Issue 1124433006: Allow page range selection in system dialog called from preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « printing/printing_context_linux.h ('k') | printing/printing_context_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « printing/printing_context_linux.h ('k') | printing/printing_context_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698