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

Issue 11818062: Adds option to enable CSS backgrounds for printing. (Closed)

Created:
7 years, 11 months ago by Toscano
Modified:
7 years, 11 months ago
CC:
chromium-reviews, arv (Not doing code reviews), darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adds option to enable CSS backgrounds for printing. BUG=113594 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176617

Patch Set 1 #

Total comments: 6

Patch Set 2 : Sets should-print-backgrounds setting via print job workers. #

Total comments: 2

Patch Set 3 : Move initialization of field to inializer list. #

Patch Set 4 : Merge with trunk. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -31 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/data/app_state.js View 6 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/data/print_ticket_store.js View 3 chunks +38 lines, -0 lines 0 comments Download
A + chrome/browser/resources/print_preview/data/ticket_items/css_background.js View 3 chunks +7 lines, -20 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/preview_generator.js View 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/other_options_settings.html View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/other_options_settings.js View 7 chunks +43 lines, -2 lines 0 comments Download
A chrome/browser/ui/webui/print_preview/print_preview_data_source.cc View 1 2 3 1 chunk +227 lines, -0 lines 0 comments Download
M chrome/common/print_messages.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/print_messages.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 6 chunks +11 lines, -2 lines 0 comments Download
M printing/print_job_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M printing/print_job_constants.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M printing/print_settings.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M printing/print_settings.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M printing/printing_context.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Toscano
7 years, 11 months ago (2013-01-10 20:08:26 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/11818062/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/11818062/diff/1/chrome/app/generated_resources.grd#newcode8756 chrome/app/generated_resources.grd:8756: + Background colors and images Background colors and images ...
7 years, 11 months ago (2013-01-10 21:16:56 UTC) #2
Toscano
https://codereview.chromium.org/11818062/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/11818062/diff/1/chrome/app/generated_resources.grd#newcode8756 chrome/app/generated_resources.grd:8756: + Background colors and images On 2013/01/10 21:16:56, Vitaly ...
7 years, 11 months ago (2013-01-10 22:27:25 UTC) #3
Lei Zhang
https://codereview.chromium.org/11818062/diff/1/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/11818062/diff/1/chrome/renderer/print_web_view_helper.cc#newcode1300 chrome/renderer/print_web_view_helper.cc:1300: frame->view()->settings()->setShouldPrintBackgrounds(shouldPrintBackgrounds); This probably should go into PrintWebViewHelper::PrintPreviewContext::CreatePreviewDocument(), say, before ...
7 years, 11 months ago (2013-01-10 23:30:10 UTC) #4
Toscano
https://codereview.chromium.org/11818062/diff/1/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/11818062/diff/1/chrome/renderer/print_web_view_helper.cc#newcode1300 chrome/renderer/print_web_view_helper.cc:1300: frame->view()->settings()->setShouldPrintBackgrounds(shouldPrintBackgrounds); On 2013/01/10 23:30:11, Lei Zhang wrote: > This ...
7 years, 11 months ago (2013-01-11 00:19:23 UTC) #5
Vitaly Buka (NO REVIEWS)
lgtm
7 years, 11 months ago (2013-01-11 00:22:17 UTC) #6
Lei Zhang
https://codereview.chromium.org/11818062/diff/4001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/11818062/diff/4001/chrome/renderer/print_web_view_helper.cc#newcode499 chrome/renderer/print_web_view_helper.cc:499: should_print_backgrounds_ = print_params.should_print_backgrounds; You can just put this in ...
7 years, 11 months ago (2013-01-11 00:30:04 UTC) #7
Toscano
https://codereview.chromium.org/11818062/diff/4001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/11818062/diff/4001/chrome/renderer/print_web_view_helper.cc#newcode499 chrome/renderer/print_web_view_helper.cc:499: should_print_backgrounds_ = print_params.should_print_backgrounds; On 2013/01/11 00:30:04, Lei Zhang wrote: ...
7 years, 11 months ago (2013-01-11 01:41:05 UTC) #8
Lei Zhang
c++ code lgtm
7 years, 11 months ago (2013-01-11 02:09:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@chromium.org/11818062/14001
7 years, 11 months ago (2013-01-11 03:05:28 UTC) #10
commit-bot: I haz the power
Presubmit check for 11818062-14001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-11 03:05:38 UTC) #11
Toscano
Hi Tom, I've added a new field to the printing parameters, "should_print_backgrounds" in chrome/common/print_messages.h that ...
7 years, 11 months ago (2013-01-11 17:48:24 UTC) #12
Tom Sepez
LGTM on adding a new bool parameter.
7 years, 11 months ago (2013-01-11 18:10:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@chromium.org/11818062/14001
7 years, 11 months ago (2013-01-11 18:11:37 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/webui/print_preview/print_preview_data_source.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-12 00:53:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@chromium.org/11818062/29001
7 years, 11 months ago (2013-01-12 01:10:05 UTC) #16
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests
7 years, 11 months ago (2013-01-12 13:25:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@chromium.org/11818062/29001
7 years, 11 months ago (2013-01-13 03:14:38 UTC) #18
commit-bot: I haz the power
7 years, 11 months ago (2013-01-14 00:59:48 UTC) #19
Message was sent while issue was closed.
Change committed as 176617

Powered by Google App Engine
This is Rietveld 408576698