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

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed)

Created:
4 years, 5 months ago by Lei Zhang
Modified:
4 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Windows: Make it possible to print text with GDI. This only affects the printing of web pages directly on the host. - Renderer tells the browser if the print job is HTML. (AKA modifiable) -- Browser does lots of plumbing to get the bool into PrintSettings. -- Print preview already sends this info and it just needs extraction. - Add --disable-gdi-text-printing for reverting to old behavior. - Browser plumbs bool to PdfToEmfConverter to the utility process. - Utility plumbs bool into the PDF plugin code into PDFium. - Move unused PreCacheFontCharacters code out of RenderThreadImpl. -- Use it in PrintingHandler instead. - Remove dead code, fix lint errors / typos. BUG=409472 Committed: https://crrev.com/e85e6b6cf8d2a9bb95796cbe87efac18fc9689ff Cr-Commit-Position: refs/heads/master@{#414209}

Patch Set 1 #

Total comments: 12

Patch Set 2 : nits #

Patch Set 3 : rebase #

Patch Set 4 : Fix build, switch to disable flag #

Patch Set 5 : rebase again, resolve conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -240 lines) Patch
M build_overrides/pdfium.gni View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 1 2 10 chunks +58 lines, -16 lines 0 comments Download
M chrome/browser/printing/print_job.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_job.cc View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/printing/print_job_worker.h View 1 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/printing/print_job_worker.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/printing/print_view_manager_base.cc View 1 2 3 4 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/printing/printer_query.h View 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/printing/printer_query.cc View 2 chunks +12 lines, -15 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 2 3 chunks +9 lines, -27 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_utility_printing_messages.h View 5 chunks +19 lines, -5 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/printing_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/utility/printing_handler.cc View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M components/printing/common/print_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 2 chunks +1 line, -39 lines 0 comments Download
M content/common/render_process_messages.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M pdf/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M pdf/pdf.h View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download
M pdf/pdf.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M pdf/pdf_engine.h View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M printing/print_settings.h View 3 chunks +12 lines, -2 lines 0 comments Download
M printing/print_settings.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M printing/print_settings_conversion.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M printing/printing_context.h View 2 chunks +3 lines, -2 lines 0 comments Download
M printing/printing_context.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M printing/printing_context_system_dialog_win.h View 2 chunks +4 lines, -5 lines 0 comments Download
M printing/printing_context_system_dialog_win.cc View 6 chunks +13 lines, -63 lines 0 comments Download
M printing/printing_context_win.cc View 1 3 chunks +6 lines, -7 lines 0 comments Download
M printing/printing_context_win_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
Lei Zhang
This requires https://codereview.chromium.org/2113563003/ and a DEPS roll to work. Assumes the PDFium CL lands as ...
4 years, 5 months ago (2016-06-30 08:09:22 UTC) #3
scottmg
So much plumbing for a bool! I'd probably just remove the command line flag and ...
4 years, 5 months ago (2016-06-30 17:48:31 UTC) #4
Charlie Reis
Thanks. I'm mostly deferring to the other reviewers, but removals from content/ LGTM. https://codereview.chromium.org/2114583002/diff/1/content/browser/renderer_host/render_message_filter.cc File ...
4 years, 5 months ago (2016-06-30 18:38:41 UTC) #5
Oliver Chang
ipc lgtm
4 years, 5 months ago (2016-06-30 19:13:13 UTC) #6
Lei Zhang
Yes, so much plumbing, but that's the crazy world we live in. https://codereview.chromium.org/2114583002/diff/1/chrome/browser/printing/print_job_worker.h File chrome/browser/printing/print_job_worker.h ...
4 years, 5 months ago (2016-06-30 22:29:35 UTC) #7
scottmg
lgtm https://codereview.chromium.org/2114583002/diff/1/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (left): https://codereview.chromium.org/2114583002/diff/1/content/browser/renderer_host/render_message_filter.cc#oldcode356 content/browser/renderer_host/render_message_filter.cc:356: // FontCacheDispatcher too. http://crbug.com/356346. On 2016/06/30 22:29:34, Lei ...
4 years, 5 months ago (2016-06-30 22:31:53 UTC) #8
Lei Zhang
On 2016/06/30 17:48:31, scottmg wrote: > I'd probably just remove the command line flag and ...
4 years, 5 months ago (2016-06-30 22:33:27 UTC) #9
Lei Zhang
On 2016/06/30 22:33:27, Lei Zhang wrote: > Ya, at the rate this is going, I ...
4 years, 5 months ago (2016-06-30 22:37:58 UTC) #10
Lei Zhang
I still have a weird issue with the XPS Document Printer on my workstation, but ...
4 years, 4 months ago (2016-08-24 16:30:35 UTC) #22
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/2114583002/80001
4 years, 4 months ago (2016-08-24 19:04:02 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/129206)
4 years, 3 months ago (2016-08-24 22:13:33 UTC) #29
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/2114583002/80001
4 years, 3 months ago (2016-08-24 22:19:28 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-08-25 00:00:23 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 00:02:26 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e85e6b6cf8d2a9bb95796cbe87efac18fc9689ff
Cr-Commit-Position: refs/heads/master@{#414209}

Powered by Google App Engine
This is Rietveld 408576698