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

Side by Side Diff: printing/printing_context_win.cc

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added SK_API to vector platform device skia Created 9 years, 4 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
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_win.h" 5 #include "printing/printing_context_win.h"
6 6
7 #include <winspool.h> 7 #include <winspool.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 } 295 }
296 if (context_) 296 if (context_)
297 return OK; 297 return OK;
298 } 298 }
299 } 299 }
300 300
301 ResetSettings(); 301 ResetSettings();
302 return FAILED; 302 return FAILED;
303 } 303 }
304 304
305 PrintingContext::Result PrintingContextWin::UpdatePrintSettings( 305 PrintingContext::Result PrintingContextWin::UpdatePrinterSettings(
306 const DictionaryValue& job_settings, 306 const DictionaryValue& job_settings,
307 const PageRanges& ranges) { 307 const PageRanges& ranges) {
308 DCHECK(!in_print_job_); 308 DCHECK(!in_print_job_);
309 309
310 bool collate; 310 bool collate;
311 bool color; 311 bool color;
312 bool landscape; 312 bool landscape;
313 bool print_to_pdf; 313 bool print_to_pdf;
314 int copies; 314 int copies;
315 int duplex_mode; 315 int duplex_mode;
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 if (buf_size) { 756 if (buf_size) {
757 buffer->reset(new uint8[buf_size]); 757 buffer->reset(new uint8[buf_size]);
758 memset(buffer->get(), 0, buf_size); 758 memset(buffer->get(), 0, buf_size);
759 if (!GetPrinter(printer, level, buffer->get(), buf_size, &buf_size)) { 759 if (!GetPrinter(printer, level, buffer->get(), buf_size, &buf_size)) {
760 buffer->reset(); 760 buffer->reset();
761 } 761 }
762 } 762 }
763 } 763 }
764 764
765 } // namespace printing 765 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698