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

Issue 2640033005: Substitute boolean GDI printing for a mode type (Closed)

Created:
3 years, 11 months ago by rbpotter
Modified:
3 years, 11 months ago
CC:
chromium-reviews, fuzzing_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Substitute boolean GDI printing for a mode type Instead of indicating GDI printing with a boolean add a parameter to the PdfRenderSettings structure that is an enum. This makes a few function calls cleaner and will facilitate addition of new modes when postscript printing is added (see https://codereview.chromium.org/2633573002/). BUG=None Review-Url: https://codereview.chromium.org/2640033005 Cr-Commit-Position: refs/heads/master@{#446484} Committed: https://chromium.googlesource.com/chromium/src/+/c9251407fa9abe958dcbf2d72e7c25f8a422542c

Patch Set 1 #

Patch Set 2 : Substitute boolean GDI printing for non boolean #

Total comments: 3

Patch Set 3 : Fixed enum #

Patch Set 4 : Remove extra def in fuzzer #

Total comments: 6

Patch Set 5 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -92 lines) Patch
M chrome/browser/printing/pdf_to_emf_converter.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 11 chunks +10 lines, -24 lines 0 comments Download
M chrome/browser/printing/print_job.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/printing/print_preview_pdf_generated_browsertest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/pwg_raster_converter.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/chrome_utility_printing_messages.h View 1 2 3 4 4 chunks +13 lines, -4 lines 0 comments Download
M chrome/service/cloud_print/print_system_win.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/printing_handler.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/utility/printing_handler.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M printing/pdf_render_settings.h View 1 2 3 4 2 chunks +18 lines, -32 lines 0 comments Download
M tools/ipc_fuzzer/fuzzer/fuzzer.cc View 1 2 3 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 44 (30 generated)
rbpotter
Switching to an enum vs a boolean to indicate GDI printing. This is to set ...
3 years, 11 months ago (2017-01-23 21:01:52 UTC) #12
Tom Sepez
https://codereview.chromium.org/2640033005/diff/20001/printing/pdf_render_settings.h File printing/pdf_render_settings.h (right): https://codereview.chromium.org/2640033005/diff/20001/printing/pdf_render_settings.h#newcode59 printing/pdf_render_settings.h:59: r->mode = static_cast<printing::PdfRenderSettings::Mode>(mode); Need to validate that mode is ...
3 years, 11 months ago (2017-01-23 21:14:08 UTC) #13
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2640033005/diff/20001/printing/pdf_render_settings.h File printing/pdf_render_settings.h (right): https://codereview.chromium.org/2640033005/diff/20001/printing/pdf_render_settings.h#newcode59 printing/pdf_render_settings.h:59: r->mode = static_cast<printing::PdfRenderSettings::Mode>(mode); On 2017/01/23 21:14:08, Tom Sepez wrote: ...
3 years, 11 months ago (2017-01-23 22:03:30 UTC) #14
rbpotter
https://codereview.chromium.org/2640033005/diff/20001/printing/pdf_render_settings.h File printing/pdf_render_settings.h (right): https://codereview.chromium.org/2640033005/diff/20001/printing/pdf_render_settings.h#newcode59 printing/pdf_render_settings.h:59: r->mode = static_cast<printing::PdfRenderSettings::Mode>(mode); On 2017/01/23 22:03:30, Vitaly Buka wrote: ...
3 years, 11 months ago (2017-01-24 02:22:01 UTC) #21
Vitaly Buka (NO REVIEWS)
lgtm
3 years, 11 months ago (2017-01-25 19:51:37 UTC) #24
Tom Sepez
Messages LGTM.
3 years, 11 months ago (2017-01-25 22:59:09 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640033005/60001
3 years, 11 months ago (2017-01-25 23:00:48 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/350453)
3 years, 11 months ago (2017-01-25 23:13:01 UTC) #29
rbpotter
On 2017/01/25 23:13:01, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-25 23:17:03 UTC) #30
rbpotter
thakis@ - I believe the changes to printing_handler.* require a review from chrome/OWNERS. Could you ...
3 years, 11 months ago (2017-01-26 00:00:20 UTC) #32
Nico
lgtm, with some optional nits (even if you do want to do them, feel free ...
3 years, 11 months ago (2017-01-26 20:46:05 UTC) #33
rbpotter
https://codereview.chromium.org/2640033005/diff/60001/chrome/browser/printing/print_job.cc File chrome/browser/printing/print_job.cc (right): https://codereview.chromium.org/2640033005/diff/60001/chrome/browser/printing/print_job.cc#newcode288 chrome/browser/printing/print_job.cc:288: content_area, kPrinterDpi, true /*autorotate? */, On 2017/01/26 20:46:05, Nico ...
3 years, 11 months ago (2017-01-26 22:10:50 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640033005/80001
3 years, 11 months ago (2017-01-26 23:00:15 UTC) #41
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 23:07:22 UTC) #44
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c9251407fa9abe958dcbf2d72e7c...

Powered by Google App Engine
This is Rietveld 408576698