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

Side by Side Diff: printing/printing_context_cairo.cc

Issue 8201027: Move margin processing code to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 9 years, 2 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.cc ('k') | printing/printing_context_win.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_cairo.h" 5 #include "printing/printing_context_cairo.h"
6 6
7 // TODO(abodenha@chromium.org) The number of #ifdefs here has gotten too 7 // TODO(abodenha@chromium.org) The number of #ifdefs here has gotten too
8 // large. Refactor this code into separate files for Linux and Chrome OS. 8 // large. Refactor this code into separate files for Linux and Chrome OS.
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 return OK; 157 return OK;
158 #else 158 #else
159 DCHECK(!in_print_job_); 159 DCHECK(!in_print_job_);
160 160
161 if (!print_dialog_) { 161 if (!print_dialog_) {
162 print_dialog_ = create_dialog_func_(this); 162 print_dialog_ = create_dialog_func_(this);
163 print_dialog_->AddRefToDialog(); 163 print_dialog_->AddRefToDialog();
164 } 164 }
165 165
166 if (!print_dialog_->UpdateSettings(job_settings, ranges)) 166 if (!print_dialog_->UpdateSettings(job_settings, ranges, &settings_))
167 return OnError(); 167 return OnError();
168 168
169 return OK; 169 return OK;
170 #endif 170 #endif
171 } 171 }
172 172
173 PrintingContext::Result PrintingContextCairo::InitWithSettings( 173 PrintingContext::Result PrintingContextCairo::InitWithSettings(
174 const PrintSettings& settings) { 174 const PrintSettings& settings) {
175 DCHECK(!in_print_job_); 175 DCHECK(!in_print_job_);
176 176
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 void PrintingContextCairo::ReleaseContext() { 228 void PrintingContextCairo::ReleaseContext() {
229 // Intentional No-op. 229 // Intentional No-op.
230 } 230 }
231 231
232 gfx::NativeDrawingContext PrintingContextCairo::context() const { 232 gfx::NativeDrawingContext PrintingContextCairo::context() const {
233 // Intentional No-op. 233 // Intentional No-op.
234 return NULL; 234 return NULL;
235 } 235 }
236 236
237 } // namespace printing 237 } // namespace printing
OLDNEW
« no previous file with comments | « printing/printing_context.cc ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698