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

Side by Side Diff: printing/printing_context_linux.cc

Issue 480303002: Use document from preview for System Dialog printing on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue Aug 26 01:11:31 PDT 2014 Created 6 years, 3 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 | Annotate | Revision Log
« 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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