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

Issue 2633573002: Add Postscript Printing (Closed)

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

Description

Add Postscript generation support to Chromium. See https://codereview.chromium.org/2612243005/ and https://codereview.chromium.org/2615703002/ for Pdfium changes. Added behind a flag for now. Refactoring/small CLs landed to make this easier: Pdfium hooks: https://codereview.chromium.org/2642493002/ print settings initializer refactor: https://codereview.chromium.org/2637243002/ pdf to emf refactor: https://codereview.chromium.org/2646523003/ print job refactor: https://codereview.chromium.org/2643163002/ BUG=614988 change printing type from boolean for GDI to an enum in PdfRenderSettings: https://codereview.chromium.org/2640033005/# Review-Url: https://codereview.chromium.org/2633573002 Cr-Commit-Position: refs/heads/master@{#447440} Committed: https://chromium.googlesource.com/chromium/src/+/58bc882e11a2ef3d8f446dff391b953bc08809bf

Patch Set 1 #

Patch Set 2 : Reduce diff, move flag #

Patch Set 3 : Fix Linux build error #

Patch Set 4 : Fix browser test #

Patch Set 5 : Fix Linux compile error #

Total comments: 7

Patch Set 6 : Merge in earlier patches #

Patch Set 7 : Rebase #

Total comments: 18

Patch Set 8 : Merge, simplify, address some comments #

Patch Set 9 : Fix compile error #

Patch Set 10 : Fix clang compile #

Total comments: 2

Patch Set 11 : Remove extra code #

Total comments: 2

Patch Set 12 : Remove comment #

Patch Set 13 : Fix clang compile error #

Total comments: 4

Patch Set 14 : Merge printing_handler functions #

Patch Set 15 : Fix indent #

Patch Set 16 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -172 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +121 lines, -95 lines 0 comments Download
M chrome/browser/printing/print_job.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/printing/print_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +24 lines, -11 lines 0 comments Download
M chrome/browser/printing/print_preview_pdf_generated_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager_base.cc View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -11 lines 0 comments Download
M chrome/browser/printing/pwg_raster_converter.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/pwg_raster_converter.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/extension_printer_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_features.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_utility_printing_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/service/cloud_print/print_system_win.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/utility/printing_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M chrome/utility/printing_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +37 lines, -12 lines 0 comments Download
M components/printing/common/print_messages.h View 2 chunks +5 lines, -0 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.h View 2 chunks +3 lines, -1 line 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 4 chunks +7 lines, -2 lines 0 comments Download
M components/printing/renderer/print_web_view_helper_linux.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/printing/renderer/print_web_view_helper_pdf_win.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M printing/pdf_render_settings.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -4 lines 0 comments Download
M printing/print_settings.h View 1 2 3 4 5 6 7 3 chunks +18 lines, -4 lines 0 comments Download
M printing/print_settings.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M printing/print_settings_initializer_win.cc View 1 2 3 4 5 6 7 2 chunks +49 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 92 (66 generated)
rbpotter
Chromium patchset to add postscript generation. This is for Windows only. Pdfium patches have already ...
3 years, 11 months ago (2017-01-13 01:39:17 UTC) #7
dsinclair
https://codereview.chromium.org/2633573002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2633573002/diff/100001/chrome/app/generated_resources.grd#newcode15596 chrome/app/generated_resources.grd:15596: + Enable postscript generation in place of emf generation ...
3 years, 11 months ago (2017-01-17 17:10:00 UTC) #20
Vitaly Buka (NO REVIEWS)
Why are we doing this? This is a large patch but attached issues seems irrelevant.
3 years, 11 months ago (2017-01-17 18:42:22 UTC) #21
Vitaly Buka (NO REVIEWS)
On 2017/01/17 18:42:22, Vitaly Buka wrote: > Why are we doing this? > This is ...
3 years, 11 months ago (2017-01-17 18:59:38 UTC) #22
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2633573002/diff/100001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/2633573002/diff/100001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode537 chrome/browser/printing/pdf_to_emf_converter.cc:537: public: To much of duplicated code. Could you just ...
3 years, 11 months ago (2017-01-17 19:29:16 UTC) #23
Vitaly Buka (NO REVIEWS)
Also this patch is going to have a lot of conflicts with https://codereview.chromium.org/2477283002/
3 years, 11 months ago (2017-01-17 19:30:15 UTC) #24
rbpotter
On 2017/01/17 19:30:15, Vitaly Buka wrote: > Also this patch is going to have a ...
3 years, 11 months ago (2017-01-17 20:20:53 UTC) #25
dsinclair
I'm removing myself from the reviewers line for now as I'm not sure if I'm ...
3 years, 11 months ago (2017-01-24 13:51:31 UTC) #30
rbpotter
All refactors have been merged in, so PTAL at the new postscript additions. Will also ...
3 years, 10 months ago (2017-01-26 22:25:15 UTC) #37
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2633573002/diff/140001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/2633573002/diff/140001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode417 chrome/browser/printing/pdf_to_emf_converter.cc:417: Emf::Enumerator emf_enum(emf, nullptr, nullptr); Why postscript is encoded as ...
3 years, 10 months ago (2017-01-27 00:38:49 UTC) #40
rbpotter
https://codereview.chromium.org/2633573002/diff/140001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/2633573002/diff/140001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode417 chrome/browser/printing/pdf_to_emf_converter.cc:417: Emf::Enumerator emf_enum(emf, nullptr, nullptr); On 2017/01/27 00:38:49, Vitaly Buka ...
3 years, 10 months ago (2017-01-27 16:37:21 UTC) #48
rbpotter
I looked into the postscript embedded in metafiles issue. Pdfium is wired to write output ...
3 years, 10 months ago (2017-01-27 22:32:49 UTC) #53
Vitaly Buka (NO REVIEWS)
On 2017/01/27 22:32:49, rbpotter wrote: > I looked into the postscript embedded in metafiles issue. ...
3 years, 10 months ago (2017-01-27 22:47:00 UTC) #54
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2633573002/diff/220001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/2633573002/diff/220001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode759 chrome/browser/printing/pdf_to_emf_converter.cc:759: PdfToPostScriptConverterImpl::~PdfToPostScriptConverterImpl() { how about this way? https://codereview.chromium.org/2651313005/
3 years, 10 months ago (2017-01-27 22:53:49 UTC) #55
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2633573002/diff/220001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/2633573002/diff/220001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode759 chrome/browser/printing/pdf_to_emf_converter.cc:759: PdfToPostScriptConverterImpl::~PdfToPostScriptConverterImpl() { On 2017/01/27 22:53:49, Vitaly Buka wrote: > ...
3 years, 10 months ago (2017-01-27 23:56:42 UTC) #58
rbpotter
On 2017/01/27 23:56:42, Vitaly Buka wrote: > https://codereview.chromium.org/2633573002/diff/220001/chrome/browser/printing/pdf_to_emf_converter.cc > File chrome/browser/printing/pdf_to_emf_converter.cc (right): > > https://codereview.chromium.org/2633573002/diff/220001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode759 ...
3 years, 10 months ago (2017-01-28 00:57:34 UTC) #61
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/2633573002/diff/240001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/2633573002/diff/240001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode241 chrome/browser/printing/pdf_to_emf_converter.cc:241: PdfConverterImpl(); // : weak_ptr_factory_(this) {} please remove comment
3 years, 10 months ago (2017-01-28 01:23:58 UTC) #62
rbpotter
Adding new reviewers: tsepez@ - Messages rkaplow@ - histograms thakis@ - chrome/utility/printing_handler.* https://codereview.chromium.org/2633573002/diff/240001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc ...
3 years, 10 months ago (2017-01-28 02:02:00 UTC) #68
rkaplow
lgtm
3 years, 10 months ago (2017-01-30 16:35:20 UTC) #71
Tom Sepez
messages LGTM.
3 years, 10 months ago (2017-01-30 18:10:22 UTC) #72
Nico
printing_handler looks basically ok, but like Vitaly I don't understand from reading the CL description ...
3 years, 10 months ago (2017-01-31 20:17:42 UTC) #73
rbpotter
The connection to the bug: This bug is a complaint that Chrome generates larger spool ...
3 years, 10 months ago (2017-02-01 01:09:00 UTC) #81
Nico
Thanks. Code in my file lgtm, but adding a completely new printing output mode sounds ...
3 years, 10 months ago (2017-02-01 01:33:35 UTC) #82
rbpotter
On 2017/02/01 01:33:35, Nico wrote: > Thanks. Code in my file lgtm, but adding a ...
3 years, 10 months ago (2017-02-01 02:11:45 UTC) #85
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/2633573002/360001
3 years, 10 months ago (2017-02-01 03:39:33 UTC) #88
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 03:48:42 UTC) #92
Message was sent while issue was closed.
Committed patchset #16 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/58bc882e11a2ef3d8f446dff391b...

Powered by Google App Engine
This is Rietveld 408576698